Skip to main content
5 events
when toggle format what by license comment
Jan 5, 2017 at 12:03 comment added Stian Karlsen Could you expand on the updateCart form. I don't understand how I can use that to clear the shipping method. I tried simply creating a form and submitting it, but nothing happens. Apologies in advance for being a bother here. Thank you! (The ajax part won't be a problem, no need to expand on that)
Jan 5, 2017 at 1:25 comment added Jeremy Daalder Yeah I realised my answer above is not right - it might be setting custom fields at that point, but not the shippingMethod. I think your best bet here is to ajax two requests off - one to updateCart to clear the shipping method/id, and then a second call to removeAllLineItems once that returns. Hacky, but it will work.
Dec 29, 2016 at 11:50 comment added Stian Karlsen Hey! Thanks for the answer. Unfortunately it did not work. I tried on the default template code that comes with Commerce as well. Do you have other suggestions? Cheers!
Dec 21, 2016 at 4:19 history edited Jeremy Daalder CC BY-SA 3.0
added 10 characters in body
Dec 21, 2016 at 4:04 history answered Jeremy Daalder CC BY-SA 3.0