Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

To Retrieve Category Id In Tpl File. Rate Topic   - - - - -

  • madhuri
  • Advanced Member
  • Members
  • Join Date: 27-Aug 14
  • 110 posts

Posted 04 February 2015 - 06:25 AM #1

The following tpl code retrieves all the products for a paticular vendor.
{if $search}
{if $products}
{assign var="title_extra" value="{__("products_found")}: `$search.total_items`"}
{assign var="layouts" value=""|fn_get_products_views:false:0}
{if $category_data.product_columns}
{assign var="product_columns" value=$category_data.product_columns}
{assign var="product_columns" value=$settings.Appearance.columns_in_products_list}

{if $layouts.$selected_layout.template}
{include file="`$layouts.$selected_layout.template`" columns=$product_columns show_qty=true}
{hook name="products:search_results_no_matching_found"}
<p class="no-items">{__("text_no_matching_products_found")}</p>


Now what if i want to use same tpl code for finding product category wise for that paticular vendor only.Please help.

Thank you.