newguto Posted December 22, 2013 Share Posted December 22, 2013 Hi, what i really need is... when i use FireFox .. when im on a page in my shop i right click in a item , exemple a text that i want to change.... ok so i right click then Inspect Element.. and it shows for exemple a text that i want to change it calls ADD TO CART and i want to change it for another nameso when i inspect this element it gives me this <a class="button ajax_add_to_cart_button exclusive" title="Add to cart" href="http://www.rerjoias.com.br/index.php?controller=cart&add=1&id_product=8&token=0cba4a1e082b9bcea5b2fb07d3dbb47c" rel="ajax_id_product_8"> … </a>Alright so i know that i have to change the *tittle="Add to cart" oK but where do i find this file? i cant track it... do you guys please can help me out???Thanks a lot and sorry for bad english!!!! Merry Xmas to all!! Link to comment Share on other sites More sharing options...
Dh42 Posted December 22, 2013 Share Posted December 22, 2013 To change text like that in the back office go to Languages >> translations. You can change frontend text that way. That will either be in the blockcart module or the blockuserinfo Link to comment Share on other sites More sharing options...
newguto Posted December 22, 2013 Author Share Posted December 22, 2013 That was just a exemple , is not the add cart .. its a lot things i really want to find the file... to change almost everything , the Languages translations work just a bit not for everything , and on blockcart is just for the cart i want to change other stuffThank You!!! Link to comment Share on other sites More sharing options...
walidon Posted December 22, 2013 Share Posted December 22, 2013 Can you give some of the other things you want to change? Link to comment Share on other sites More sharing options...
newguto Posted December 22, 2013 Author Share Posted December 22, 2013 Sure, i want to change mainly texts on Home and other pages also... everything that is in english to portuguese witch is my language but not everything translates becouse im using a template so is a lots of things also like where they say Design by and stuff like this .. and its not on foot i need to find the exacly file to change and i cant find the files becouse mainly is index.php and has nothing on it Link to comment Share on other sites More sharing options...
walidon Posted December 22, 2013 Share Posted December 22, 2013 (edited) you can translate from English to portugese by downloading the portugese language file and install it, then if you want to use only portugese, desactivate English. if you don't know how to do so let me know. conerning the designed by... do you mean "powered by prestashop"? if yes, here is how you can change it: your-site-root-directory/yourtheme/modules/blockcms/blockcms.tpl go to line 60 it looks like this {if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a class="_blank" href="http://www.prestashop.com">PrestaShop</a>™</li>{/if} you need to remove what you want. in index.php you can't change nearly nothing...all is done through modules and other places. let me know if u need more help. Edited December 22, 2013 by walidon (see edit history) Link to comment Share on other sites More sharing options...
newguto Posted December 22, 2013 Author Share Posted December 22, 2013 Dont work friend... its all in portugues already and english disable... but since its a template it dont translate everything and when it does... it translate kinda bad you know so i need to change to exacly words... and its a lot things that i want to change and its only the powered by prestashop it also have like Powered by prestashop and theme by .... got me? thanks for helping me! Link to comment Share on other sites More sharing options...
walidon Posted December 22, 2013 Share Posted December 22, 2013 (edited) for the poweredby.... try in your-site-root-directory/modules/blockcms/blockcms.tpl the same line the same thing can you give a link? this may help me to understand your site. concerning the translation: it is recommended that you go to your back office (admin) and translate what you like, you have two things to do in order to translate your site: one through the localization menu ---go to translation then the first thing is modify translations. you will find the flags of the installed languages; you click on the flag of the language you want to modify (in ur case it is portegese) then there you will find a varity of expressions to modify. the other one is translating the modules. go to modules -- in the list of modules when you find a module with the option configure , click there and then you will find the options manage translations. this will give you all the modules and their possible translation. all you need to do is fill in the empty ones and change the existing ones with what you like. Edited December 22, 2013 by walidon (see edit history) Link to comment Share on other sites More sharing options...
newguto Posted December 22, 2013 Author Share Posted December 22, 2013 Thanks man i will try this files... the site is www.rerjoias.com.br .. what i want is to change everything that is in english not only in Home but also when you click in a product witch is everything in english Link to comment Share on other sites More sharing options...
walidon Posted December 22, 2013 Share Posted December 22, 2013 in case the iles to be changed in the root of the site don't make the changes, then go to your themes, and choose your theme. in the root of your theme you will find all the nessary files to change, like footer, header an do on... Link to comment Share on other sites More sharing options...
newguto Posted December 22, 2013 Author Share Posted December 22, 2013 You mean all the .TPL files is everything in there? Link to comment Share on other sites More sharing options...
walidon Posted December 22, 2013 Share Posted December 22, 2013 yes for example if u want to modify the footer, then open the footer.tpl and make the necessary changes, it is not the translation, but for example to delete the designed by.. Link to comment Share on other sites More sharing options...
newguto Posted December 22, 2013 Author Share Posted December 22, 2013 Ok so i found something that i want to change what i did was ... i search for the file like you said on the TPLs and i found it its this line <h1>{l s='New products'}</h1> Ok so i change it to Novos Produtos witch is the same but in portuguese... and dont work ...So i went again on the website and went to find the element again and there was this code here<a href="#new">New products</a>Ok so now im lost becouse i didnt found this on the TPL files Link to comment Share on other sites More sharing options...
walidon Posted December 23, 2013 Share Posted December 23, 2013 (edited) As I told you the tpl files are mainly for design. the translation is done in your admin area in the translation section or modules translation. that is why if you change a word in your tpl files it will remain in English:) Edited December 23, 2013 by walidon (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 23, 2013 Share Posted December 23, 2013 instead of {l s='New products'} you have to use {l s='New products' mod='modulenamehere'} where modulenamehere is a name of module. it's necessary, otherwise module translations will not work (use it only in module .tpl files) Link to comment Share on other sites More sharing options...
Recommended Posts