Page Templates
Previous  Top  Next

How HTML Page Templates Work
 
The AShop templates are simply HTML pages with the AShop start and stop tags inserted where the AShop content is to appear or where to start and stop using content that is in the template. They are similar to include (.inc) files. They can include HTML, images, links, CSS, and JavaScript just like any other web page. If you are using a WYSIWYG HTML editor such as Dreamweaver, you can add the AShop script folders to your website and create the AShop templates just as you would any other page within your website. You can even use the "Create New Page From Template" feature and update the AShop template pages along with other pages that are attached to the Dreamweaver Templates.  
 
AShop page templates are simply HTML web pages with comments  
<!-- AShopstart --> <!-- AShopend -->  
inserted into the HTML code. For the page templates, AShop's dynamically generated content appears between the two tags. For the first.html file, it works the opposite; The HTML content that is between the tags is used to render content within the product listing area when the catalogue is first opened.  
 
Note: If a template is not present, AShop will generate a catalogue page anyway and the default logo.gif image, which can be uploaded through the Layout menu, will appear at the top of the page above the dynamically generated content. When a page template is present, it's body tags, such as background, text, and link colors override default page settings made in Layout. Colors, fonts, and borders within the dynamically generated content are still controlled through the administration panel, regardless of whether a template is present unless there is a style sheet that overrides it. If the first.html file is not present, the top category of products appears first.  
 
There are five templates used for the retail shopping cart and affiliate pages. If the wholesale shopping cart is activated, it has an additional 4 templates. The page templates can have the same or different content, depending on your needs.  
Example templates are included in the distribution package for new installations. The template examples are not included in distribution of updates.  
 
Retail Shopping Cart & Affiliate Page Templates

 
The following templates are located in the root directory of AShop.
The
<!-- AShopstart --> <!-- AShopend --> tags indicate where the shopping cart content is rendered on the page.

catalogue.html – used only in the catalogue pages  
 
cart.html – used only by the basket and checkout pages  
 
delivery.html – used only in the product delivery pages  
 
thankyou.html – used only in the payment confirmation pages  
 
Note: As of version 3.6.6, the template used for payment confirmation pages within AShop is thankyou.html. Versions prior to 3.6.6 use delivery.html for the payment confirmation. Many payment gateways will host your payment confirmation page through their SSL connection. When they do this, they take a snap shot of your page and nest it within their page at their URL. Because of this, hyperlinks within thankyou.html or delivery.html template must use absolute URL's for links to work and for images to appear. In addition, image links should be https so that browser secure/non-secure content messages won't appear when redirecting to the thankyou page.  
 
There is one template in the affiliate subdirectory.  
affiliate/template.html – This template is only used with the affiliate signup, login, and support pages.  
 
Wholesale Shopping Cart & Signup Page Templates

 
These templates are located within the wholesale directory and are only used by the wholesale pages.  
 
wholesale/catalogue.html - used only in the wholesale catalogue pages.  
 
wholesale/cart.html - used only in the wholesale basket and checkout pages.  
 
wholesale/signup.html - used only for the pages where wholesale customers signup for an account.  
 
wholesale/delivery.html - used only in the wholesale order confirmation and product delivery pages.