Добрый день! Подскажите как сделать общую сумму всех товаров в корзине
http://joxi.ru/J2bNWy6I00RgN2
-
В Шаблонах найти файл:
ТЕМА/templates/blocks/cart_content.tpl
-
в нем найти строку
{if $block.properties.display_bottom_buttons == "Y"}
-
и перед ней вставить код:
<div class="mini-cart-subtotal"> {if $smarty.session.cart.amount} {__("total")}: {include file="common/price.tpl" value=$smarty.session.cart.display_subtotal} {else} {/if} </div>
- Можно добавить чуть стиля в пользовательский CSS для нового блока:
.mini-cart-subtotal { padding: 10px 22px; font-size: 14px !important; background: #f1f1f1; }
Профит:
6 лайков