Previous Topic

Next Topic

Locate topic in Contents

Advanced Customization of Default Store Installation

If you need to make the Store simple customization you can customize footer.inc, header.inc for provider, reseller in /var/opt/hspc-frontend/vendor/1/templates/, images in /var/opt/hspc-frontend/vendor/1/images/, stylesheet.css in /var/opt/hspc-frontend/vendor/1/ directories.

If you put other customized templates into the /var/opt/hspc-frontend/vendor/1/ directory, they won't be applied. In this case, your customization will take effect if you modify these files in their original location - /var/opt/hspc-frontend/templates/. But it is no good to modify store files in /var/opt/hspc-frontend/templates/, because this directory will be overwritten during upgrade installation.

How to Customize all Store Templates

It is recommended to copy the store directory content into any other directory on the same server and change the hspcd configuration file. Alternatively, you can install store on a remote server, but this is a separate issue.

For example, let us move store files into the /var/opt/store/ directory.

  1. Copy all the files from /var/opt/hspc-frontend/ into /var/opt/store/

    # cp -r /var/opt/hspc-frontend/* /var/opt/store/

  2. Modify /etc/hspcd/conf/hspc_frontend.conf as follows:

    # Alias /hspc/ /var/opt/hspc-frontend/vendor/1/

    Alias /hspc/ /var/opt/store/

  3. Restart httpd:

# service httpd restart

Now you can customize templates for your provider account in /var/opt/store/templates/. Your store is available at http://yourdomain/hspc/index.php. Resellers default shop content stays at /var/opt/hspc-frontend/vendor/<reseller_account_id>.

Please send us your feedback on this help page