Hello Milos,
I can not add text here (see screenshot) on a page cart with the module Can you help me please ? I must add a new hook ? I do not find how to do...
Thank you so much for your help,
How to Display custom text in cart, above voucher input form
Hello,
PrestaShop does not have any position there.
So if you want to build custom contents and show them there - it will be required to create a new hook and put it to theme file that is responsible for this part of cart.
usually the file is: /themes/your-theme/shopping-cart.tpl - there is a code like
PrestaShop does not have any position there.
So if you want to build custom contents and show them there - it will be required to create a new hook and put it to theme file that is responsible for this part of cart.
usually the file is: /themes/your-theme/shopping-cart.tpl - there is a code like
{if $voucherAllowed} <form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher"> <fieldset> <h4>{l s='Vouchers'}</h4> <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" /> <input type="hidden" name="submitDiscount" /> <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button> </fieldset> </form> {if $displayVouchers} <p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p> <div id="display_cart_vouchers"> {foreach $displayVouchers as $voucher} {if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br /> {/foreach} </div> {/if} {/if}
put above
Then go to html box pro configuration page and use form to create new hook. Set new hook name to
The contents you will show inside this hook will appear there where you want.
{hook h='displayAboveVoucherForm'}
Then go to html box pro configuration page and use form to create new hook. Set new hook name to
displayAboveVoucherForm
The contents you will show inside this hook will appear there where you want.
0 comments:
Post a Comment