Hey folks,
I'm attempting to write some code that will add products to my cart. I can add a product with the function $_SESSION['cart']->add_cart() no problem. However I can't figure out what the correct syntax is for passing in parameters. I'm trying this:
$_SESSION['cart']->add_cart(GIFT_PRODUCT_ID, '1', array(12 => 'Kevin'));
...but the attribute is coming in as
TEXT
Any help appreciated,
Kevin
Bookmarks