| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to add extra field values to the product list page | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: How to add extra field values to the product list page
print_r should be available if you enable DEVELOPMENT_MODE in config.php. Or you should be able to use debug_print_var.
In subcategories.tpl $cat_products gets assigned to $products when calling products.tpl. Before your new code (or comment it out) in products.php, after includes/search.php (which gets the products and extra_fields), try adding something like this: PHP Code:
Dumb question: are you looking at a set of products that have assigned extra_field values in the admin? I don't believe that SO link applies. I believe Rob's solution was to get extra_fields that weren't known to already exist. This is a common oversight. One thing I noticed is that as of 4.7.4 there is a new variable ($obtain_extra_fields) in include/search.php but I don't see it referenced anywhere else and has not stopped me from getting extra_fields normally (though it appears it should). |
|||||||||
#12
|
|||||||||
|
|||||||||
Re: How to add extra field values to the product list page
There is no [extra_fields] section.
Code:
I double checked, there are extra fields, the module is turned on and the values are showing on the customer product page. |
|||||||||
#13
|
|||||||||
|
|||||||||
Re: How to add extra field values to the product list page
I did some testing and my hunch about the new $obtain_extra_fields variable is correct. Before the include/search.php line add the following:
PHP Code:
|
|||||||||
|
#14
|
|||||||||
|
|||||||||
Re: How to add extra field values to the product list page
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|