- Changed the button text for adding a voucher code to Polish ("Dodaj kod rabatowy").
- Updated placeholder text in checkout form fields to use field labels.
- Modified shipping template to display shipping time in Polish.
- Refined CSS styles for better layout and responsiveness in checkout areas.
- Updated custom CSS version in the head template and added a script to move the free shipping message to the top of the container.
85 lines
3.8 KiB
Smarty
85 lines
3.8 KiB
Smarty
{**
|
|
*
|
|
* 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 <contact@prestashop.com>
|
|
* @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
|
|
*}
|
|
{if $cart.vouchers.allowed}
|
|
{block name='cart_voucher'}
|
|
<div class="card-block block-promo">
|
|
<div class="cart-voucher">
|
|
{if $cart.vouchers.added}
|
|
{block name='cart_voucher_list'}
|
|
<ul class="promo-name card-block">
|
|
{foreach from=$cart.vouchers.added item=voucher}
|
|
<li class="cart-summary-line">
|
|
<span class="label">{$voucher.name|escape:'htmlall':'UTF-8'}</span>
|
|
<a href="{$voucher.delete_url|escape:'javascript':'UTF-8'}" data-discount-id="{$voucher.id_cart_rule|escape:'javascript':'UTF-8'}" data-link-action="x-remove-voucher"><span class="icon-delete"></span></a>
|
|
<div class="float-xs-right">
|
|
{$voucher.reduction_formatted|escape:'htmlall':'UTF-8'}
|
|
</div>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
{/block}
|
|
{/if}
|
|
|
|
<p class="{if $cart.discounts|count > 0}hidden because-have-highlighted-discounts{/if}">
|
|
<a class="collapse-button promo-code-button collapsed" data-bs-toggle="collapse" data-bs-target="#promo-code" data-toggle="collapse" href="#promo-code" aria-expanded="false" aria-controls="promo-code">
|
|
{l s='Have a promo code?' d='Shop.Theme.Checkout'}
|
|
</a>
|
|
</p>
|
|
|
|
<div class="promo-code collapse{if $cart.discounts|count > 0} in show{/if}" id="promo-code">
|
|
{block name='cart_voucher_form'}
|
|
<form method="post">
|
|
<input type="hidden" name="token" value="{$static_token|escape:'javascript':'UTF-8'}">
|
|
<input type="hidden" name="addDiscount" value="1">
|
|
<div class="promo-input-button d-f">
|
|
<input class="promo-input" type="text" name="discount_name" placeholder="{l s='Promo code' d='Shop.Theme.Checkout'}">
|
|
<button data-link-action="x-add-voucher" type="submit" class="btn btn-primary"><span>Dodaj kod rabatowy</span></button>
|
|
</div>
|
|
</form>
|
|
{/block}
|
|
|
|
{block name='cart_voucher_notifications'}
|
|
<div class="alert alert-danger js-error" role="alert">
|
|
<i class="material-icons"></i><span class="ml-1 js-error-text"></span>
|
|
</div>
|
|
{/block}
|
|
</div>
|
|
|
|
{if $cart.discounts|count > 0}
|
|
<p class="block-promo promo-highlighted">
|
|
{l s='Take advantage of our exclusive offers:' d='Shop.Theme.Actions'}
|
|
</p>
|
|
<ul class="js-discount card-block promo-discounts">
|
|
{foreach from=$cart.discounts item=discount}
|
|
<li class="cart-summary-line">
|
|
<span class="label"><span class="code">{$discount.code|escape:'htmlall':'UTF-8'}</span> - {$discount.name|escape:'htmlall':'UTF-8'}</span>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/block}
|
|
{/if}
|