Jump to content

Magento - How to restrict Shipping Method Based on Product in the cart?


aveeva

Recommended Posts

Without some code to look at or more details on what you are dealing with I'm at a loss to help you.  I can only imagine that your logic that handles the POST from this form examines the product that "exits" in the (shopping?) cart and then determines if the correct shipping method was selected.  If not you simply send back the form with the user's entries re-posted to it and an error message.  I suppose you could also write some JS code to do that check before the form is submitted  (maybe with an 'onsubmit' call from the submit button) and eliminate the post to the server until the input is all correct.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.