How To: Configure Multiple Storefronts in Plesk 12

Note

Here is more information about storefronts in CS-Cart and Multi-Vendor. You only need one CS-Cart or Multi-Vendor installation to manage all your storefronts.

Way 1. Deploy CS-Cart or Multi-Vendor on Subdomains

Let’s set up a store with 3 storefronts:

  • computers.example.com
  • toys.example.com
  • books.example.com

Step 1. Install CS-Cart or Multi-Vendor

Let’s assume the Document Root of our hosting is /httpdocs.

Install CS-Cart or Multi-Vendor in any directory within the Document Root, for example /httpdocs/store/.

Step 2. Configure Subdomains

  1. Open the Websites & Domains tab in the Plesk 12 main menu:

    Open Plesk 12 and go to Websites & Domains.
  2. On this page click the Add New Subdomain button:

    Add new subdomain in Plesk 12.
  3. Fill in the necessary fields of the form to create the first subdomain:

    • Subdomain name: computers
    • Document Root: /httpdocs/store

    Note

    Specify the directory where you installed CS-Cart as the Document Root.

  4. Click OK.

  5. Create the other 2 subdomains in the same way. All 3 subdomains must appear at the Websites & Domains page:

    The Websites and Domains tab has the list of your existing subdomains.

Step 3. Create Storefronts

  1. Open the administration panel of CS-Cart or Multi-Vendor. In our case that will be http://example.com/store/admin.php.
  2. Create 3 new storefronts and assign them to their respective subdomains.
    • Go to the Administration → Stores page and click the + button.
    • Fill in the form. Enter one of the subdomains you created in step 2 in the Storefront URL field.
    • Click Create.
    • Create 2 more storefronts in the same way. Now all 3 storefronts should be listed on the Stores page.

Step 4. Testing

Go to any of the created subdomains, for instance, computers.example.com.

You should see the storefront, which has computers.example.com defined as its Storefront URL.

Way 2. Deploy CS-Cart or Multi-Vendor on Different Domains

Setting up your storefronts on different domain names is almost the same as for subdomains.

Let’s create 2 storefronts under 2 different domains:

  • example.com
  • example-store.com

Step 1. Install CS-Cart or Multi-Vendor

We assume that you already have a regisered domain name, like example.com.

You need to install CS-Cart or Multi-Vendor in the /httpdocs directory, which is the Document Root of example.com.

Step 2. Bind Domains

If you already have the additional registered domains, they should be bound to your existing account. In this guide we will bind the example-store.com domain to example.com.

  1. Change the Name Servers at the example-store.com domain name registrar.

    Go to the domain name registrar control page and replace the Name Servers with the ones currently associated with example.com.

    To find out which Name Servers are currently associated with example.com, do the following:

    • Go to the Websites & Domains page of the Plesk 12 control panel.

    • Choose the site you’re binding example-store.com to (in our case it is example.com) and click Show More.

    • Click the DNS Settings link:

      Click DNS Settings to view the DNS Settings page.
    • You will see the current domain DNS settings page. Name Servers value is stored in the record of the NS type.

      Look for NS record type and see its value to find the name server.
  2. In the Websites & Domains page of the Plesk 12 control panel click Add New Domain:

    Click Add New Domain on the Websites and Domains page.
  3. Enter the new domain name (in our case it’s example-store.com) in the Domain name field.

  4. Enter /httpdocs as Document Root.

  5. Click OK.

    So, the example-store.com domain name is bound and points to the files of the example.com domain.

    Your newly bound domain should now be on the domain list.

Step 3. Create Storefronts

Create 2 storefronts with Storefront URLs set to example.com and example-store.com as described in Way 1, Step 3 of this article.

Step 4. Testing

Go to your second domain (example-store.com). You should see the storefront, which has that domain as its Storefront URL.