Bagisto Forum

    Bagisto

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

    How to set 'Buy now' button along with Add to card button?

    Knowledge Base
    5
    26
    5434
    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.
    • P
      parasbhadauria63 @Vaishali Agarwal last edited by

      Hi @Vaishali-Agarwal
      I have already made the changes as mentioned above.
      But still Buy Now is not visible in the Velocity theme.
      Please help me out.
      Thanks

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by Vaishali Agarwal

        Hi @parasbhadauria63
        you need to run the publish all your asset.
        first go to the velocity package & run command

        npm i
        
        npm run watch-poll
        

        once these command run successfully
        open the project root directory & run the below command
        php artisan vendor:publish --force & press 0 to continue

        P 1 Reply Last reply Reply Quote 0
        • P
          parasbhadauria63 @Vaishali Agarwal last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by

            @parasbhadauria63 said in How to set 'Buy now' button along with Add to card button?:

            'npm' is not recognized as an internal or external command

            please check npm should be installed on your system
            refer to this for more help https://stackoverflow.com/questions/33055515/npm-is-not-recognized-as-an-internal-or-external-command-operable-program-or/33055592

            P 1 Reply Last reply Reply Quote 0
            • P
              parasbhadauria63 @Vaishali Agarwal last edited by parasbhadauria63

              Hi @Vaishali-Agarwal
              Buy Now button is visible now in the velocity theme.
              But some of the file it could not locate (See the attached screenshot) during running the mentioned command
              error.png

              Due to this, I am not able to login with Google/Facebook, etc as can be seen in the other screenshot

              Login with google erroe.png

              1 Reply Last reply Reply Quote 0
              • V
                Vaishali Agarwal last edited by Vaishali Agarwal

                @parasbhadauria63
                Well, the error showing on the console will affect your project.
                if you still want to fix this refer to these changes https://github.com/bagisto/bagisto/issues/4317

                Google/facebook login integration is not related to this error, you just need to setup the app's valid client_ID or client_secret keys in .env file
                you may also refer to this guide https://bagisto.com/en/social-login-for-bagisto/

                I hope this will help you.
                Thanks

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