- CrystalCommerce Liquid Documentation for Designers

Buy Order Drop

This drop is included on this page in with the variable name {{ drop_name }}.

Properties

id
Buy Order ID for use in forms.
empty?
Returns true if the buy order has no line items, false otherwise.
status
Returns the status string of the buy order. Possible Values:
line_items
Returns a list of line Item Drops for this buy order.
subtotal
Returns the formatted subtotal (before tax and shipping) for the buy order. Example: “$16.50”
number_of_items
An integer count of the number of individual items in the buy order. Note that it counts items, not line items. If an order has 1 line item with a quantity of 2, this would return 2, not 1.
paypal_payment
Returns false if there is no paypal payment associated with this buy order. Otherwise returns a Payment Drop for the paypal payment.
created_on
Returns the date this order was started in the format of “MM/DD/YYYY” Example: “03/14/2011”
shipping_address
Returns false if there is no shipping address associated with this buy order. Otherwise returns an Address Drop for the shipping address.