Hey, I'm adding a product which has some options to my cart using uc_cart_add_item like so...
$data = array('nid' => $productId, 'qty' => '1', 'attributes' => array (1 =>$materialOption, 2 => $packagingOption), 'shippable' => '1');
It works as expected the product is placed in the cart and you can see that the correct options have been added. However one option is supposed to adjust the SKU and it is not working.
If I add the product with the same options through the html product page the SKU is correctly adjusted but if I use the method (uc_cart_add_item) it doesn't.
I'm not sure if this is a bug or if I need to send an additional attribute to make this work (I previously discovered I needed the "shippable" attribute to make the postage quotes work!)