| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Access to smarty variable $current_category | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Access to smarty variable $current_category
Hello ...
Within version 4.1.x I was able to access the $current_category smarty variable when I was viewing the products detail page (product.php) I can no longer do this with 4.4.x. Can anyone help on which .php files I have to make changes to in order for me to access to this smarty variable? Many Thanks & Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Access to smarty variable $current_category
Try
$current_category = func_get_category_data($cat); $smarty->assign("current_category, $current_category); in product.php You may need to load "categories" and define $cat if not available ($cat will be the product category)
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||||
|
|||||||||
Re: Access to smarty variable $current_category
Thanks Steve ... That worked great
Regards Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
|
|||
X-Cart forums © 2001-2020
|