Jump to content

Add to cart button....


lasseboy

Recommended Posts

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.

translation.jpg

Edited by lasseboy (see edit history)
Link to comment
Share on other sites

Go to /var/www/html/themes/THEMENAME/templates/catalog/_partials/product-add-to-cart.tpl

Search for:

<i class="material-icons shopping-cart">&#xE547;</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

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">&#xE547;</i>
           Lägg i varukorg
          </button>

Link to comment
Share on other sites

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

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!

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...