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

Bagisto

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

Add credit/debit card payment

Modules
2
10
709
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.
  • D
    darkuser123 last edited by 16 Nov 2020, 04:36

    I'm trying to add new payment credit debit card
    i have tried this tutorial https://bagisto.com/en/how-to-create-custom-payment-method-in-bagisto and works well

    the problem is, in credit card we need to add additional form such as credit card number, valid date and cvv in frontend when customer selected the credit/debit card payment method

    which script should i modified to add that 3 form, and also i'm trying to delete entire file in the onepage.blade.php to debug the code which that should giving me an error right? but its just works fine, like nothing change. i have cleared all cache and composer dump, npm run watch

    what should i do ? please help
    thank u

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 16 Nov 2020, 10:30

      Hi @darkuser123,

      It seems like you are making changes in the packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php. This is the resource file for the Velocity package for changes reflection you need to publish your package.

      Or you can directly place your changes to this file,
      resources/themes/velocity/views/checkout/onepage.blade.php.

      1 Reply Last reply Reply Quote 0
      • 16 days later
      • D
        darkuser123 last edited by darkuser123 2 Dec 2020, 10:01 2 Dec 2020, 06:44

        @devansh-webkul is there anyway to update onepage.blade.php in velocity folder ?
        since the resources/themes/ folder itu ignored to push in git and i dont want to change the .gitignore file

        and since there is a velocity folder, am i able to edit the views in that folder and then generate it to that themes/velocity/views/ folder ?

        is there anyway to publish the modified file in velocity folder to the theme folder

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 2 Dec 2020, 14:48

          @darkuser123,

          From the velocity folder are you referencing the package folder or theme folder?

          If you are making changes in the package folder then you can simply run php artisan vendor:publish --force --all.

          This will place all your changes in the theme folder.

          1 Reply Last reply Reply Quote 0
          • D
            darkuser123 last edited by 3 Dec 2020, 02:17

            @devansh-webkul i have modified and add come code in onepage.blade.php in velocity folder, and do that command, but nothing changed in theme folder
            why ?

            1 Reply Last reply Reply Quote 0
            • devansh-webkul
              devansh-webkul last edited by 3 Dec 2020, 04:10

              Hi @darkuser123,

              I am not getting which folder you are referencing, can you share with me the full path of that folder.

              D 1 Reply Last reply 3 Dec 2020, 06:52 Reply Quote 0
              • D
                darkuser123 @devansh-webkul last edited by 3 Dec 2020, 06:52

                @devansh-webkul i have modified this file

                packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php
                

                what i do was, i add some new vue components in there, and then i'm running command

                php artisan vendor:publish --force --all
                

                its work well without show an error

                but my vue component that i created is not shown in frontend, and also the file in

                resources/themes/velocity/views/checkout/onepage.blade.php
                

                are not updated with component that i made

                1 Reply Last reply Reply Quote 0
                • devansh-webkul
                  devansh-webkul last edited by 4 Dec 2020, 09:51

                  Hi @darkuser123,

                  Did you created your component in blade file or somewhere else?

                  Can you share with me the file where you created a component?

                  D 1 Reply Last reply 5 Dec 2020, 03:18 Reply Quote 0
                  • D
                    darkuser123 @devansh-webkul last edited by darkuser123 5 Dec 2020, 05:07 5 Dec 2020, 03:18

                    @devansh-webkul i have an external js file, and i have import the js file in app.js and do Vue.use(js-file)
                    but the js file not register in this.window

                    Capture.PNG

                    normally if i'm not using velocity theme, the js file is works

                    are we cannot published the js file in velocity frontend ?

                    the app.js file that i modified was in

                    packages/Webkul/Velocity/src/Resources/assets/js/app.js
                    
                    1 Reply Last reply Reply Quote 0
                    • devansh-webkul
                      devansh-webkul last edited by 7 Dec 2020, 04:42

                      Hi @darkuser123,

                      Did you compiled your assets and after that published your changes?

                      Or just simply check with npm run watch.

                      1 Reply Last reply Reply Quote 0
                      5 out of 10
                      • First post
                        5/10
                        Last post