shop:on_evalShippingRate AJAX handler
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
Generated PHP variables
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
A list of shipping options. Each element in the array is an object of the Shop_ShippingOption class.
¶ shipping_options_flat variable
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.