Jump to content

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

Adding Vendor in Products Grid Rate Topic   - - - - -

  • xkenshin
  • Newbie
  • Members
  • Join Date: 24-Apr 13
  • 13 posts

Posted 16 May 2013 - 06:45 AM #1

I'm trying to get the vendor name display on each of the products in grid.

I was in grid_list.tpl (line 31)

{assign var="obj_id" value=$product.product_id}
{assign var="company_id" value=$product.company_id}

I could get and display the company_id.

I have tried using the same code as the product id getting the description

<!-- Vendor Setup -->
{assign var="company_id_prefix" value="`$company_prefix``$company.company_id`"}
{include file="common_templates/company_data.tpl" company=$company}

{assign var="obj_id_prefix" value="`$obj_prefix``$product.product_id`"}
{include file="common_templates/product_data.tpl" product=$product}

And i used the same code to display it like product name

{assign var="name" value="name_$company_id"}{$smarty.capture.$name}
{assign var="name" value="name_$obj_id"}{$smarty.capture.$name}

Please somebody guide me how to do this. Thanks in advance.

Attached Thumbnails

  • MEN-Bgas.png


CS-Cart: V 3.0.6[/size]
Posted Image
full service interactive
digital media agency