Bagisto Forum

    Bagisto

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

    Add credit/debit card payment

    Modules
    2
    10
    703
    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

      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

        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
        • D
          darkuser123 last edited by darkuser123

          @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

            @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

              @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

                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 Reply Quote 0
                • D
                  darkuser123 @devansh-webkul last edited by

                  @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

                    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 Reply Quote 0
                    • D
                      darkuser123 @devansh-webkul last edited by darkuser123

                      @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

                        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
                        • First post
                          Last post