Hello,
We have a multi-language store that sells books in three languages. Currently, when we use product blocks (e.g., product grid), the list of products remains the same regardless of the selected language.
We would like to display a different set of products in the same block depending on the user’s selected language. For example:
- For language X, display products A and B in the product grid.
- For language Y, display products C and D in the same product grid.
- For language Z, display products E and F in the same product grid.
Is it possible to achieve this in CS-Cart, and if so, how?
Thank you for your help!
Open config.local.php file under CS-Cart root folder and change disable_localizations to false.
But please note that the localizations feature is outdated and not supported for ages
If it is outdated, would you please suggest viable solution?
One option is cs-cart ultimate. it allows you to set up a storefront (domain/sub domain) for each language/region etc… you would need a seperate category tree for each storefront/language
2 Likes
Please feel free to PM us.
chickentwisty is right. Also our specialists can develop a new feature for you to assign products to languages
Thank you for your replies. However, you are getting a bit off-topic here. Maybe I did not explain clearly. I only need a way to show a certain “grid” or “block” to a certain language. I do not need to add a product to a language or anything.
Russian language users will see Top 10 russian sold books. English language users will see the same block but we want to show them English books. This does not mean that Russian users cannot find english books in the website.
Thank you for the clarification. The easiest way is
- create two block with different set of items
- create two block wrappers (use default one as an example) and wrap their code with
{if $smarty.const.CART_LANGUAGE == 'ru'}
.... wrapper content here....
{/if}
and
{if $smarty.const.CART_LANGUAGE == 'en'}
.... wrapper content here....
{/if}
Available block wrappers can be found here
design/themes/responsive/templates/blocks/wrappers
1 Like