How can I test the multi-store in localhost IIS?

11 months ago
Hi,
I'm testing Nopcommerce as a candidate to build e-commerce to a client, I need to prepare a demo, but I can't manage to prepare a multi-store on my machine using localhost IIS, how can I do it if possible?
11 months ago
One way you can do it is using IIS to host the website
Create New Local use Domains in the Local DNS
i.e. Edit c:\Windows\System32\Drivers\etc\hosts
Add
127.0.0.1  localtest46.localtestdomain.com
127.0.0.1  localtest46-1.localtestdomain.com
127.0.0.1  localtest46-2.localtestdomain.com

Bind the above domains to the website in IIS

Then in Visual Studio edit the Nop.Web Debug Properties and add an IIS Configuration using the domain localtest46.localtestdomain.com
After the website is running create new stores and map them with the other domains above

To switch stores enter another domain one of the above domains in the browser
11 months ago
Thanks @Yidna for the answer.

I did create a new website for nopcommerce and binded the domains to it:


I added my stores and set the stores urls like:
https://gn.donatello.com/
https://tr.donatello.com/
https://ar.donatello.com/

in my host file and added three lines just like you mentioned.

Now requesting the links takes me to the store (I guess), I can see the currency and languages changes, but I found out if I tried to limit a product to a specific store (and even the currencies and languages) it'll not take any effect, I'll see them in all the stores.
Event I tried to set one of the stores in the "General settings" as "Closed" but all the stores are closed now.

I'm publishing my site in local IIS so I thought no need to change the "Nop.Web Debug Properties" you mentioned.

Any idea where's the issue? I'm using the sample data comes with the installation.
11 months ago
I found the answer, sorry for bothering you.

https://www.nopcommerce.com/en/boards/topic/45860/limited-per-store-not-working-for-products