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

Hello,
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}
{else}
{assign var="product_columns" value=$settings.Appearance.columns_in_products_list}
{/if}

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

{/if}

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


Thank you.