update_cart
update_cart - updates user shopping cart
$add_to_cart = array(
'content_id' => $product['id'],
'price' => 35
);
$cart_add = update_cart($add_to_cart);
Parameters and fields
| parameter | optional values |
|---|---|
| content_id | The id of the content which you want add to the cart |
| price | Price you want to add (if the product haves custom fields, the price must match the value of the custom field) |