Template Includes for 2.71 & 2.84(OLDER MM SOFTWARE )

INCLUDE TYPES AND USES:

Includes in the following format are used when making edits to your template via the template editor in storeadmin

%INCLUDE%

Includes with the following format are the includes to use in your template :

<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/include.php");</script>

The bolded ones are required in templates so you have the ability to take advantage of ALL features offered in the MM system

The codes you can use are as follows:

%TITLE_TAG%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/metatitle.php");</script>

Displays the category or product if selected, for use with search engines. Should be placed inside the <title></title> tag.

%META_TAGS%  

<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/meta.php");</script>
Shows the dynamic meta descriptions and keywords of the page. Should be placed inside the <header></header> tag.

%STYLE_SHEET%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/style.php");</script>
Sets the fonts and colors for the catalog. Should be placed inside the <head></head> tag. Use the existing style sheet as a guide when creating classes. Changes to he Fonts & Colors area in storeadmin WILL NOT work without this.



one of the following ( or both ) for a link to your cart.

%VIEW_CART%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/viewcart.php");</script>
Displays a "View Cart" link only.

%VIEW_CONTENT%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/viewcontents.php");</script>
Displays a "View Cart" link, along with the quantity and total ordered.





%SITE_MESSAGE%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/sitemessage.php");</script>
Displays whatever you have entered in the "Site Message" field (in the variables area of the administration section). The text appears on every page, and is often used to easily update sale messages or note specials site-wide.

%PAGE_TITLE%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/title.php");</script>
Shows the title of the page (ie. "Home Page", "Catalog", "Links", etc.) or the header image.

%CATEGORY_NAVIGATION%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_list.php");</script>
On the catalog page, this displays catalog categories in the format Catalog &gt; Category &gt; SubCategory, with no images

%CATEGORY_DESCRIPTION%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/description.php");</script>
Shows the description of the category for the catalog, if one exists. For pages other than the catalog page, nothing appears.

%CONTENT%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/content.php");</script>
Shows the main content of the site - the content added to the "Pages" area and the product display for the catalog.

%COPYRIGHT%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/copyright.php");</script>
Shows a copyright notice with your site name and the current year.

%EMAIL_FRIEND%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/email.php");</script>
Shows an "Email a friend" link on all pages, which allows your visitors to send the page to others.


And at least one of the following forms of navigation:

#1

%CATEGORY_HORIZONTAL%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_horizontal.php");</script>
Shows a list of all categories horizontally in the catalog, using the format specified in the "Settings" in this administration area. Note: the horizontal category list is already included in the %NAVIGATION_HORIZONTAL% include. Must be used with pagelist_horizontal ( %PAGES_HORIZONTAL%) include

%PAGES_HORIZONTAL%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_horizontal.php");</script>
Creates an automated horizontal list of all active pages in the system.

For page grouping, use
%PAGES_HORIZONTAL_X%
<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_horizontal.php");$pggrp = "";</script>
where X is the group number (1-5) to display.


#2

%CATEGORY_TABLE%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_table.php");</script>
Creates an automated vertical "button" list of all active categories in the system, in a table format. Category images are not shown. Must be used with pagelist_table ( include %PAGES_TABLE%)

%PAGES_TABLE%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_table.php");</script>
Creates an automated vertical "button" list of all active pages in the system, in a table format. Page images are not shown.

For page grouping, use
%PAGES_TABLE_X%
<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_table.php");$pggrp = "";</script>
where X is the group number (1-5) to display.


#3

%CATEGORY_VERTICAL%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_vertical.php");</script>
Shows a list of all categories vertically in the catalog, using the format specified in the "Settings" in this administration area. Must be used with pagelist_vertical ( include %PAGES_VERTICAL%)

%PAGES_VERTICAL%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_vertical.php");</script>
Creates an automated vertical list of all active pages in the system.

For page grouping, use
%PAGES_VERTICAL_X%
<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_vertical.php");$pggrp = "";</script>
where X is the group number (1-5) to display.


#4

%CATEGORY_TABS%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_tabs.php");</script>
Creates an automated horizontal list of tabs showing all active categories in the system. Category images are not shown. Must be used with pagelist_tabs ( include %PAGES_TABS%)

%PAGES_TABS%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_tabs.php");</script>
Creates an automated horizontal list of tabs showing all active pages in the system.

For page ordering, use
%PAGES_TABS_X%
<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_tabs.php");$pggrp = "";</script>
where X is the group number (1-5) to display.



#5

%CATEGORY_BAR%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_bar.php");</script>
Displays the categories in a colored, "light-up" bar horizontally displayed on the page. Category images are not shown. Must be used with pagelist_bar ( include %PAGES_BAR%)

%PAGES_BAR%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_bar.php");</script>
Displays the active pages in the system in a colored, "light-up bar" horizontally displayed on the page. Page images are not shown.

For page ordering, use
%NAVIGATION_HORIZONTAL_X%
<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagelist_bar.php");$pggrp = "";</script>
where X is the group number (1-5) to display.


These will show all active pages AND a link to the catalog page

%NAVIGATION_VERTICAL%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagenav_vertical.php");</script>
Shows an automated vertical list of all active pages in the system. Under the "Catalog" page, a vertical list of active categories are shown, using the format specified in the "Settings" in this administration area.

For page ordering, use
%NAVIGATION_VERTICAL_X%
<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagenav_vertical.php");$pggrp = "";</script>
where X is the group number (1-5) to display.

%NAVIGATION_HORIZONTAL%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagenav_horizontal.php");</script>
Shows an automated horizontal list of all active pages in the system. After the "Catalog" page, a horizontal list of active categories are shown.

For page ordering, use

%NAVIGATION_HORIZONTAL_X%
<script language="php">$pggrp = X;include(SB_HOME_PATH ."/" .SB_INC_DIR ."/pagenav_horizontal.php");$pggrp = "";</script>
where X is the group number (1-5) to display.



Extras - optional

%COUPONS%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/coupon.php");</script>
Displays a text box that customers can use to enter a coupon code into the system to obtain a discount. For use only with the coupon system.

%CATEGORY_DROPDOWN%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/categories.php");</script>
Shows a drop-down select box with all the category names listed within, to be used to search by category.

%ITEMNUM_DROPDOWN%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/catnum.php");</script>
Shows a drop down select box with all the item numbers listed within, to be used to search by item number.

%LOGO%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/logo.php");</script>
Displays the uploaded logo, if one exists, on your page.

%PRICE_DROPDOWN%

<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/price.php");</script>
Shows a drop-down select box with your price ranges listed within, to be used to search by price.

%SEARCH_CATALOG%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/search_catalog.php");</script>
Displays a keyword search box which customers can use to search for products in your catalog by keyword.

%SITE_NAME%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/sitename.php");</script>
Displays the name of your web site in a header tag on your page.

%SITE_LOGO%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/sitelogo.php");</script>
Displays the uploaded logo, if one exists. If a logo does not exist, displays the site name.

%SEARCH_SITE%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/search_site.php");</script>
Displays a keyword search box which customers can use to locate pages on your site (including FAQs or articles), categories, or products by keyword.

%FEATURED_COLUMN%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/featured.php");</script>
Shows a vertical column of featured items with images (usually added to a side bar).


New in 2.81:

%CATEGORY_LIST%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_lists.php");</script>
On the catalog page, this displays catalog categories vertically, using nested unordered list tags (</li>). The categories use the format specified in the administration area's vertical navigation bar in the catalog settings.

For displaying only certain categories ( subcategories), use
%CATEGORY_LIST_X%
<script language="php">$parentcat=X; include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_lists.php");</script>
where X is the initial ( parent ) category id.

To use a button image for category links
%CATEGORY_BUTTONS%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_buttons.php");</script>
Shows a list of all categories vertically in the catalog, using the format specified in the "Settings" in this administration area. If a navigation image is present, the text will be displayed over the image. Button image must be uploaded into the "Nav Image" field on the category edit screen.

To use a bullet image on category links
%CATEGORY_BULLETS%
<script language="php">include(SB_HOME_PATH ."/" .SB_INC_DIR ."/navbar_bullets.php");</script>
Shows a list of all categories vertically in the catalog, using the format specified in the "Settings" in this administration area. If a navigation image is present, the text will be displayed to the right of the image. Bullet must would be uploaded into the "Nav Image" field on the category edit screen.
  • Email, SSL
  • 69 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Related Articles

MM Custom (DIY) Templates - 2.93+ Responsive

We've updated our DIY templates for the new 2.93+ responsive system and they're now available for...

Custom Template Design 2.84 - 2.93 - with Visual Guide

As with previous versions, an htm and php file should be loaded to the public_html/template...

Fonts & Colors

1 Font Style = This font applies to all elements on your pages 2 Font Size = The main font...

Image Display Option ( 2.93)

Version 2.93 allows you to choose different image styles/functions for each layout. Change the...

Page Groupings

You can "group" different pages together to appear in different areas of the site. For...