Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to add condition to show hide cash on delivery Payment Method based on total Grand Total?

    Knowledge Base
    2
    4
    648
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zakir last edited by Zakir

      Hi,
      How to add condition to show hide cash on delivery Payment Method based on total Grand Total and/or City ?

      1 Reply Last reply Reply Quote 0
      • V
        vishalK last edited by

        Hi @Zakir

        You have to add conditions according to your need inside isAavailabe() function.

        $root_folder/packages/Webkul/Payment/src/Payment/CashOnDelivery.php

        Regards

        1 Reply Last reply Reply Quote 0
        • Z
          Zakir last edited by

          Hi @vishalK ,
          I don't see any function isAavailabe() in CashOnDelivery.php .

          cedde231-d46a-431d-8a24-d686c5ddac12-image.png

          1 Reply Last reply Reply Quote 0
          • V
            vishalK last edited by

            Hi @Zakir

            This cash on delivery class extends Payment class so you will find isAvailable() function in payment class kindly check.

            Thanks

            1 Reply Last reply Reply Quote 0
            • First post
              Last post