0

I'm doing some functionality in Magento 2 plugin feature. Here I took the shipping information before saving it and checked the delivery availability. Now I need to prevent the next step payment if the delivery is not available for any of the product.

4
  • Are you going to prevent any specific payment Gateway or entire payment section? Commented Jun 26, 2017 at 9:57
  • @ Manoj Kumar No i need to prevent whose payment section or i have an other option in this case if delivery not available redirect to cart page
    – amith lal
    Commented Jun 26, 2017 at 10:32
  • Maybe observer can help you this time. I think checkout_submit_before should be the one you need. cyrillschumacher.com/magento-2.1-list-of-all-dispatched-events
    – PY Yick
    Commented Jun 26, 2017 at 11:09
  • @ PY Yick up to this step checking condition we have done in plugin then how can it possible?
    – amith lal
    Commented Jun 26, 2017 at 11:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.