Configuring Storefronts in CS-Cart via Plesk 10
We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.
- This article is available only for CS-Cart versions:
Deploy CS-Cart on subdomains
In the following example a store with 3 storefronts will be set up:
Step 1. Install store
Let the Document Root for our hosting be /httpdocs.
Install the store in any directory within the Document Root, for example /httpdocs/store/.
Step2. Configure subdomains for our domain
Open Plesk 10 main page and switch to the Websites and Domains tab in the main menu:
On this page click the Add New Subdomain button:
In the form fill in the necessary fields. Create the first subdomain:
- Subdomain name: computers
- Document Root: /httpdocs/store
Create the other 2 subdomains the same way. All 3 subdomains must appear in the table at the bottom of the page:
Step 3. Configure store
Go to the store administrator area. In our case that will be http://example.com/store/admin.php.
3 storefronts must be created and assigned to the respective subdomains.
Go to the Stores page:
Click the Add Store button:
Put one of the prior created subdomains in the Storefront URL field:
Create 2 more storefronts the same way. Now all 3 storefronts must be listed on the Stores page:
Assign skins for the storefronts using the Skin Selector in the Design menu:
Go to any of the created subdomains, for instance, computers.example.com.
If everything has been done properly, you should see the storefront, which hascomputers.example.com defined as its Storefront URL.
Deploy CS-Cart using domain names
Installing storefronts on different domain names is almost the same as for subdomains.
In the example 2 storefronts will be created under 2 different domains:
Step 1. Binding domains
If you already have registered domains, they should be bound to your existing account. For example let's bind the example-store.com domain to example.com.
At first you need to change 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.
In order to find out which Name Servers are currently associated with example.com do one of the following:
- Click DNS Settings on the Websites and Domains page:
If you manage several sites with Plesk 10, pick the one you're binding example-store.com to. In our case it is example.com.
- Click on the Change DNS Zone Settings icon of the example.com domain in the domain list:
In both cases you will see the current domain DNS settings page:
Name Servers value is stored in the record of the NS type.
The store will be installed on example.com, in the /httpdocs directory. That is, the store is installed in the example.com Document Root.
Click Add New Domain:
Enter the new domain name (in our case example-store.com) in the Domain name field.
Enter /httpdocs as Document Root.
So the example-store.com domain name is bound and points to the files of the example.com domain.
Step 2. Configure store
Create 2 storefronts with Storefront URLs example.com and example-store.com as described in the Deploy CS-Cart on subdomains section.
Go to example-store.com You should see the storefront, which has example-store.com as its Storefront URL.