Skip to content

Instantly share code, notes, and snippets.

@cscartjp
Last active August 29, 2015 14:19
Show Gist options
  • Save cscartjp/3f95c6843c81eb4205bb to your computer and use it in GitHub Desktop.
Save cscartjp/3f95c6843c81eb4205bb to your computer and use it in GitHub Desktop.
CS-Cart Advanced Add-on Tutorial
<div class="dashboard-row-bottom">
<div class="dashboard-viewed-category">
<h4>Viewed categories</h4>
<div class="dashboard-viewed-category-list">
{if $viewed_categories}
<ul>
{foreach from=$viewed_categories item="category_data"}
<li><strong><a href="{"profiles.update?user_id=`$category_data.user_id`"|fn_url}">{$category_data.user_name}</a></strong>:&nbsp;
{foreach from=$category_data.categories key="category_id" item="category_name"}
<a href="{"categories.update?category_id=`$category_id`"|fn_url}">{$category_name}</a>,
{/foreach}
</li>
{/foreach}
</ul>
{else}
<ul>
<li>No data found</li>
</ul>
{/if}
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment