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}} +