shopp_order_line_data()

get the purchased line-item data

shopp_order_line_data ( $order, $line, $name )

@param int $order the order id
@param int $line the order line item
@param string $name (optional) the key to the order line-item
@return mixed false if the line-item does not exist, the value if name is specified, else the data entries array

Description

get the purchased line-item data

Examples

get the data entries array

// get order data for line 1 of order 2
$data = shopp_order_line_data(2, 1);

get data value by key name

// get order data named "key" for line 1 of order 2
$value = shopp_order_line_data(2, 1, "key");

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar