Igor150195

Быстрый просмотр корзины

Apr 7th, 2020
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 2.24 KB | None | 0 0
  1. {assign var=pre_amount value=$shop2_cart.total_pre_order|default:0}
  2. {assign var=sum_amount value=$pre_amount+$shop2_cart.total_amount|default:0}
  3.  
  4. <div class="cart-popup">
  5.     <div class="cart-popup__title">
  6.         <ins>{#SHOP2_CART#}</ins>
  7.         <span>{$sum_amount}</span>
  8.     </div>
  9.     <div class="cart-popup__body">
  10.         <div class="cart-cleanup">
  11.             <a href="{$shop2.uri}?mode=cart&action=cleanup" class="gr-button-1">{#SHOP2_CLEAR_CART#}</a>
  12.         </div>
  13.         <form action="{$shop2.uri}?mode=cart&action=up" id="shop2-cart">
  14.             {if $cart.discounts.subtotal != 0 || $cart.discounts.total != 0}
  15.                 {assign var="show_discount" value=1}
  16.             {else}
  17.                 {assign var="show_discount" value=0}
  18.             {/if}
  19.             <div class="cart-products shop2-cart-table">
  20.                 <div class="cart-products__body">
  21.                    
  22.                     {foreach from=$cart.cart item=e key=k}
  23.                         {include file="global:shop2.2.120-cart-popup-product.tpl" fix_discount=1 show_discount=$show_discount}
  24.                     {/foreach}
  25.                    
  26.                     {foreach from=$cart.gifts item=e key=k}
  27.                         {include file="global:shop2.2.120-cart-popup-product.tpl" gift=1 fix_discount=1 show_discount=$show_discount}
  28.                     {/foreach}
  29.                    
  30.                 </div>
  31.             </div>
  32.         </form>
  33.        
  34.         <div class="cart-update hide">
  35.             <a href="javascript:void(0);" class="cart-update__btn shop2-cart-update">
  36.                 <span class="cart-update__title">{$shop2.my.gr_cart_total_title}</span>
  37.                 <span class="cart-update__recalc">{#SHOP2_RECALCULATE#}</span>
  38.             </a>
  39.         </div>
  40.     </div>
  41.     <div class="cart-popup__bottom">
  42.         <div class="cart-popup__total">{$cart.totals.total|price_convert} <span>{$currency.currency_shortname}</span></div>
  43.         <div class="cart-popup__btns">
  44.             {if !$shop2.json.order_in_one_page}
  45.                 <a href="{$shop2.uri}?mode=order" class="gr-button-1">
  46.                     {$shop2.my.gr_cart_preview_order|default:'Оформить заказ'}
  47.                 </a>
  48.             {else}
  49.                 <a href="{get_seo_url mode='cart' uri_prefix=$shop2.uri}" class="enabled_order_one_page gr-button-1">
  50.                     {$shop2.my.gr_cart_preview_order|default:'Оформить заказ'}
  51.                 </a>
  52.             {/if}
  53.            
  54.             <a href="{get_seo_url mode='cart' uri_prefix=$shop2.uri}" class="gr-button-2">{$shop2.my.gr_cart_preview_cart_btn|default:'Корзина'}</a>
  55.         </div>
  56.     </div>
  57. </div>
Add Comment
Please, Sign In to add comment