Previous Topic

Next Topic

Locate topic in Contents

PHP Based Store Customization

Store and website is presented as a set of *.php files that define both the website pages and store steps logic and some other related files. The HTML templates (*.inc files) are provided for each store page. This makes website re-branding and customization much easier. Default store files can always stay untouched since customized files are put into a special directory inside the store folder. Customized files simply override the default ones. To get back to default configuration, you should move customized files from a special custom directory into some other location.

Thus, website and store customization is to be performed mostly beyond web interface.

The store simple settings are made via web interface in Commerce Director > Store Manager:

By default, store is installed together with Parallels Business Automation - Standard software and is ready for use right after the Parallels Business Automation - Standard initial configuration is finished.

However, store can also be be installed on a separate server. Provider can have several stores installed on different servers. Resellers can also be given a separate store installation.Store installation on a separate server requires redefining some constants in store configuration file.

By default, Resellers that use provider's store get a limited access to store customization via the Parallels Business Automation - Standard web interface and implemented as a simple File Manager.

Note on using store by resellers: By default, the full access to store configuration is available for Parallels Business Automation - Standard installation owner, i.e., for provider only. Resellers can use simple tools for store customization provided in web interface under the Store Manager (open/close store, upload some files like logo, header/footer, etc.). Files uploaded in such a way are placed into a special directory for custom files (see directory structure description below) and override the existing default settings for reseller store. However, provider can allow a reseller to have an own store installation, on a separate server, for example. This issue is up to provider policy and provider/reseller relations.

By default, store is installed into the

/var/opt/hspc-frontend

directory.

Store files directory structure is the following:

Directory

Contains files

/var/opt/hspc-frontend

*.php files for store pages and the stylesheet.css file.

images/

Images used in store and other site pages (site logo, buttons, icons, purchase steps numbers, etc.)

includes/

Configuration files. The most important configuration file is settings.ini file. This directory also contains the languages/ subdirectory that contains store localization.

templates/

*.inc files that contain HTML templates for website and store pages.

vendor/Account_ID/

Directory where customized files must be placed. Account ID is replaced with actual ID of store owner account (provider - always 1 - and reseller accounts 2 and greater). This directory is created automatically for provider account and all reseller accounts.

Note: The vendor/1/ directory is created for provider by default. Directories for resellers are created during reseller account creation. Custom files uploaded using the Store Manager > File Manager are placed into these directories.

Note 2: The customization.xml file located in the vendor/ directory defines what store files and directories can be customized using the web interface - the File Manager integrated into the Store Manager.

In This Section

Customizing Default Store Installation

Manual Store Installation on Remote Server

Integrating PHP Store With Existing Website

Customizing Store Localization

Please send us your feedback on this help page