diff --git a/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php b/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php new file mode 100644 index 000000000..9f6246ecc --- /dev/null +++ b/packages/Webkul/Shop/src/Resources/views/products/add-buttons.blade.php @@ -0,0 +1,25 @@ +@if (Route::currentRouteName() == "shop.products.index") + @include ('shop::products.add-to', ['product' => $product]) +@else + @if ($product->type == "configurable") +
+ + {{ __('shop::app.products.add-to-cart') }} + + + @include('shop::products.wishlist') +
+ @else +
+
+ @csrf + + + + +
+ + @include('shop::products.wishlist') +
+ @endif +@endif \ No newline at end of file diff --git a/packages/Webkul/Shop/src/Resources/views/products/list/card.blade.php b/packages/Webkul/Shop/src/Resources/views/products/list/card.blade.php index 741234d7a..03eada776 100755 --- a/packages/Webkul/Shop/src/Resources/views/products/list/card.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/list/card.blade.php @@ -30,31 +30,7 @@ @include ('shop::products.price', ['product' => $product]) - @if (Route::currentRouteName() == "shop.products.index") - @include ('shop::products.add-to', ['product' => $product]) - @else - @if ($product->type == "configurable") -
- - {{ __('shop::app.products.add-to-cart') }} - - - @include('shop::products.wishlist') -
- @else -
-
- @csrf - - - - -
- - @include('shop::products.wishlist') -
- @endif - @endif + @include('shop::products.add-buttons') diff --git a/public/installer/install.php b/public/installer/install.php index b3db2155a..c70b85044 100755 --- a/public/installer/install.php +++ b/public/installer/install.php @@ -75,7 +75,4 @@ } else { return null; } -?> - - - +?> \ No newline at end of file