Jump to content

Adding Text To Shopping Cart Page.


Recommended Posts

hi there.
It is very easy!

in the file:
/themes/prestashop/shopping-cart.tpl

Just add your txt in a Div like shows below in the code and it would work fine. you can design it the way you want.
see i added you bit which is :



{l s='How do I get these?'}


{l s='Sign up for PetsRight emails'}


{l s='and receive special offers'}


{l s='and promotions.'}






Just do it like that and test it and test fuctionality of the cart after.


{if $voucherAllowed}

   {if $errors_discount}

       {foreach from=$errors_discount key=k item=error}
{$error|escape:'htmlall':'UTF-8'}
       {/foreach}

   {/if}
   <form action="{$smarty.server.PHP_SELF|htmlentities}" method="post" id="voucher">

{l s='Vouchers'}


{l s='Code:'}
               <input type="text" id="discount_name" name="discount_name" value="{if $discount_name}{$discount_name}{/if}" />


<input type="submit" name="submitDiscount" value="{l s='Add'}" class="button" /></p>

   </form>









{l s='How do I get these?'}
{l s='Sign up for PetsRight emails'}
{l s='and receive special offers'}
{l s='and promotions.'}








{/if}
{$HOOK_SHOPPING_CART}
{if ($carrier->id AND !$virtualCart) OR $delivery->id OR $invoice->id}

   {if $delivery->id}

{l s='Delivery address'}
       {if $delivery->company}{$delivery->company|escape:'htmlall':'UTF-8'}{/if}
{$delivery->lastname|escape:'htmlall':'UTF-8'} {$delivery->firstname|escape:'htmlall':'UTF-8'}
{$delivery->address1|escape:'htmlall':'UTF-8'}
       {if $delivery->address2}{$delivery->address2|escape:'htmlall':'UTF-8'}{/if}
{$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'}
{$delivery->country|escape:'htmlall':'UTF-8'}

   {/if}
   {if $invoice->id}

{l s='Invoice address'}
       {if $invoice->company}{$invoice->company|escape:'htmlall':'UTF-8'}{/if}
{$invoice->lastname|escape:'htmlall':'UTF-8'} {$invoice->firstname|escape:'htmlall':'UTF-8'}
{$invoice->address1|escape:'htmlall':'UTF-8'}
       {if $invoice->address2}{$invoice->address2|escape:'htmlall':'UTF-8'}{/if}
{$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'}
{$invoice->country|escape:'htmlall':'UTF-8'}

   {/if}
   {if $carrier->id AND !$virtualCart}

{l s='Carrier:'}
       {if isset($carrierPicture)}id}.jpg" alt="{l s='Carrier'}" />{/if}
{$carrier->name|escape:'htmlall':'UTF-8'}

   {/if}




Make sure you take a back up of the original file before you work on it, incase something goes wrong

let me know if works for you...

6850_ONYnQzaneQ1hoIM7pxAR_t

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...