ilan316 Posted October 20, 2012 Share Posted October 20, 2012 every time i'm loading a new product to prestashop, in the bottom of every Description, i'm writing the same content i'm looking for a way to make prestashop to add this content automatically is there any module that can do that? Link to comment Share on other sites More sharing options...
Médéric Posted October 20, 2012 Share Posted October 20, 2012 (edited) hi, If it's in the bottom of the long description who appear so on the product page, you can edit your product.tpl (themes/your_theme/) +/- line 508 replace : <div id="idTab1" class="rte">{$product->description}</div> with: <div id="idTab1" class="rte">{$product->description}{l s='YOUR_TEXT'}</div> After you can change the text in your back office -> traductions -> front office -> product.tpl Edited October 20, 2012 by Médéric (see edit history) Link to comment Share on other sites More sharing options...
ilan316 Posted October 20, 2012 Author Share Posted October 20, 2012 its not comfortable since the text i need to add is in different font/size font/color Link to comment Share on other sites More sharing options...
Médéric Posted October 20, 2012 Share Posted October 20, 2012 Can I visit your website or can you explain a little bit more? Link to comment Share on other sites More sharing options...
ilan316 Posted October 20, 2012 Author Share Posted October 20, 2012 the site in hebrew language hope but here you go for example a link to a product: http://buymore.co.il...-android-4.html in the description, scroll down to the bottom of the table. there are 4 lines of text - see picture attached. at the moment i adding this text manually for every product i'm loading to the shop Link to comment Share on other sites More sharing options...
Médéric Posted October 20, 2012 Share Posted October 20, 2012 (edited) A quick solution would be to past this 4 lines in the product.tpl <ul> <li><strong><span style="font-size: 10pt;">{l s='YOUR_TEXT'}</span></strong></li> <li><strong><span style="font-size: 10pt;"><strong><span style="font-size: 10pt;">{l s='YOUR_TEXT'}</span></strong></span></strong></li> <li><strong><span style="font-size: 10pt;">{l s='YOUR_TEXT'}</span></strong></li> <li><span style="color: #ff0000;"><strong><span style="font-size: 10pt;">{l s='YOUR_TEXT'}</span></strong></span></li> </ul> just before: {$product->description} You have the style, you can change the text in "traduction" and it appear on every product page I hope this helps you Edited October 20, 2012 by Médéric (see edit history) Link to comment Share on other sites More sharing options...
ilan316 Posted October 20, 2012 Author Share Posted October 20, 2012 Can i send you my product.tpl file, can you let me know where exactly do i need to add those lines ? Link to comment Share on other sites More sharing options...
Médéric Posted October 20, 2012 Share Posted October 20, 2012 yes, if you want. Link to comment Share on other sites More sharing options...
ilan316 Posted October 20, 2012 Author Share Posted October 20, 2012 can you send me your email? im unable to upload it here Link to comment Share on other sites More sharing options...
ilan316 Posted October 20, 2012 Author Share Posted October 20, 2012 i have sent you the file, please tell me where should i had the text Link to comment Share on other sites More sharing options...
ilan316 Posted October 21, 2012 Author Share Posted October 21, 2012 Thank you for the help. IT worked 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now