Bagisto Forum

    Bagisto

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

    Need to checked payment method by default.

    General Discussion
    4
    7
    1257
    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.
    • N
      Nayan7030 last edited by

      Hello All,

      I have only one payment method on the checkout page.

      So I want to payment method should be checked by default when we click on shipping method.

      Please check the below video for more details.

      https://www.loom.com/share/5d83380515b44c0495697aadc9bcc28b

      D 1 Reply Last reply Reply Quote 0
      • D
        deepak227 @Nayan7030 last edited by

        @Nayan7030 For Default payment method

        File url - Project_name\packages\Webkul\Velocity\src\Resources\views\shop\checkout\onepage.blade.php

        Line no 625

        After
        eventBus.$emit('after-checkout-payment-section-added');

        Add
        this.payment = {
        method : "youpaymentmethodname"
        };
        this.methodSelected();

        Then Run php artisan vendor:publish and make sure clear cache.

        Thank you

        1 Reply Last reply Reply Quote 0
        • N
          Nayan7030 last edited by

          @deepak227 said in Need to checked payment method by default.:

          php artisan vendor:publish

          Hello Deepak,

          Thank you for your quick reply.

          It's mandatory to run the publish command.

          Because after run that command we lost some template file changes and default theme changes will be over right.

          So, is there any alternate solution to do this?

          1 Reply Last reply Reply Quote 0
          • N
            Nayan7030 last edited by

            Hello @deepak227 , Did you get a chance to check my last reply?

            1 Reply Last reply Reply Quote 0
            • N
              Nayan7030 last edited by

              @deepak227 said in Need to checked payment method by default.:

              this.payment = {
              method : "youpaymentmethodname"
              };
              this.methodSelected();

              @deepak227 It's working fine now. Thank you so much.

              1 Reply Last reply Reply Quote 0
              • E
                erman last edited by

                default payment method not showing on the checkout page but showing in the footer

                1 Reply Last reply Reply Quote 0
                • K
                  kokaqueen177 last edited by

                  how to integrate a payment gateway for my site that I accept payment from other countries also.

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