Multi Store Support fro Nop 2.0

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
On your demo frontpage, the Featured Products part shows a lot of pictures. May I know how you do it?
I am not planning to run multiple store on Nop.
I just want to display a lot of pictures.
Please provide me some information which file I need to modify.
I'd appreciate your help~~~Thank You~~~~~
12 years ago
zugo01 wrote:
Hello,

I tried running the installation for the multistore buy I keep get the error below, any ideas?

Thanks,

Zugo



I guess u are trying to update an existing db.
try to install NC on a new db

popolun wrote:
On your demo frontpage, the Featured Products part shows a lot of pictures. May I know how you do it?
I am not planning to run multiple store on Nop.
I just want to display a lot of pictures.
Please provide me some information which file I need to modify.
I'd appreciate your help~~~Thank You~~~~~


go to the product u wish to show on home page and check the ShowOnHomepage check box
12 years ago
Thank you for your help~~~~
12 years ago
hezyz wrote:
Hello,

I guess u are trying to update an existing db.
try to install NC on a new db



Hello Heyz, thanks for your quick reply.
I actually deleted the database and even tried running the installation on a different machine.
I unzipped the multistore, opened the solution on VS2010, built it (it built without errors) then tried running it from visual studio. Are my missing something?
Thanks
12 years ago
that is the way do it.
the error u have posted before is from trying update an existing db.

a new installation with a new db should work, make sure to delete the settings.txt from the app_data folder
12 years ago
Thanks Heyz,

I actually deleted the database and also the settings.txt file when I had that errors. I will try figuring it out. Thanks
12 years ago
This is a very sweet feature, I love it.  

Excuse my ignorance of contributors for nopCommerce, but is this code to be rolled into the baseline nopCommerce or is this separate fork?
12 years ago
Hello,

I finally got it to work. The error I got was because during installation 4 customers (3 store managers and 1 Admin) are set to be created by default and the 3 store managers points to 3 stores which is not created hence I was getting the foreign key INSERT statement conflict error.

Solution: Add code to create 3 stores

//add by hz
        protected virtual void InstallDefaultStore()
        {
            var StoreAll = new Store
            {
                Name = "All Stores",
                PageSize = 4,
                Published = true,
                DisplayOrder = 0,
                CreatedOnUtc = DateTime.UtcNow,
                UpdatedOnUtc = DateTime.UtcNow,
            };
            _storeRepository.Insert(StoreAll);


            var Store1 = new Store
            {
                Name = "Store One",
                PageSize = 4,
                Published = true,
                DisplayOrder = 0,
                CreatedOnUtc = DateTime.UtcNow,
                UpdatedOnUtc = DateTime.UtcNow,
            };
            _storeRepository.Insert(Store1);

            var Store2 = new Store
            {
                Name = "Store Two",
                PageSize = 4,
                Published = true,
                DisplayOrder = 0,
                CreatedOnUtc = DateTime.UtcNow,
                UpdatedOnUtc = DateTime.UtcNow,
            };
            _storeRepository.Insert(Store2);

            var Store3 = new Store
            {
                Name = "Store Three",
                PageSize = 4,
                Published = true,
                DisplayOrder = 0,
                CreatedOnUtc = DateTime.UtcNow,
                UpdatedOnUtc = DateTime.UtcNow,
            };
            _storeRepository.Insert(Store3);

        }
        //end by hz

Thanks Heyz, this is really a great feature.

Zugo
12 years ago
Hi Hezyz,
If the user buy two products from different stores, are both store admins see the order?  In the current sytem, one of the store admin gets the access denied message.  How do we deal with this?  

Thanks.
Tram
12 years ago
I know its a bug, i working now on the front of the multi store.
the orders will be divided by stores as well as check out, in that case there will be no mixed products on one order.

hope to release it soon.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.