Functions

Function to add new item to cart.

add_to_cart(array $product_det) 

Parameters

$product_det

array

Product details

Delete incomplete orders from ages ago.

delete_incomplete_orders() 

Find products in cart

find_products_in_cart() : array

Returns

arrayProduct details in cart

Find current order id

get_current_order_id() : \AUTO_LINK

Returns

\AUTO_LINKOrder id

Return list entry of common order statuses of orders

get_order_status_list() : \tempcode

Returns

\tempcodeOrder status list entries

Find current order tax opt out status

get_order_tax_opt_out_status() : \BINARY

Returns

\BINARYTax opt out status of current order

Return a string of order products to export as csv

get_ordered_product_list_string(\AUTO_LINK $order_id) : \LONG_TEXT

Parameters

$order_id

\AUTO_LINK

Order ID

Returns

\LONG_TEXTProducts names and quantity

Get product details array, according to the hook specified in the 'hook' GET parameter

get_product_details() : array

Returns

arrayProduct details

Log cart actions

log_cart_actions(\ID_TEXT $action) 

Parameters

$action

\ID_TEXT

The data

Payment step.

payment_form() : \tempcode

Returns

\tempcodeThe result of execution.

Tell the staff the shopping order was placed

purchase_done_staff_mail(\AUTO_LINK $order_id) 

Parameters

$order_id

\AUTO_LINK

Order ID

Remove from cart.

remove_from_cart(array $product_to_remove) 

Parameters

$product_to_remove

array

Products to remove

Show cart image

show_cart_image() : \tempcode

Returns

\tempcode

Stock maintain warning mail

stock_maintain_warn_mail(\SHORT_TEXT $product_name, \AUTO_LINK $product_id) 

Parameters

$product_name

\SHORT_TEXT

product name

$product_id

\AUTO_LINK

Product id

Update cart

update_cart(array $product_det) 

Parameters

$product_det

array

Product details

Stock reduction

update_stock(\AUTO_LINK $order_id) 

Parameters

$order_id

\AUTO_LINK

The ID