| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Calling an additional field as part of the category array | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Calling an additional field as part of the category array
Here's one I can't seem to work out - I created an additional field for categories, sort of like a second category title. I need to use this as a sub-title for the side menu categories. I can successfully get it to display on the category page using {$current_category.subtitle}, but I can't seem to get it to show under the side menu links. Here's the code:
Code:
Do I somehow need to specify this additional field in categories.php or am I just missing something obvious from staring at this for hours?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Calling an additional field as part of the category array
Hi balinor,
yes you need to specify it in include/categories.php In function ->func_get_categories_list in the below mentioned line. if ($short_list) { $to_search = "$sql_tbl[categories].subtitle,$sql_tbl[categories].categoryid, Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#3
|
|||||||
|
|||||||
Re: Calling an additional field as part of the category array
Woo hoo! Thanks for the tip!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Calling an additional field as part of the category array
Its my pleasure to help such a great person like you(POST:25,180).
Have a nice day. Season greeting. Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
|
|||
X-Cart forums © 2001-2020
|