I use several languages and still the “add to cart” on several buttons is only showing “add to cart” instead of the text belonging to the language a user is setting.
It’s in the following tested blocks:
Featured products
Latest products
Categories
I don’t know if there are any other blocks the language isn’t changing
|
|
I found also that the “Continue Shopping” and “Checkout” – buttons in the cart won’t change language as they’re always getting their texts from the default english file…
|
|
@oossie:
I found a probable workaround
The example is with german language (de-DE)
For the shopping cart go to: language/de-DE/checkout/cart.php
And add:
$_['button_checkout'] = 'Bezahlen';
$_['button_continue'] = 'Weiter einkaufen';
If the file does not exist you have to create it
I’ll catch up with you later for the Add to cart problem as I have it, too.
-
This reply was modified 3360 days ago by kempma.
|
|
the cart is working for me.
Already found the pavilion.php in de the language/en/ folder and copied it after that i changed the appropiate labels with the specific language text.
|
|
did that work for you ? or do you still have the “add to cart” buttons in english?
|
|
Still the buttons have “add to cart” instead of the appropriate language text.
|
|
Hi OOSSIE,
I’ve found the problem… finally…
The developer had $product['text_button_cart'] instead of $tbData->['text_button_cart'] in the product/category.tpl file.
I suggest editing this via vqmod (I hope you have that installed, have you?)
Why? By editing this via vqmod you can be sure it works with the next update, too.
I’ve written a vqmod-file for my installation.
Just copy&paste, then edit the following lines in the attached file for EVERY desired languages and upload it into your vqmod/xml folder.
<!--DE German Language Fix for Category / Product page-->
<file name="catalog/language/de-DE/pavilion/theme.lang.php">
<operation>
<search position="after"><![CDATA[<?php]]></search>
<add><![CDATA[$_['text_button_cart'] = 'In den Warenkorb';]]></add>
</operation>
</file>
<file name="catalog/language/de-DE/product/product.php">
<operation>
<search position="after"><![CDATA[<?php]]></search>
<add><![CDATA[$_['button_cart'] = 'In den Warenkorb legen';]]></add>
</operation>
</file>
Hope this helps,
Mario
P.S.:
It just doesn’t show an attached file here… I don’t know why…
So please find it here: http://www.mediafire.com/view/6g8eacz88odk65d/pavilion_language.xml
-
This reply was modified 3359 days ago by kempma.
-
This reply was modified 3359 days ago by kempma.
-
This reply was modified 3359 days ago by kempma.
-
This reply was modified 3359 days ago by kempma. Reason: No link
|
|
@kempma
The vqmod you have provided will break the “Product stock statuses” feature (the feature that change the “add to cart” button text depending on the product stock status).
@oossie
The text for the “Add to cart” buttons is taken from catalog/language/YOUR_LANGUAGE/your_language.php , or from catalog/language/YOUR_LANGUAGE/pavilion/theme.lang.php , if you have any custom product statuses enabled (the feature is available at Pavilion CP > Theme Settings > Store > Common).
|
|
Allright, now i have the following code in de dutch.php language file
and this file is located in “catalog/language/dutch/” folder.
$_['text_button_cart'] = 'Bestellen';
$_['text_read_more'] = 'Verder lezen';
|
|
@oossie: I guess it would help, if you could tell whether this has solved your problem now or not?
Because i’ve tried that before and it did not work at all on my installation.
The only thing that works is my vqmod. even if it breaks custom order statuses.
|
|
@kempma, i’m not into changing a language issue by Vqmod, in my opinion it’s the wrong way round.
Labels and texts i want to adjust by the language files, and not hardcoded in vqmod.
|
|
@oossie: That was not the question!
Of course it should be in the language file!
But as this seems to be a bug in the theme code it’s a temporary way.
Of course YOU could recode the pavilion theme file so it reads the language codes correctly. But if the problem is not fixed with the next update you’ll have to redo every step again.
That’s why I apply temporary fixes or changes to the template files (which will be overwritten with the next update) only via vqmod.
The thing I wanted to know is: Does the dutch language work for you now after you did what the support guy told you or not???
|
|
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
|
|
OMG THAT’S IT!!!!!
Never thought this could be the issue!
Thanks guys!
YOU’RE GENIUSES (solved my other thread, too)
|
|
I already did those changes and still it doesn’t work for me
i changed the default.php in de appropriate language location.
|
|