Modular Merchant
QuickCode™ Glossary
{SUBCATEGORY-BLOCK-BEGIN}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:


{CATEGORIES-BULLETED-LIST}

{CATEGORY-ACTIVE}

{CATEGORY-ATTRIBUTE-DESCRIPTION}

{CATEGORY-ATTRIBUTE-TITLE}

{CATEGORY-ATTRIBUTE-VALUE}

{CATEGORY-BLOCK-BEGIN}

{CATEGORY-BLOCK-END}

{CATEGORY-BREADCRUMB-LINKS}

{CATEGORY-DESCRIPTION}

{CATEGORY-DISPLAY-ORDER}

{CATEGORY-HOMEPAGE}

{CATEGORY-IMAGE-TAG}

{CATEGORY-IMAGE-URL}

{CATEGORY-NAME}

{CATEGORY-NUMBER-OF-PRODUCTS}

{CATEGORY-NUMBER-OF-SUBCATEGORIES}

{CATEGORY-PARENT-CATEGORY-NAME}

{CATEGORY-PARENT-CATEGORY-SID}

{CATEGORY-RESULTS-BLOCK-BEGIN}

{CATEGORY-RESULTS-BLOCK-END}

{CATEGORY-SID}

{CATEGORY-TEMPLATE}

{CATEGORY-URL}

{IF-CATEGORY-ATTRIBUTE-BEGIN}

{IF-CATEGORY-ATTRIBUTE-END}

{IF-CATEGORY-IMAGE-BEGIN}

{IF-CATEGORY-IMAGE-END}

{IF-CATEGORY-IS-ROOT-BEGIN}

{IF-CATEGORY-IS-ROOT-END}

{PAGINATION}

{SHIPPING-OPTION-NAME}

{SUBCATEGORY-BEGIN}

{SUBCATEGORY-BLOCK-BEGIN}

{SUBCATEGORY-BLOCK-END}

{SUBCATEGORY-END}

Categories > {SUBCATEGORY-BLOCK-BEGIN}
<< {SUBCATEGORY-BEGIN} {SUBCATEGORY-BLOCK-END} >>
{SUBCATEGORY-BLOCK-BEGIN} Updated: 02/14/2013

The {SUBCATEGORY-BLOCK-BEGIN} QuickCode Tag, when used in conjunction with the {SUBCATEGORY-BLOCK-END} QuickCode Tag, will repeat the content between {SUBCATEGORY-BLOCK-BEGIN} and {SUBCATEGORY-BLOCK-END} once for each active subcategory of the current product category.

The content within the subcategory block may include static items that are repeated identically for each subcategory, as well as compatible category and subcategory QuickCode Tags to display individualized content for each subcategory. 

Requirements / Prerequisites

 The {SUBCATEGORY-BLOCK-BEGIN} QuickCode Tag must be used in conjunction with the {SUBCATEGORY-BLOCK-END} QuickCode Tag.

The {SUBCATEGORY-BLOCK-BEGIN} and {SUBCATEGORY-BLOCK-END} QuickCode Block Tags may only be used within category templates such as the default category.template.php. When a specific category page is rendered in the storefront, content between the {SUBCATEGORY-BLOCK-BEGIN} and {SUBCATEGORY-BLOCK-END} QuickCode Block Tags will be displayed once for each subcategory associated with the specific category.

Example of Use

If the following code is added to category.template.php:

{CATEGORY-NAME}
{SUBCATEGORY-BLOCK-BEGIN}
*start block*
This text is static content that will be displayed the same for every subcategory.
Individualized content for each subcategory may be generated by compatible QuickCode Tags: {CATEGORY-NAME}
*end block*
{SUBCATEGORY-BLOCK-END}


When the stofront category page for Example Category is displayed in the storefront, if Example Category has the subcategories One, Two, and Three, the following will be displayed:

Example Category
*start block*
This text is static content that will be displayed the same for every subcategory.
Individualized content for each subcategory may be generated by compatible QuickCode Tags: One
*end block*
*start block*
This text is static content that will be displayed the same for every subcategory.
Individualized content for each subcategory may be generated by compatible QuickCode Tags: Two
*end block*
*start block*
This text is static content that will be displayed the same for every subcategory.
Individualized content for each subcategory may be generated by compatible QuickCode Tags: Three
*end block*
 

Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {SUBCATEGORY-BLOCK-BEGIN} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2024 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map