• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Need to checked payment method by default.

General Discussion
4
7
1.3k
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 15 Sept 2020, 11:08

    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 16 Sept 2020, 13:46 Reply Quote 0
    • D
      deepak227 @Nayan7030 last edited by 16 Sept 2020, 13:46

      @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 16 Sept 2020, 16:11

        @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 17 Sept 2020, 13:15

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

          1 Reply Last reply Reply Quote 0
          • N
            Nayan7030 last edited by 17 Sept 2020, 14:01

            @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
            • about a year later
            • E
              erman last edited by 16 Feb 2022, 10:42

              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 17 Feb 2022, 06:17

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

                1 Reply Last reply Reply Quote 0
                3 out of 7
                • First post
                  3/7
                  Last post