Sorry for the delay in responding... been having a terrible time getting it to work. It's not working with the particular product ID I'm looking for, and I'm wondering if it has anything to do with it having attributes. When I do a var_dump, I get the below.
For some reason, the product_ID is being appended with what looks like a session token (186:da00eb308c52a23d5e6d9c1ce7270e44).
object(shoppingCart)#4 (10) { ["contents"]=> array(1) { ["186:da00eb308c52a23d5e6d9c1ce7270e44"]=> array(2) { ["qty"]=> float(1) ["attributes"]=> array(2) { [18]=> string(2) "70" [2]=> string(2) "19" } } } ["total"]=> float(39.99) ["weight"]=> float(4) ["cartID"]=> string(5) "11075" ["content_type"]=> string(8) "physical" ["free_shipping_item"]=> int(0) ["free_shipping_weight"]=> int(0) ["free_shipping_price"]=> int(0) ["customers_group"]=> NULL ["observers"]=> array(0) { } }
Thanks everyone for your help with this... you've been so kind!
Bookmarks