Monday, December 28, 2009

Switching language and currency when having multiple websitecodes (for sonician)

Problem (and maybe better solutions) found here:

Hi again
There is a way of running a store view directly.
When you call something like this:
Mage::run('website1', 'website');
the default store view from website1 will run.
Let's say in website1 you have a store view called store_view_1. You can run it like this.
As for the currency, you can set a default currency for each store view.
For example you can have to identical store views (in English), one with default currency 'EUR' and one 'GBP'.
Let's say the first one is called store_view_eur, and the second one store_view_gbp.
You can run them like this.
if (some condition){
As for the IP location, sorry but I don't think I can help you much there.

1 comment:

  1. Hi Marius,

    Thanks for your script that you posted about posibility to sort products based on "stock" on magento web platform. I have version and it seems ok. If you want, you can take a look:

    Tiberiu Mitu