This section describes how to place pre-selected hosting packages (domains, subscription periods, purchase steps) composed in the Parallels Business Automation - Standard PHP store into a ready website.
Using the parameters described below, it is possible to construct an URL or FORM data, that can be placed at a ready website. This URL redirects a customer to a particular step of PHP store.
The URL is to be composed as follows:
http://<PHP_Store_hostname>/hspc/index.php?action=preselect&<parameter=value><parameter=value><parameter=value>....
where <PHP_Store_hostname> is hostmane of server where PHP store is deployed, and the sequence <parameter=value> is a chain of parameters that set a hosting package.
Pre-selected parameters are divided into two classes:
List of parameters and their values:
action
domain scope set
hosting package scope set
Note: To know out a hosting plan series key, log in to the Provider Control Center, go to Billing Director > Product Manager > Hosting Plans. Select a hosting plan you want to link to your website, then select the General Settings tab within a hosting plan properties. See the Series Key field value.
Legend:
[] - optional parameter
<> - mandatory parameter
<<>> - mandatory parameter in scope
Example of URL
For example, your store hostname is mystore.com. Then, the URL that redirects a customer to a particular hosting package with pre-selected subscription period of one month looks as follows:
http://mystore.com/hspc/index.php?action=preselect&ps_series_key=5&ps_period=31104000
In our example, the hosting plan series key is 5.