Glossary Item Box

Squirrelcart v6.1.0

Storefront - Home Page Template

Overview

The page seen when a visitor first enters your store is considered your store's home page. The template controlling the content area of that page is store_home.tpl.php:

storefront home page

In older versions of Squirrelcart (version 2.x and older), that content was controlled by a file named home.php. As of version 3.0.0, that content is controlled by the store_home.tpl.php template file.

The storefront home page will display any Content that you have configured your theme to display. For more information on this, see the Themes > Content section of this documentation.

Advanced - Standalone Store Home Page

By default the store_home.tpl.php template file controls the area outlined in red in the image above. The rest of the page is controlled by the store_main.tpl.php template file. If you want the layout of your store's home page to differ from the rest of your storefront pages, you can cause the store_home.tpl.php template file to act on it's own and not appear as part of your storefront page. In order to do so, just add opening and closing <html /> and <body/> tags to store_home.tpl.php. If they are detected, your store's home page will only consist of the HTML generated by store_home.tpl.php. This can be used to generate an entrance splash page that doesn't conform to the layout of the rest of your storefront.

 

 


© 2001-2017 Lighthouse Development. All Rights Reserved.