ShoppingCart::add
Add an item to the shopping cart. To make this process as generic as possible, we require that an object is submitted. This object can have any params, but by default we usually use:
"Title": The Title to appear in the cart "Content": A description of the item "Price": Our item's base price "Image": Image to display in cart "Customisations": array of customisations "ID": Unique identifier for this object
Signature
public function add(
$data,
[integer
$quantity = 1] )
Parameters
$data
—$quantity
— integer- of these objects to add