Hoodgrown Posted April 14, 2009 Share Posted April 14, 2009 Okay.. on the shopping cart page under vouchersI want to add the following text:How do I get these?Sign up for PetsRight emailsand receive special offersand promotions.How do I do this? I can't figure out what to actually modify. Link to comment Share on other sites More sharing options...
first1 Posted April 14, 2009 Share Posted April 14, 2009 hi there.It is very easy!in the file:/themes/prestashop/shopping-cart.tplJust 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 wronglet me know if works for you... Link to comment Share on other sites More sharing options...
fall3n Posted April 14, 2009 Share Posted April 14, 2009 I hope not to hijack this thread, but how would you add multi-lingual support for the text you just added? Link to comment Share on other sites More sharing options...
first1 Posted April 14, 2009 Share Posted April 14, 2009 mate english is more than enough for me, sorry never worked with the laguages or translations, maybe someone else can have an input Link to comment Share on other sites More sharing options...
fall3n Posted April 14, 2009 Share Posted April 14, 2009 I hope so, it's highly important for the sites that I need to run. Link to comment Share on other sites More sharing options...
sportnjerseys Posted October 6, 2010 Share Posted October 6, 2010 I am currently using version 1.3.1.1 and added the same coding just changed the text.IT DOES NOT WORK...anything else I need to do other than change that coding in that file....any help would be great. Thank you. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted October 6, 2010 Share Posted October 6, 2010 I hope not to hijack this thread, but how would you add multi-lingual support for the text you just added? Use the translation section of the BO. Link to comment Share on other sites More sharing options...
Recommended Posts