Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss

    Restrict Payment Method based on Shipping Method

    Related articles

    I need Cash On Delivery payment method when the customer selects a Store Pick up Shipping method during the checkout process. You can do this using “payment_method_is_active“ event:

    Create an events.xml file at:
    /app/code/Vendor/Modulename/etc/. Add the following code in this file:

    And create Paymentactive.php file at
    Vendor/ModuelName/Observer/path. Add the following code in this file:

    You need to replace “storepickup_storepickup” with your shipping code and “cashondelivery” or “ paypal_express” with your payment method code.

    Contact us for scientific strategies to increase your site conversions

      Connect With Us