Hello, I would like to know if there is any solution to what I am facing:
I have cs-cart installation with two storefronts. I have already set a string value translate to each storefront. So I do this:
I go to Settings - Texts & languages and “Add Language Variable” (for the first storefront add “Hello storefront 1”… After that, go to second storefront and insert the its own value “Hello storefront 2”.
Now, inside my custom addon code, I call this variable to send mail to customers when they are completing an order, let’s say __("da_notify")
.
But, sometimes the customer is ording from the Storefront 1, and goes the Language Variable from the Storefront 2. Is there any way to add the correct language variable and not mess up the variables? What I am doing wrong or what I am missing?
For example, I know there is $runtime.company_id
which returns the company id, could I use this to confirm the right lang variable?
Thanks in advance