Setting Up Multiple Magento Stores on a Single Domain
Hello there! I’m going to help you set up two distinct Magento storesâone for your retail customers and another for wholesalersâall under the same domain. Let’s dive into this step-by-step.
Does This Approach Make Sense?
Absolutely, using separate stores is a sound approach when your products differ significantly between customer types. It allows for better organization, security (password protecting the wholesale section), and future scalability.
Directory Structure Basics
Your current structure looks good:
www.mysite.com: WordPress CMSwww.mysite.com/store: Magento e-commerce setup
The goal is to have:
www.mysite.com/store/retailfor the retail storefrontwww.mysite.com/store/wholesalefor the wholesaler section (password-protected)
The Magento Website, Store, and View System Explained
You’re on the right track. You’ll need to create:
-
One Magento website (
mysite.com)- This represents your overall domain structure.
-
Two stores
Store 1: Retail- Products visible to all
Store 2: Wholesale- Products hidden from non-logged-in users
-
One view per store
View: English (or your preferred language)- Common global settings like currency, time zone etc.
Setting It Up
Step 1: Create the Website
- Log into Magento admin panel.
- Navigate to Stores > Settings > All Stores.
- Click on “Add New Website”.
- Fill in basic information and save.
Step 2: Create Stores Under the Website
- In the same section, click on “Create Store”.
- Choose the website you just created.
- Fill in store details (name, code etc.).
- Set the root category for each store differently.
- Click “Save”.
Step 3: Configure Wholesale Password Protection
For this part, you might need a third-party extension. Here’s how to set it up:
-
Install and enable your password protection module.
-
Go to Stores > Configuration > Sales > Customer Configuration.
-
Set
Enable Wholesalerto yes for your wholesale store view only. -
Save configuration.
Conclusion
Setting up multiple Magento stores on a single domain is absolutely achievable with this approach. It provides clean separation, great security options (like password protecting the whole section), and better management capabilities.
Remember to thoroughly test both stores after setup to ensure everything works as expected.
Need further help or professional services? Check out what we offer at Laravel Company. Our team specializes in complex Magento implementations.
Happy developing!