From e71a98e915c09852bb1f73ea885cfe177b852501 Mon Sep 17 00:00:00 2001 From: tanxiaoyong Date: Wed, 14 Jun 2023 11:33:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0hook=20product.detail.quantit?= =?UTF-8?q?y.input=20product.detail.add=5Fto=5Fcart=20product.detail.wishl?= =?UTF-8?q?ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/default/product/product.blade.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/themes/default/product/product.blade.php b/themes/default/product/product.blade.php index f903f0bd..918c4666 100644 --- a/themes/default/product/product.blade.php +++ b/themes/default/product/product.blade.php @@ -134,6 +134,7 @@ @if ($product['active'])
@hook('product.detail.buy.before') + @hookwrapper('product.detail.quantity.input')
@@ -141,6 +142,8 @@
+ @endhookwrapper + @hookwrapper('product.detail.add_to_cart') + @endhookwrapper + @hookwrapper('product.detail.buy_now') + @endhookwrapper @hook('product.detail.buy.after')
@if (current_customer() || !request('iframe')) -
- -
+ @hookwrapper('product.detail.wishlist') +
+ +
+ @endhookwrapper @endif @else
{{ __('product.has_been_inactive') }}
@endif + @hook('product.detail.after')