Bagisto Forum

    Bagisto

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

    Buy Now as quick checkout option?

    General Discussion
    3
    4
    385
    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.
    • K
      karkiswapnil last edited by

      Is there a way to buy now a single product regardless of cart status? If I have number of items in cart but if click on buy now for a product the particular product should only be processed during checkout.

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hello @karkiswapnil

        Right Now, these is not there. If you want to implement this one, then you need to change whole cart functionality.

        Right now, we have two tables, one is cart and second one is cart_items. cart_items consist all items of cart, so in your case you need to change relationship between these two tables.

        Thanks

        1 Reply Last reply Reply Quote 0
        • M
          maheshb last edited by maheshb

          @rahul said in Buy Now as quick checkout option?:

          Right now, we have two tables, one is cart and second one is cart_items. cart_items consist all items of cart, so in your case you need to change relationship between these two tables.

          Hello Swapnil,

          We have implemented this feature with the following approach, check if it helps -

          1. Deactivated the existing cart (if exist) and stored the current cart id in the session.
          2. After completing Buy Now process along with payment for a single product, reactivated the old cart id which we have saved in step 1.
          3. If the user doesn't complete Buy Now process for some reason then, in this case, re-activate the old cart from the session and deactivate current cart i.e. created for Buy Now.
          1 Reply Last reply Reply Quote 0
          • K
            karkiswapnil last edited by

            Thanks, will try to do this.

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