Reading list Switch to dark mode

    WooCommerce Marketplace Vendor Subdomain

    Updated 31 May 2023

    To keep the customers intact in your store, it is important for entrepreneurs to keep looking for better options, to build an extensive marketplace.

    They must strive to incorporate different ways and means to meet this motive as there are multiple options open to them. 

    WooCommerce Marketplace Vendor Subdomain offers one such option.

    The admin may assign a domain or subdomain to the vendors and the vendors can exhibit their products under a separate shop page that completely belongs to them.

    Different URLs shall create for each seller under the vendor domain or subdomain.

    Searching for an experienced
    WordPress Company ?
    Read More

    The customers can directly access the vendor’s sub-domain and buy products without having to visit the marketplace. 

    Note: This extension is an add-on to Webkul’s WordPress Woocommerce Marketplace Multi-Vendor module. So, you must first install Webkul’s WordPress Woocommerce Marketplace Multi-Vendor module to make use of this extension.

    Watch the video to understand the extension workflow:-

    7AHtFCMFclI

    Features

    • The admin may assign separate domain names to the vendors.
    • The customers can directly purchase products from the vendor’s panel.
    • The domain or the sub-domain may be used to display only the vendor’s products.
    • Both the admin and vendor’s products will display under the vendor’s domain or the subdomain. 
    • Allows admin to add prefix with vendor’s sub-domain.

    Installation

    The user will get a zip file that he has to upload in the “Add New” menu option in the WordPress Admin Panel. For this login to WordPress Admin Panel. Under the Dashboard hover your mouse over the “Plugins” menu option. This would bring out a Sub-Menu and then select the “Add New” option.Marketplace Vendor Subdomain

    After this, you will see an option on the top of your page that is “Upload Plugin”. Click on the option to upload the zip file.Marketplace Vendor Subdomain

    Furthermore, by clicking on the “Upload Plugin” option, you will see a button “Choose File”. Click on the button to browse for the zip file as per the snapshot below.Marketplace Vendor Subdomain

    After browsing the file, click the “Install Now” button to install the plugin as per the snapshot.Marketplace Vendor Subdomain

    When the plugin is installed correctly, you will see the success message and an option to activate the plugin. Click on “Activate Plugin” to activate the installed plugin.Marketplace Vendor Subdomain

    Backend Management

    Marketplace Vendor Subdomain

    Enable Subdomain- The admin may set the Enable Subdomain as Enable or Disable, to enable or disable the subdomain for the seller.

    Vendor subdomain Prefix- The admin may set the Vendor subdomain Prefix for the seller.

    Enable Domain- Admin may set Enable Domain as Enable or Disable and if both the domain and subdomain name is set as enable, So the priority given to the domain name.

    Note: If the Domain Name is set as Enable the Seller Domain option shall be visible under Users>All Users>Domain Redirection Settings. The domain URL has to be set by the admin for the seller.

    Marketplace Vendor Subdomain

    DNS Panel

    WooCommerce Vendor Subdomain module allows the vendors to have their own subdomain or domain.

    The module creates URLs for each vendor’s page under vendor’s subdomain or domain.

    Let’s say your website has domain abc.com which is mapped to some IP address X.X.X.X. And this server has a Webserver running whose document root is point to Woocommerce files and directories.

    So, if you want to allow vendors to have their own subdomain or domain which can be accessed by the customers directly for purchasing products, then follow the steps being mentioned below:

    Let’s presume you want to facilitate a vendor (with keyword newseller) to use subdomain for its products.

    1. DNS panel entry:

    1). Create an A entry in your DNS panel for newseller.abc.com and map it your server IP address X.X.X.X

    2). Ping and check if newseller.abc.com is resolving to the mapped IP address or not.

    2). Configuring Web Servers :

    Once DNS entry has been done, configure your webserver to complete subdomain configuration process.

    Configuring Apache Web Server:

    Add entries in /etc/apache2/sites-available/000-default.conf as:

    <VirtualHost *:80>

    ServerName newseller.abc.com

    ServerAdmin webmaster@localhost

    DocumentRoot /path/to/woocommerce/files

    </VirtualHost>

    Edit above, uncomment ServerName and replace your required domain name with
    www.example.com and add ServerAlias with *.domain name as below:

    <VirtualHost *:80>
    ServerName test.webkul.com
    ServerAlias *.test.webkul.com
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    </VirtualHost>

    Configuring Nginx Web Server:

    Add entries in /etc/nginx/sites-available/default as:

    server {

    listen 80;

    root /path/to/woocommerce/files;

    server_name newseller.abc.com;

    index index.html index.htm index.nginx-debian.html;

    ## Add rest of the Nginx Configuration here ##

    }

    server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;
    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

    server_name test.webkul.com *.test.webkul.com;


    }

    3). Now hit the URL newseller.abc.com on the browser and check if everything’s working properly or not.

    Note: By clicking on this link, you can see the DNS configuration.

    Frontend View

    The admin configures the Seller Domain under Domain Redirection Settings.

    The domain is visible on the frontend, for example, here- ” demostore1.vachak.com/marketplace-vendor-subdomain/product/long-sleeve-tee/ “. This URL is being display on the URL tab.

    Front-end view

    Furthermore, the admin, sets Enable Subdomain as Enable and Enable Domain is as Disable from backend.

    Then only products that belong to the seller, selected by the buyer, shall be display at the “SHOP” page.

    Admin-end

    Here, in the image below, the customer has selected the “Long Sleeve Tee” which belongs to the seller “Doe Shop”. 

    We can see the subdomain URL. This URL belongs to “Doe Shop” which is different from the URL when the Domain name is set as Enable. 
    Marketplace Vendor Subdomain

    The customers may choose a particular seller’s product, for example, Michael Snow’s product-wrist watch as shown in the image below.

    Moreover, at the bottom of the page, one can see the subdomain URL which belongs to the vendor- Michael Snow.

    for example- ” wordpressdemo.webkul.com/marketplace-vendor-subdomain/product/earphones/ “.

    Furthermore, The customer may simply hover the cursor over Seller- Mikey-Shop and view the URL at the bottom of the page.

    For instance- ” https://webkulmikeyshop.wordpressdemo.webkul.com/marketplace-vendor-subdomain/seller/store/mikeyshop “Marketplace Vendor Subdomain

    Moreover, on clicking the shop URL- Mikey-shop, the Seller- Michael Snow’s separate product page shall open.

    The page displays only Michael Snow’s products under the URL- “webkulmikeyshop.wordpressdemo.webkul.com/marketplace-vendor-subdomain/seller/store/mikey/” which is visible on the URL tab. Seller-end

    That’s all for the Word Press WooCommerce Marketplace Vendor Subdomain.

    If you still have any issues, feel free to add a ticket and let us know your views on our Webkul Support System.

    Current Product Version - 1.1.1

    Supported Framework Version - Wordpress: 5.8,Woocommerce: 6.0,Woocommerce Maketplace: 5.1.3

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    6 comments

  • Oma
    If I have purchased your Woocommerce multivendor B2B marketplace, can I be able to use this plugin??!!
    • Goldy Bhargava (Moderator)
      Dear Customer,

      Our marketplace vendor sub domain does not work with B2B marketplace plugin. Kindly email us at [email protected] with your full detailed requirement so we can assist you better.

      Thanks,

      Team Webkul

  • Jay
    We need a LOT more information on this. First of all most WebHosts do not allow you to have access to config files, which means we will bother them every time we need to add a domain. This might get very old, very quickly for them, because we will have to trouble them again to remove the users.

    Also what about Fully Qualified Domain Names? You say “domain or subdomain” but then you do not clarify. If I am offering to vendors to sign up at my marketplace.com, but they want to use their own domain to participate such as shoestore.com, is this possible with your code?

    I am really looking for that very application to set up a new marketplace!!

    Thanks so much for your help 🙂

    • gunjita joshi (Moderator)
      Hello Jay,

      Thanks for dropping by and letting us know your concern.

      Firstly let me jot down these two points for you to have a clear idea-

      In case of adding the Domain, you will have to add the config file of the server for adding the seller URL again and again. The reason being, mapping would take place between the seller and the URL.

      In case of sub-domain, you need to add the config file only once, and later it will map dynamically, and you will not have to add the config files again and again.

      As per your query, in the second part you have mentioned an example-
      “If I am offering to vendors to sign up at my marketplace.com, but they want to use their own domain to participate such as shoestore.com, is this possible with your code?”

      Here, you have said “but they want to use their own domain.” As they wish to use their domain, you will have to add the config files.

      I hope this answers your query. If you still face any issue, please do let us know at [email protected]

      Thanks

  • Kshitiz Mishra
    Is there any way that user has the option to select their subdomain at the time of registration? as soon as they sign up. and i dont need to point the subdomain on my own
    • gunjita joshi (Moderator)
      Hello Kshitiz,

      Thanks for the query.

      The seller is not allowed to select their subdomains at the time of registration due to security reasons.

      Also, if the seller is approved, he may ask the admin for the samevia Ask to Admin.

      You would better understand and explore this scenario once you purchase the module. For security reasons, this feature cannot be provided to the sellers.

      For further queries, please contact us [email protected] so that we can assist you on your queries.

  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content