Developer forum

Forum » Ecommerce - Standard features » URL parameter (or other way) to change Shipping method

URL parameter (or other way) to change Shipping method

Dmitrij Jazel
Reply

Hello DW guys,

What if I want to change shipping method "on the fly", for example, if I add something to the cart - depending on what it is - I want to choose 1 or another shipping method.

I would imagine this thing could maybe be possible with URL parameter, or maybe there is a better way to do it?

Regards,

Dmitrij


Replies

 
Morten Bengtson
Reply

You should be able to POST the id of a shipping method (EcomCartShippingmethodID) to a page containing CartV2.

So if you change your "Add to cart" link into a form (method="post") with a button and hidden inputs then I think you can change the shipping method "on the fly".

 

 

You must be logged in to post in the forum