shopp_order_lines()

retrieve all purchased line-items on an order

shopp_order_lines ( $order )

@param int $order (required) the order id
@return bool|array false on failure, array of Purchased line item objects on success

Description

retrieve all purchased line-items on an order

Example

// get array of Purchased objects from order 10
$purchases = shopp_order_lines( 10 );

See Also

  1. Avatar of Chris

    This function returns an Array with the following object values:

    • [id] => line item ID
    • [purchase] => order ID
    • [product] => product ID
    • [price] => price ID
    • [download] => ???
    • [dkey] => download key
    • [name] => Item Name
    • [description] => Item Description
    • [optionlabel] => Label for the selected Variation
    • [type] => Shipped, Download, Donation, etc
    • [sku] => SKU
    • [quantity] => cart quantity
    • [downloads] => # of times product has been downloaded
    • [unitprice] => price of item
    • [unittax] => tax applied to order
    • [shipping] => freight applied to order
    • [total] => order total
    • [addons] => yes or no
    • [variation] => ???
    • [data] => an Array of cart item “inputs” for custom data
    • [created] => 2012-04-27 14:52:08
    • [modified] => 2012-04-27 14:52:08
    • [inventory] => inventory tracking “on” or “off”
    May 5th   #

You must be logged in to post a comment.

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

Skip to toolbar