yup, that's what I ended up doing 🙂
Here is another puzzler. Each option in the select box has a different price right? 2.7oz toothpaste is $2.99 and 5.4oz is $4.99 or whatever. This data is stored in the database, there is a list of prices comma dilimeted and a list of sizes. I use
itemlist explode(",",$SizeOptionSizes);
to draw out the different sizes and then a foreach to populate the select box. But how should I go about assigning the correct price to the right item size? Can I do it here on the form or should I check it on the addtocart.php page? The problem I run into is that it is all dynamic and pulled from the database and there are hundreds of different sizes and prices (usually 3 for each item but not always the same 3 of course) so I cannot just say
if (itemlist == 2.3oz {
$price = $2.99
else
error("choose a size")
;
}
because it is not always $2.99 etc.
any ideas?