Multiple Categories

2 views
Skip to first unread message

hcabbos

unread,
Feb 1, 2009, 11:50:25 PM2/1/09
to phpShop
Can a product be assigned to multiple product categories?

Jeff Newman

unread,
Feb 2, 2009, 8:35:11 AM2/2/09
to php...@googlegroups.com
not in the standard release. you could do it if you were to add a second
category field to the product and product_category_xref tables. you'd then
have to add extra logic to the pages that check for such occurances.

another way to do it would be to concatenate categories into that one field
(such as "|14|56|883|" instead of just 14). then just modify the logic to
parse that field instead of assuming just one value. a little trickier.

6 of one method, half dozen of the other, although the second method would
allow any number of categories to be assigned, assuming the field didn't
fill up with too many characters (which could be modified simply enough).
--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date: 2/1/2009
6:02 PM

Reply all
Reply to author
Forward
0 new messages