This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:on_evalShippingRate AJAX handler

Defined in /modules/shop/classes/shop_actions.php, lines 593-615
Author LemonStand eCommerce Inc.
Allows to add the Estimate shipping cost feature to the Cart page. Usually this AJAX handler used on the Cart page together with shop:cart action.
Please read the Implementing the Shipping Cost Estimator Feature article for more information.

Supported form fields

Field Type Description
country integer specifies a country identifier.
state integer specifies a state identifier.
zip string specifies the ZIP/postal code.
is_business boolean determines whether the shipping location is a business address. Optional.

Generated PHP variables

Variable Type Description
shipping_options array a list of shipping options.
shipping_options_flat array a flat list of shipping options.

Supported form field details

country form field

Specifies a country identifier.

state form field

Specifies a state identifier.

zip form field

Specifies the ZIP/postal code.

is_business form field

Determines whether the shipping location is a business address. Optional. Accepted values are 0, 1.

Generated PHP variable details

shipping_options variable

array $shipping_options;
A list of shipping options. Each element in the array is an object of the Shop_ShippingOption class.

shipping_options_flat variable

array $shipping_options_flat;
A flat list of shipping options. In the flat list all options, including options returned by multi-option shipping methods, like FedEx, are presented in a single list. Each element in the array is an object of the Shop_ShippingOption class.