Store Block Tags

 

Store Block Tags are versatile tools for building an online store quickly and easily. Store blocks display online storefront components - Navigation Bar, Product Info, Shopping Cart, etc, which are all integral parts of an online store. The difference between block tags and info tags is that a store block tag calls a template (an html page) where any number of tags can be used, including other block tags as well as info tags.
 

Store Block Tag

Store Block Tag Description

Directory of Templates Used to Render the Tag

<?php Breadcrumb(); ?>

The customer's current location in the category tree.

catalog/breadcrumb/default/

<?php Checkout(); ?>

The tag outputs a checkout page.

checkout/

<?php CheckoutStepLink(1); ?>

The tag outputs a URL which links to the site page that is specified in section [Checkout] in the file storefront-layout.ini. Clicking this link starts the checkout process.

checkout/

<?php NavigationBar(); ?>

The tree of categories. This block is the main navigational component of an online store.

catalog/navigation-bar/default/

<?php NavigationBarCustom(); ?>

The tree of the selected category. This tag is similar to the NavigationBar tag, the only difference being that you can send additional parameters to this tag to generate the tree for the selected category.

The parameters of the tag are:
 
Parameter: Catalog ID number.
Value: The Catalog ID number.

Parameter: Visibility of the parent category label.
Values: True or False

Parameter: Category path selection.
Values: SELECT_CATEGORY_ONLY or SELECT_FULL_PATH
 
Parameter: Expand tree nodes.
Values: EXPAND_TREE_NODES or NOT_EXPAND

Example: <?php NavigationBarCustom( 4, true, "SELECT_CATEGORY_ONLY", "EXPAND_TREE_NODES"); ?>
Description: This tag will generate the navigation bar for the category ID 4, the text label of this category will be visible, the category path will be not highlighted, and the categories tree will be expanded.

catalog/navigation-bar-custom/default/

<?php PaginatorDropdown(); ?>

The drop-down list in which the user can select the number of products displayed per page. This block is not a stand-alone tag and can only be called from the template-container of a ProductList block.

catalog/paginator/dropdown/default/

<?php PaginatorLine(); ?>

The line containing the page numbers for situations when more than one page is required for displaying the list of products. This block is not a stand-alone tag and can only be called from the template-container of a ProductList block.

catalog/paginator/line/default/

<?php CurrencySelector(); ?>

The drop-down list of active currencies. When users select a currency from the list, all storefront prices are displayed in the selected currency.

catalog/currency-selector/default/

<?php SubscribeBox(); ?>

Subscribe form that allows customers to subscribe to newsletters.

subscriptions/

<?php PromoCodeForm(); ?>

The form for entering promo codes to get a discount.

catalog/promo-code-form/default/

<?php SearchForm(); ?>

The form for entering keywords to search for products in the catalog.

catalog/search/search-form/default/

<?php ShoppingCart(); ?>

The content of the shopping cart (items currently added to the cart).

catalog/shopping-cart/default/

<?php DownloadProductFilePrompt(); ?>

The message seen by customers which purchased a digital product and clicked the download link in their confirmation e-mail message, along with the download link.

catalog/download-prompt/default/

<?php FullTaxExemptForm(); ?>

The small form that allows customers enter their tax exemption number so that their orders won't include taxes.

catalog/full-tax-exempt-form/default/


  © 2004-2011 Pentasoft Corp. Corp. All Rights Reserved.