Screen: ShopSite > Merchandising > Custom Templates
A product template defines the elements and layout of a product listing that appears on store pages. Like a page template, a product template contains standard HTML tags to specify the layout, and ShopSite custom template tags to specify the product information from the ShopSite database that is to appear in the product listing. Here is a one-line example that would display the product name as an h1 HTML element:
<h1>[-- PRODUCT.Name --]</h1>
When ShopSite publishes a page that uses custom templates, it reads the product information from the product database and formats it according to the product template. ShopSite then creates the rest of the page, which probably includes more products, each of which is formatted according to the product template that is uses.
You can use the same product template for all products in your store, or choose different templates for different products. You can even specify different product templates from within page templates, so that a product uses one template on one page and another template on a different page.
See the Custom Template Tutorial for more detailed information about creating ShopSite Custom Templates.
A product template tells ShopSite which product fields you want displayed in the store (using custom template tags), and how you want those fields arranged (using HTML tags). Keep in mind that product are displayed on pages, so the HTML in your product template needs to work with the HTML in your page template.
If you do not have experience with ShopSite, you should spend time configuring and viewing the ShopSite demo stores, from both the merchant and customer perspectives. You need to have a fairly solid understanding of what information is stored for pages and products, and how the built-in templates present that information.
See the Custom Template Tutorial for more detailed information about creating ShopSite Custom Templates.
Look over the custom template specification to see the tags that are available. It will be one of your primary references while creating templates, or you can use the short version once you have the hang of it.
Study these example product templates and resulting HTML pages. Each example shows a different aspect of product templates. You can even copy any parts of these examples and paste them into your own template.
Use an HTML authoring program or a text editor to create a product template.
Once you have your template complete (or at least ready for testing), you need to upload it into your store.
You can also use FTP to upload the template to the correct directory. Keep these points in mind:
You probably don’t want to test your template on real pages in a live store. Create test products that will test all of the layout and custom template tags that you put in your template, then place them on a test page..
<!-- VAR ASPARAGUS IS NOT DEFINED -->
Make any necessary changes and test the template again, then tell the merchant that it is available. The merchant should be able to select the template from the Add a Product screen (advanced editing version) or the Edit Product Layout screen.
ShopSite Help and Resource Center Last updated: September 01, 2013 Give Feedback |
ShopSite Shopping Cart Software |