Re: Extra field value in products list
hamid,
The problem is probably larger than this. On the product page the variable $extra_fields can be assumed to be specific to that product. On the list it has many products to loop through. The $extra_fields variable is of no use to you.
You will need to alter the MySQL query for the products list to also include the extra field values for each product. Then when looping through the products you can access the individual values for each product.
Unfortunately I do not have access to such an old version of XC. To get you started, first determine the name of the array that has the products assigned to it. Then search through the files to find where this variable is assigned. Then look at the query that pulls the info from the database. Add your changes for including the extra field values in the array.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey
XcartGuru
X-cart Tutorials | X-cart 5 Tutorials
Check out the responsive template for X-cart.
|