{** * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {block name='cart_detailed_totals'} {if (isset($shipping_block_wait_for_address) && $shipping_block_wait_for_address|count) || ($forceToChooseCarrier && !(isset($customerSelectedDeliveryOption) && $carrierSelected == $customerSelectedDeliveryOption|intval))} {assign var='waitForShippingCls' value=' wait-for-shipping'} {else} {assign var='waitForShippingCls' value=''} {/if}
{foreach from=$cart.subtotals item="subtotal"} {if isset($subtotal.value) && $subtotal.value && $subtotal.type !== 'tax'}
{if 'products' == $subtotal.type} {$cart.products_count|escape:'htmlall':'UTF-8'} {assign var=count value=$cart.products_count} {if $count == 1} sztuka {elseif $count%10 >= 2 && $count%10 <= 4 && ($count%100 < 10 || $count%100 >= 20)} sztuki {else} sztuk {/if} {else} {$subtotal.label|escape:'htmlall':'UTF-8'} {/if} {$subtotal.value|escape:'htmlall':'UTF-8'} {if $subtotal.type === 'shipping'}
{hook h='displayCheckoutSubtotalDetails' subtotal=$subtotal}
{/if}
{/if} {/foreach} {hook h="displayPaymentRuleCartSummary"}
{block name='cart_voucher'} {include file='module:thecheckout/views/templates/front/_partials/cart-voucher.tpl'} {/block} {*
*}
{if (isset($cart.subtotals.tax) && $cart.subtotals.tax.amount > 0) || (!$configuration.display_prices_tax_incl && $configuration.taxes_enabled) } {* tax displayed in cart summary, we show Total (tax excl.), Tax and Total (tax incl.) *}
{$cart.totals.total_excluding_tax.label|escape:'htmlall':'UTF-8'} {$cart.totals.total_excluding_tax.value|escape:'htmlall':'UTF-8'}
{if isset($cart.subtotals.tax)}
{$cart.subtotals.tax.label|escape:'javascript':'UTF-8'} {if $cart.totals.total_excluding_tax.amount > 0} {math equation='(a/b)*100' a=$cart.subtotals.tax.amount b=$cart.totals.total_excluding_tax.amount assign='effective_tax_rate'} {math equation='abs(round(a)-a)' a=$effective_tax_rate assign='rounding_delta'} {if $rounding_delta < 0.09} {math equation='round(a)' a=$effective_tax_rate assign='effective_tax_rate_rounded'} {else} {math equation='a' a=$effective_tax_rate assign='effective_tax_rate_rounded' format="%.1f"} {/if} ({$effective_tax_rate_rounded|escape:'javascript':'UTF-8'}%) {/if}
{$cart.subtotals.tax.value|escape:'javascript':'UTF-8'}
{/if} {* tax is set and non-zero cart summary, we show Total (tax incl.) *}
{$cart.totals.total_including_tax.label|escape:'htmlall':'UTF-8'} {$cart.totals.total_including_tax.value|escape:'htmlall':'UTF-8'}
{else} {* tax is zero or not used in cart summary, we show Total (tax_label) *}
{$cart.totals.total.label|escape:'htmlall':'UTF-8'}{if isset($configuration) && $configuration.taxes_enabled} {$cart.labels.tax_short|escape:'htmlall':'UTF-8'}{/if} {$cart.totals.total.value|escape:'htmlall':'UTF-8'}
{if isset($cart.subtotals.tax)}
{$cart.subtotals.tax.label|escape:'javascript':'UTF-8'} (0%)
{$cart.subtotals.tax.value|escape:'javascript':'UTF-8'}
{/if} {/if} {if $cart.totals.total_excluding_tax.amount == $cart.totals.total.amount && $configuration.taxes_enabled} {/if} {assign var='ps_freeshipping_price' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {if $ps_freeshipping_price} {assign var=currency value=Context::getContext()->currency} {assign var=ps_freeshipping_price value=$currency->getConversionRate()*$ps_freeshipping_price} {math equation='a-b' a=$cart.totals.total.amount b=$cart.subtotals.shipping.amount assign='total_without_shipping'} {math equation='a-b' a=$ps_freeshipping_price b=$total_without_shipping assign='remaining_to_spend'} {math equation='(100*a)/b' a=$total_without_shipping b=$ps_freeshipping_price assign='completed_percentage'} {if $remaining_to_spend > 0}
{l s='Remaining amount to get free shipping: ' mod='thecheckout'} {Tools::displayPrice($remaining_to_spend,$currency)}
{/if} {/if} {if $waitForShippingCls}
{l s='Please select a shipping method' mod='thecheckout'}
{/if}
{*
*}
{/block}