#matrix-free-shipping
1 messages · Page 1 of 1 (latest)
Hi
I would like to charge £5 for delivery but if the order value is above £30, then i want to charge £0
And you're passing those shipping prices to us currently?
no, i am trying to understand how to do it? at the moment I have the following
shipping_address_collection: {
allowed_countries: ['GB'],
},
shipping_options: [{
shipping_rate_data: {
type: 'fixed_amount',
fixed_amount: {
amount: 0,
currency: 'gbp',
},
display_name: 'Collection',
delivery_estimate: {
minimum: {
unit: 'hour',
value: 1,
},
maximum: {
unit: 'hour',
value: 1,
},
}
}
},
{
shipping_rate_data: {
type: 'fixed_amount',
fixed_amount: {
amount: 500,
currency: 'gbp',
},
display_name: 'Delivery',
delivery_estimate: {
minimum: {
unit: 'hour',
value: 1,
},
maximum: {
unit: 'hour',
value: 1,
},
}
}
},
],
i can charge £5 but for any value. i would like to charge £5 only if the total value is less than £30
Gotcha. As far as I know there is currently no sort of dynamic functionality in our shipping rates/options. If you want to drop the shipping cost then you will need to determine if the order will exceed your free-shipping threshold on your end and if so, then alter the shipping options that you send.
ok so i need to create 2 checkouts (one with free delivery and one without) and then send the user to one or the other based on total value of the shopping cart, right?