Almost there
Hi Jason,
Thank you for the code. I now understand, why the price and item no. weren't posted to the cart page. I used the same code for the item no..
In our situation, we have items without size and version option (for which the code worked just fine), but also items with size option and no version option, or the other way around.
I tried the code individually on each type of item, and it worked, but when I try to make it work for all items at the same time, then I have a PHP error (blank page). This is mainly, because I don't know how to put the code in sequence (I have no background knowledge of PHP).
What I am trying to tell the computer is: use rspricelookup, if there is no size info use rspriceNoSize, if there is no version info use rspriceNoVersion, if there is neither size nor version info use rsNoVersionNoSize.
The recordsets are tested and work.
This is what I tried as a first step, just to use rspriceNoVersionNoSize if rspriceNoSize does not return a price.
$ATC_itemPrice = floatval(($row_rspricelookup['price']!="")$row_rspricelookup['price']:$row_rspriceNoSize['price'])?$row_rspriceNoSize['price']:$row_rspriceNoVersionNoSize['price']);// column binding