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

parameteroptional values
content_idThe id of the content which you want add to the cart
pricePrice you want to add (if the product haves custom fields, the price must match the value of the custom field)
The documentation is under development. Help us by editing this page.