Jump to content

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

Category Link On Product Page Rate Topic   - - - - -

 
  • webus
  • Member
  • Members
  • Join Date: 13-Jul 13
  • 44 posts

Posted 01 March 2018 - 11:33 AM #1

Hello. I want to show category link on product page. For example, i want to put a link like all category name under add to cart. How can we write category url in tpl?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17827 posts

Posted 01 March 2018 - 01:02 PM #2

Please try

<a href="{"categories.view?category_id=`$product.main_category`"|fn_url}">{__('all')|captitalize} {$product.main_category|fn_get_category_name}</a>

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • webus
  • Member
  • Members
  • Join Date: 13-Jul 13
  • 44 posts

Posted 01 March 2018 - 01:51 PM #3

It worked. Thanks

 

 

Please try

<a href="{"categories.view?category_id=`$product.main_category`"|fn_url}">{__('all')|captitalize} {$product.main_category|fn_get_category_name}</a>