From 0ce10720f6dd0e0e5284e2b8b43aca52b8a4ed8b Mon Sep 17 00:00:00 2001 From: Devil Date: Wed, 24 Feb 2021 19:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=92=A9=E5=AD=90=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index/view/default/cart/index.html | 272 +++++++++++++++++- .../index/view/default/goods/index.html | 2 +- application/tags.php | 104 +++++++ public/static/index/default/css/goods.css | 4 - 4 files changed, 366 insertions(+), 16 deletions(-) diff --git a/application/index/view/default/cart/index.html b/application/index/view/default/cart/index.html index f48944ba7..aa17357a7 100755 --- a/application/index/view/default/cart/index.html +++ b/application/index/view/default/cart/index.html @@ -34,6 +34,28 @@ {{foreach $cart_list as $goods}} + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_base_begin +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_base_begin'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + + @@ -59,28 +81,212 @@ {{$currency_symbol}}{{$goods.price}} x{{$goods.stock}} + + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_base_end +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_base_end'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + - {{if $goods['original_price'] gt 0}} -

{{$currency_symbol}}{{$goods.original_price}}

+ + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_price_begin +
{{/if}} -

{{$currency_symbol}}{{$goods.price}}

+ {{php}} + $hook_name = 'plugins_view_cart_price_begin'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + + + +
+ {{if $goods['original_price'] gt 0}} +

{{$currency_symbol}}{{$goods.original_price}}

+ {{/if}} +

{{$currency_symbol}}{{$goods.price}}

+
+ + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_price_end +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_price_end'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + -
- - - - + -
- {{if $goods['is_error'] eq 1 and !empty($goods['error_msg'])}} -

{{$goods.error_msg}}

+ + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_number_begin +
{{/if}} + {{php}} + $hook_name = 'plugins_view_cart_number_begin'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + + + + {{if $goods['is_error'] eq 0}} +
+ - + + + +
+ {{else /}} +

{{$goods.stock}}

+ {{if !empty($goods['error_msg'])}} +

{{$goods.error_msg}}

+ {{/if}} + {{/if}} + + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_number_end +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_number_end'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_total_price_begin +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_total_price_begin'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + + {{$currency_symbol}}{{$goods.total_price}} + + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_total_price_end +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_total_price_end'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + 删除 + + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_operate +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_operate'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$goods]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} + {{/foreach}} @@ -95,9 +301,53 @@ 全选 删除 + + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_cart_nav_left_inside +
+ {{/if}} + {{php}} + $hook_name = 'plugins_view_cart_nav_left_inside'; + $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$cart_list]); + if(!empty($hook_data) && is_array($hook_data)) + { + foreach($hook_data as $hook) + { + if(is_string($hook) || is_int($hook)) + { + echo htmlspecialchars_decode($hook); + } + } + } + {{/php}} +