FeedTheFox

A FoxyCart Datafeed Package

View the Project on GitHub richtestani/FeedTheFox

Shipping

The shipping model contains everything related to shipping.

The following properties are available with the get() method.

The following methods are available to the shipping model. The shipping model is a collection of shipments.

$shipping = $datafeed->shipping();

foreach($shipping as $shipment) {

    echo $shipment->get('shipping_first_name');

}

totalShipments()

$shipping->totalShiments();

Returns integer of number of used shipments for a transaction.

get($property = null)

Returns a single value, or and entire array. If no property name is provided, the entire array is returned.

hasShippingName($name)

Returns true if the shipping name is equal to the name provided.

shippingCostIsGreaterThan($amount)

Returns true if the amount is greater than the shipping total.

shippingCostIsLessThan($amount)

Returns true if the amount is less than the shipping total.