Shipping option
Outputs the selected shipping option’s data from the settings when using a shipping method that contains customer-selectable options.
Parameters
get
- The value to output. It can be
label
,price
or any other value you enter in your settings. Leave off this parameter to output the option shortname/key.
Example
If your bison.yaml contains shipping options like this:
shipping_options:
usps:
label: USPS
price: 0
description: Free delivery
fedex:
label: FedEx
price: 10
description: Get it faster
and your user has selected FedEx:
{{ bison:shipping_option }}
Outputs: fedex
{{ bison:shipping_option get="label" }}
Outputs: FedEx
{{ bison:shipping_option get="description" }}
Outputs: Get it faster
Problem with this page? Edit it on Github.