Jump to content

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

Smart Code for product category in product detail page Rate Topic   - - - - -

 
  • tyidnet
  • Member
  • Members
  • Join Date: 15-Nov 12
  • 22 posts

Posted 27 November 2012 - 07:55 PM #1

Is there is way to get product category name in product detail page by using Smarty Code? For example, {$product.product_id} will display the ID of product in that particular product page. Wonder if I can display product category name using similar coding?

Thanks!

Tony

 
  • tyidnet
  • Member
  • Members
  • Join Date: 15-Nov 12
  • 22 posts

Posted 06 December 2012 - 07:14 PM #2

Here is the tips from tech support:

{$product.main_category|fn_get_category_name}.

 
  • alaa
  • Senior Member
  • Members
  • Join Date: 18-Mar 18
  • 167 posts

Posted 25 April 2019 - 04:41 PM #3

Here is the tips from tech support:

{$product.main_category|fn_get_category_name}.

 

Thank you for sharing the tip. It works perfectly.