Jump to content

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

Vendor Location Under Product Rate Topic   - - - - -

 

Posted 05 January 2019 - 02:35 AM #1

Hi,

 

I was able to display the vendor name under each product by adding the code in design/themes/responsive/templates/ blocks/ list_templates/grid_list.tpl

<div class="cm-reload-{$obj_prefix}{$obj_id}" id="advanced_options_update_{$obj_prefix}{$obj_id}">
{include file="views/companies/components/product_company_data.tpl" company_name=$product.company_name company_id=$product.company_id}
</div> 

But I can't find the code to display the vendor location like: Paris, France.

I tried this code:

{$settings.Company.company_state|fn_get_state_name:$settings.Company.company_country}, {$settings.Company.company_country|fn_get_country_name}

but it displays the Marketplace address and not the vedor address.

 

It is possible to show me the right code for displaying vendor location please!

 

Thank you



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3303 posts

Posted 05 January 2019 - 06:06 AM #2

Hi,

 

I was able to display the vendor name under each product by adding the code in design/themes/responsive/templates/ blocks/ list_templates/grid_list.tpl

<div class="cm-reload-{$obj_prefix}{$obj_id}" id="advanced_options_update_{$obj_prefix}{$obj_id}">
{include file="views/companies/components/product_company_data.tpl" company_name=$product.company_name company_id=$product.company_id}
</div> 

But I can't find the code to display the vendor location like: Paris, France.

I tried this code:

{$settings.Company.company_state|fn_get_state_name:$settings.Company.company_country}, {$settings.Company.company_country|fn_get_country_name}

but it displays the Marketplace address and not the vedor address.

 

It is possible to show me the right code for displaying vendor location please!

 

Thank you

 

Hello!

 

Please try this

{$vendor_data = $product.company_id|fn_get_company_data}
{$vendor_data.city}, {$vendor_data.country|fn_get_country_name}

Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics


 

Posted 05 January 2019 - 10:07 PM #3

 

Hello!

 

Please try this

{$vendor_data = $product.company_id|fn_get_company_data}
{$vendor_data.city}, {$vendor_data.country|fn_get_country_name}

 

Thank you galtinbaeva, it works!



 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3303 posts

Posted 09 January 2019 - 05:50 AM #4

Thank you galtinbaeva, it works!

 

You are welcome :)


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics