From b28712e2d5e92fd2393457a69da8bd316bc06ed5 Mon Sep 17 00:00:00 2001 From: tanxiaoyong Date: Wed, 14 Jun 2023 11:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0hook=20product.detail.quantit?= =?UTF-8?q?y=20product.detail.add=5Fto=5Fcart=20product.detail.wishlist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/default/product.blade.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/themes/default/product.blade.php b/themes/default/product.blade.php index d29a5e68..5bc67dca 100644 --- a/themes/default/product.blade.php +++ b/themes/default/product.blade.php @@ -122,6 +122,7 @@ @if ($product['active'])
@hook('product.detail.buy.before') + @hookwrapper('product.detail.quantity')
@@ -129,25 +130,32 @@
+ @endhookwrapper + @hookwrapper('product.detail.add_to_cart') + @endhookwrapper + @hookwrapper('product.detail.buy_now') + @endhookwrapper @hook('product.detail.buy.after')
+ @hookwrapper('product.detail.wishlist')
+ @endhookwrapper @else
{{ __('product.has_been_inactive') }}
@endif