![]() |
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). |
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. |
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:
|
Re: How to add extra field values to the product list page
|
All times are GMT -8. The time now is 11:34 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.