Recent Topics

Buy Now as quick checkout option?



  • 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.



  • 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



  • @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.


  • Thanks, will try to do this.


Log in to reply