Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

product_category_list

Summary

Fetches the available product categories.

Usage

fetch( 'shop', 'product_category_list' )

Returns

An array of ezproductcategory objects or FALSE.

Description

This function fetches the available product categories and returns an array of ezproductcategory objects.

Examples

Example 1

{def $product_categories = fetch( 'shop', 'product_category_list' )}
{if count( $product_categories )}
    {foreach $product_categories as $Category}
          {$Category.name} <br />
    {/foreach}
{else}
    There are no product categories.
{/if}

Outputs the category names for all the available product categories.

Svitlana Shatokhina (10/05/2006 12:45 pm)

Svitlana Shatokhina (10/05/2006 1:37 pm)


Comments

There are no comments.