Hi
Is there some clever way to push a unique list of custom product variables to an array?
For example
I have 5000 products and they all have a colour variable. For arguments sake we will say the colours are red, blue and yellow.
Edit: also the array of colours need to specific to that section of products.. So if section one only has red and blue, the array will only have two values, where as other sections might have all 3 colours.
I want to push those values into am array so I can loop through and do some stuff with.
I know I could probably do it by querying the DB with ODBC, but I thought it might be able to be done a bit more elegant.
To succeed with ODBC. I would need a list of product ID'S for that section, is there any way of getting the sections ID's into a php Array to loop through?
Is there some clever way to push a unique list of custom product variables to an array?
For example
I have 5000 products and they all have a colour variable. For arguments sake we will say the colours are red, blue and yellow.
Edit: also the array of colours need to specific to that section of products.. So if section one only has red and blue, the array will only have two values, where as other sections might have all 3 colours.
I want to push those values into am array so I can loop through and do some stuff with.
I know I could probably do it by querying the DB with ODBC, but I thought it might be able to be done a bit more elegant.
To succeed with ODBC. I would need a list of product ID'S for that section, is there any way of getting the sections ID's into a php Array to loop through?
Comment