product add to cart issue resolved on PDP
This commit is contained in:
parent
d5b1e84fdb
commit
c06aeadb37
|
|
@ -59,8 +59,7 @@
|
|||
{!! view_render_event('bagisto.shop.home.content.before') !!}
|
||||
|
||||
@if ($velocityMetaData)
|
||||
{{-- {!! DbView::make($velocityMetaData)->field('home_page_content')->render() !!} --}}
|
||||
@include('shop::home.featured-products')
|
||||
{!! DbView::make($velocityMetaData)->field('home_page_content')->render() !!}
|
||||
@else
|
||||
@include('shop::home.advertisements.advertisement-four')
|
||||
@include('shop::home.featured-products')
|
||||
|
|
|
|||
|
|
@ -2,18 +2,18 @@
|
|||
|
||||
<div class="mx-0 no-padding">
|
||||
@if (isset($showCompare) && $showCompare)
|
||||
<compare-component
|
||||
@auth('customer')
|
||||
customer="true"
|
||||
@endif
|
||||
<compare-component
|
||||
@auth('customer')
|
||||
customer="true"
|
||||
@endif
|
||||
|
||||
@guest('customer')
|
||||
customer="false"
|
||||
@endif
|
||||
@guest('customer')
|
||||
customer="false"
|
||||
@endif
|
||||
|
||||
slug="{{ $product->url_key }}"
|
||||
product-id="{{ $product->id }}"
|
||||
></compare-component>
|
||||
slug="{{ $product->url_key }}"
|
||||
product-id="{{ $product->id }}"
|
||||
></compare-component>
|
||||
@endif
|
||||
|
||||
@if (! (isset($showWishlist) && !$showWishlist))
|
||||
|
|
@ -25,7 +25,8 @@
|
|||
<div class="add-to-cart-btn pl0">
|
||||
@if (isset($form) && !$form)
|
||||
<button
|
||||
type="submit"
|
||||
type="button"
|
||||
@click="onSubmit"
|
||||
{{ ! $product->isSaleable() ? 'disabled' : '' }}
|
||||
class="btn btn-add-to-cart {{ $addToCartBtnClass ?? '' }}">
|
||||
|
||||
|
|
|
|||
|
|
@ -177,7 +177,11 @@
|
|||
<script type='text/javascript' src='https://unpkg.com/spritespin@4.1.0/release/spritespin.js'></script>
|
||||
|
||||
<script type="text/x-template" id="product-view-template">
|
||||
<form method="POST" id="product-form" action="{{ route('cart.add', $product->product_id) }}" @click="onSubmit($event)">
|
||||
<form
|
||||
method="POST"
|
||||
id="product-form"
|
||||
action="{{ route('cart.add', $product->product_id) }}">
|
||||
|
||||
<input type="hidden" name="is_buy_now" v-model="is_buy_now">
|
||||
|
||||
<slot v-if="slot"></slot>
|
||||
|
|
|
|||
Loading…
Reference in New Issue