What's New
- AuthorPosts
Hello, I have a problem that I have not been able to solve, I am trying to make some changes in the details of the cart prices that appear on the main page when you pass the mouse over the icon of the cart that is up next to the menu, but it has been impossible to do so, I sponsor the steps I have taken:
– I have disabled the smarty cache
– I have forced the compilation in prestashop
– I have deactivated all performance options
– I deleted the cache
– I changed the code in / modules / stshoppingcart / views / templates / hook / stshoppingcart-list.tpl
– I have cleared the browser cacheWith everything I am not seen any visible change.
Can you help me? Please please
Hello, thanks for answering. Attached captures, url and the code that I am trying to modify but which do not know where to get the total value of the sum of Subtotal without tax + taxes to put as last line. Please see if you can help me thanks.
http://s361606469.mialojamiento.es/
Code \modules\stshoppingcart\views\templates\hook\stshoppingcart-list.tpl
———————————{if $cart.products_count}
<ul class=”small_cart_product_list base_list_line medium_list”>
{foreach from=$cart.products item=product}
<li class=”line_item”>{include file=’module:stshoppingcart/views/templates/hook/stshoppingcart-product-line.tpl’ product=$product}
{/foreach}
{if $cart.vouchers.added}
{foreach from=$cart.vouchers.added item=voucher}
<li class=”line_item”><span class=”mar_r4″>{$voucher.name}</span>
<span class=”mar_r4″>{$voucher.reduction_formatted}</span>
<i class=”fto-cancel mar_l4″></i>{/foreach}
{/if}{foreach from=$cart.subtotals item=”subtotal”}
{if $subtotal.value && $subtotal.type !== ‘tax’}<span class=”cart-summary-k”>
{if ‘products’ == $subtotal.type}
{$cart.summary_string}
{else}
{$subtotal.label}
{/if}
</span>{$subtotal.value}
{if $subtotal.type === ‘shipping’}{hook h=’displayCheckoutSubtotalDetails’ subtotal=$subtotal}{/if}
{/if}
{/foreach}
// Impuestos (tax)<span class=”cart-summary-k”>{$cart.subtotals.tax.label}</span><span class=”cart-summary-v price”>{$cart.subtotals.tax.value}</span>// end Impuestos (tax)
// Total (impuestos excluidos)<span class=”cart-summary-k”>{$cart.totals.total.label} {$cart.labels.tax_short}</span><span class=”cart-summary-v price font-weight-bold”>{$cart.totals.total.value}</span>// end Total (impuestos excluidos)
// Total full<span class=”cart-summary-k”>{???} {???}</span><span class=”cart-summary-v price font-weight-bold”>{???}</span>// end Total full
{assign var=’checkout_button’ value=Configuration::get(‘ST_BLOCK_CART_CHECKOUT’)}
{if $checkout_button==0 || $checkout_button==2}{l s=’Shopping cart’ d=’Shop.Theme.Actions’}{/if}
{if $checkout_button==1 || $checkout_button==2}{l s=’Checkout’ d=’Shop.Theme.Actions’}{/if}
{else}{l s=’Your shopping cart is empty.’ d=’Shop.Theme.Transformer’}{/if}
———————-
Attachments:
- AuthorPosts
You must be logged in to reply to this topic.