X-Cart 4.7.4 extra fields info in products list pages
Posted by Steve Stoyanov, Last modified by Steve Stoyanov on 29 March 2016 09:18 PM

With the new X-Cart Classic version - 4.7.4 - the extra fields information by default is not included with products on products list pages. To have this information included there do the following:

Open config.php file (or config.local.php if exists) and at the end of the file just before the closing php tag (?>) add the following piece of code

$obtain_extra_fields = true;

This will add the extra fields information to products array and you will be able to use it on products list pages to show the necessary values. This should work on all X-Cart Classic version 4.7.4 and newer.

(2 vote(s))
Not helpful

Comments (2)
Martin Bishop
20 January 2017 06:39 AM
Hi Steve

I've been struggling with this. I added the line you suggested to the Extra fields module config php file just before the closing tag but I assume there needs to be a line in the products_list_t.tpl to display it. I had this working on 4.4 but can't seem to get my extra fields to display on 4.7.5 with the same foreach code I used then. Assuming that I've put the code in the right config file can you let me know what I should use in the template file to display the extra fields?

Steve Stoyanov
29 January 2017 02:44 AM
The code in the template file is present so there is no need to add anything. If extra fields information is not showing for you and you have custom skin the code is probably missing from the template file.
You can open a ticket and we'll sort it out.
Post a new comment
Full Name:
CAPTCHA Verification 
Please complete the below captcha challenge (we use this to prevent automated submissions).