Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {assign var=pre_amount value=$shop2_cart.total_pre_order|default:0}
- {assign var=sum_amount value=$pre_amount+$shop2_cart.total_amount|default:0}
- <div class="cart-popup">
- <div class="cart-popup__title">
- <ins>{#SHOP2_CART#}</ins>
- <span>{$sum_amount}</span>
- </div>
- <div class="cart-popup__body">
- <div class="cart-cleanup">
- <a href="{$shop2.uri}?mode=cart&action=cleanup" class="gr-button-1">{#SHOP2_CLEAR_CART#}</a>
- </div>
- <form action="{$shop2.uri}?mode=cart&action=up" id="shop2-cart">
- {if $cart.discounts.subtotal != 0 || $cart.discounts.total != 0}
- {assign var="show_discount" value=1}
- {else}
- {assign var="show_discount" value=0}
- {/if}
- <div class="cart-products shop2-cart-table">
- <div class="cart-products__body">
- {foreach from=$cart.cart item=e key=k}
- {include file="global:shop2.2.120-cart-popup-product.tpl" fix_discount=1 show_discount=$show_discount}
- {/foreach}
- {foreach from=$cart.gifts item=e key=k}
- {include file="global:shop2.2.120-cart-popup-product.tpl" gift=1 fix_discount=1 show_discount=$show_discount}
- {/foreach}
- </div>
- </div>
- </form>
- <div class="cart-update hide">
- <a href="javascript:void(0);" class="cart-update__btn shop2-cart-update">
- <span class="cart-update__title">{$shop2.my.gr_cart_total_title}</span>
- <span class="cart-update__recalc">{#SHOP2_RECALCULATE#}</span>
- </a>
- </div>
- </div>
- <div class="cart-popup__bottom">
- <div class="cart-popup__total">{$cart.totals.total|price_convert} <span>{$currency.currency_shortname}</span></div>
- <div class="cart-popup__btns">
- {if !$shop2.json.order_in_one_page}
- <a href="{$shop2.uri}?mode=order" class="gr-button-1">
- {$shop2.my.gr_cart_preview_order|default:'Оформить заказ'}
- </a>
- {else}
- <a href="{get_seo_url mode='cart' uri_prefix=$shop2.uri}" class="enabled_order_one_page gr-button-1">
- {$shop2.my.gr_cart_preview_order|default:'Оформить заказ'}
- </a>
- {/if}
- <a href="{get_seo_url mode='cart' uri_prefix=$shop2.uri}" class="gr-button-2">{$shop2.my.gr_cart_preview_cart_btn|default:'Корзина'}</a>
- </div>
- </div>
- </div>
Add Comment
Please, Sign In to add comment