Answer the question
In order to leave comments, you need to log in
How to display a directory on a page in Webasyst?
How to display store categories on webasyst on the created page?
{$_categories = $wa->shop->categories(0, 0, true, true)}
Answer the question
In order to leave comments, you need to log in
Your line of code only assigns an $_categories
array of categories to a variable, but it doesn't show anything.
To show a list of categories, you need to write a loop using Smarty and HTML, like this:
{$_categories = $wa->shop->categories(0, 0, true, true)}
<ul>
{foreach $_categories as $_category}
<li><a href="{$_category.url}">{$_category.name|escape}</a></li>
{/foreach}
</ul>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question