Go to the source code of this file.
|
void | interchange_ord_order (const char *sku, const char *item, const unsigned int quantity, const char *options[][2], void(*parser)(interchange_response *)) |
| For putting an item to a cart.
|
|
void | interchange_ord_update (const char *name, const unsigned int quantity, const char *orderpage, const char *nextpage, void(*parser)(interchange_response *)) |
| For updating the quantity of an item in a cart.
|
|
void | interchange_ord_checkout (const char *order_profile, struct interchange_member member, void(*handler)(interchange_response *)) |
| For checking out items in the cart.
|
|
void | interchange_ord_free_order (struct interchange_ord_order *order) |
|
void | interchange_ord_clear_transaction (struct interchange_ord_transaction *transaction) |
|
◆ interchange_ord_remove
For removing an item from a cart.
- Parameters
-
name | The name given, in the cart, to the item. |
orderpage | The order page, by default it's ord/basket. |
nextpage | The page to expect response from, whatever the result is. |
parser | Function for parsing the formatted response. |
◆ interchange_ord_checkout()
For checking out items in the cart.
- Parameters
-
order_profile | The order profile/method. |
member | The member checking out. |
handler | A pointer to the function when a custom handler is needed to arrange the data into the product. |
◆ interchange_ord_clear_transaction()
◆ interchange_ord_free_order()
◆ interchange_ord_order()
For putting an item to a cart.
- Parameters
-
sku | The product or variant SKU of the item to order. |
item | The product SKU of the item to order. |
quantity | The quantity of the item to order. |
options | Any additional pairs of custom options. |
parser | Function for parsing the formatted response. |
◆ interchange_ord_update()
void interchange_ord_update |
( |
const char * |
name, |
|
|
const unsigned int |
quantity, |
|
|
const char * |
orderpage, |
|
|
const char * |
nextpage, |
|
|
void(*)(interchange_response *) |
parser |
|
) |
| |
For updating the quantity of an item in a cart.
- Parameters
-
name | The name given, in the cart, to the item. |
quantity | The desired quantity. |
orderpage | The order page, by default it's ord/basket. |
nextpage | The page to expect response from, whatever the result is. |
parser | Function for parsing the formatted response. |