I have a client who is in need of a store with multiple, independent currency rates. They cannot use the default rate functionality of Magento due to them needing bespoke prices for each currency and product.
To battle this we decided to create a website per currency. However, we also need two store groups and store views for each site. Is there a way to set-up Magento whereby it would be something like the following:
domain.com/website1/store1
domain.com/website1/store2
domain.com/website2/store1
domain.com/website2/store2
I have read of many ways to do each separately (i.e. domain per website and subfolder per store) but not of having both in the URL.
The way I was looking to do this was with a symlink, but I just can't wrap my head around where to start!
Any help would be appreciated, thank you.
Best Answer
I used to do it like this:
create the folders
website1/store1
,website1/store2
, ...Then, in the folder
website1
clone the index.php and.htaccess
from the rood folder and replace this inindex.php
with
and replace
with
Do the same for the folder website2 but change the code accordingly on the last line I mentioned.
Then copy the same files in the folder
website1/store1
and changewith
and
with
Do the same for the other store folders (
website1/store2
,website2/store1
,website2/store2
) adjusting the last line accordingly.Then you will have to go to
System->configuration->web->unsecure
in the backend, select from the top left selector,website1
and fill in the base url field tohttp://www.domain.com/website1/
. Do the same for base link url.and for media base url fill in
http://www.domain.com/media/
. The same goes for skin and js urls.Do the same for website 2.
Then select from the top left selector the store view
store1
.Fill in the base url to
http://www.domain.com/website1/store1/
and the same for base link url. I don't think there is a need to change the values for base media/skin/js url.Do the same for the 3 others store views.
Clear the cache and give it a go.