lasseboy Posted September 27, 2021 Share Posted September 27, 2021 I have gone through all the translation files but can not find where I change this button add to cart, see picture. Have tried modules, themes and other translations. I want to change in to swedish. Link to comment Share on other sites More sharing options...
lasseboy Posted September 27, 2021 Author Share Posted September 27, 2021 I also thought it was there but nothing happens, inside the product there it is in Swedish. se pic Link to comment Share on other sites More sharing options...
Nickovitshj Posted September 27, 2021 Share Posted September 27, 2021 I'd suggest going into your theme files and hardcoding if you can't find it anywhere else. Link to comment Share on other sites More sharing options...
hshaker Posted September 27, 2021 Share Posted September 27, 2021 Il y a 16 heures, lasseboy a dit : I have gone through all the translation files but can not find where I change this button add to cart, see picture. Have tried modules, themes and other translations. I want to change in to swedish. 1 Link to comment Share on other sites More sharing options...
lasseboy Posted September 28, 2021 Author Share Posted September 28, 2021 (edited) Thanks for trying to help me out! Look pic, Has translated everything and yet it does not change in the front office. Theme I have is Flatshop. could it have gone wrong? There are several places that I have problems with being able to change, have run PS from 1.4 up to 1.6 and have not had such problems with translating. Edited September 28, 2021 by lasseboy (see edit history) Link to comment Share on other sites More sharing options...
Nickovitshj Posted September 28, 2021 Share Posted September 28, 2021 Go to /var/www/html/themes/THEMENAME/templates/catalog/_partials/product-add-to-cart.tpl Search for: <i class="material-icons shopping-cart"></i> {l s='Add to cart' d='Shop.Theme.Actions'} You can change {l s='Add to cart' d='Shop.Theme.Actions'} into the text you'd like. Just make sure you document this change if you would do it like this. Link to comment Share on other sites More sharing options...
lasseboy Posted September 28, 2021 Author Share Posted September 28, 2021 Thank you for trying to help me, But it did not work.🤥 <i class="material-icons shopping-cart"></i> {l s='Lägg i varukorg' d='Shop.Theme.Actions'} </button> Link to comment Share on other sites More sharing options...
Nickovitshj Posted September 28, 2021 Share Posted September 28, 2021 It might be possible that the above fix is for the product detail page. Now it should be looked at for the catalog overview from your screenshot. Or try to remove the whole brackets thing and just putting it like: <i class="material-icons shopping-cart"></i> Lägg i varukorg </button> Link to comment Share on other sites More sharing options...
lasseboy Posted September 28, 2021 Author Share Posted September 28, 2021 Sorry but that didn't help either. Checked the theme translation in the FTP folder for Swedish. it is empty, there is not a single file in it, right? themes / flatshop / translations / sv-SE Link to comment Share on other sites More sharing options...
Nickovitshj Posted September 28, 2021 Share Posted September 28, 2021 It seems the change I proposed affected your product detail page: http://shop.delameddig.nu/biografier-livsberaettelser/2-loegnerna-kvinnor-tror-pa-.html#reviews You will need to look for product.tpl at /var/www/html/themes/THEMENAME/templates/catalag/_partials/miniatures/product.tpl There look for the following code, keep in mind it won't look exactly like this as there will be variables instead, there you should hardcode add to cart in you language: <button class="btn add-to-cart btn-primary" data-button-action="add-to-cart" type="submit" tabindex="-1"> <span class="add_to_cart_tittle"> Add to cart </span> </button> Link to comment Share on other sites More sharing options...
lasseboy Posted September 28, 2021 Author Share Posted September 28, 2021 Yes! Now some of them changed .... thank you .. Now it's just "shop Now" and a few English words left! I get to search through all the tpl files! Thanks!!! see pic!!! Link to comment Share on other sites More sharing options...
Nickovitshj Posted September 28, 2021 Share Posted September 28, 2021 You're welcome! The way I do it is as follows: I do a one time download from all files in the html folder through FTP. I open this folder in Visual Studio Code (Free editor) In Visual studio code I can search for specific code through the entire folder. Then it says in which files this code occurs. And then u just need to look for the .tpl files mostly. Good luck! 1 Link to comment Share on other sites More sharing options...
lasseboy Posted September 28, 2021 Author Share Posted September 28, 2021 Thanks!!! 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