How can I checkout with only one product without removing others?

I have 5 products in my cart, I want checkout with only one product but not remove another 4 products.
is that possible without any extension?
I have 1 solution but that was complicated

here is my solution
I’m using local storage to store another cart’s item data and add that to the cart after completing the checkout using add to cart API.

Hi, @Avi_choudhary . I’m happy to look into this with you! Can you tell me more about why you want to do this? I just want to make sure I’m giving you helpful advice for exactly what you’re trying to do.

The best way I can think to do this would be to use a dynamic checkout button on your product pages. This appears as either a “Buy it now” button or a button with the logo for a third-party accelerated checkout method. For example, “Buy with Shop Pay”. Customers can use the dynamic checkout button or the “More payment options” button to quickly buy the product they’re viewing. When this is done, the customer should only see the one product at checkout, even if there are other products in their cart. Those other items will remain in their cart. I’ve included a screenshot to show an example of this below. You can also learn more about dynamic checkout buttons here. I tested this out on my end and it did work for me, but I recommend trying this out on your end as well to ensure it functions as you’d like it to.

Another suggestion I have would be to use a third party app to give your customers an option to create a wishlist. This can help customers save products they intend to buy at a later time, without them having to add those products to the cart. In this case the cart would be available to be used for products the customer intends to purchase in their current order. You can find a list of apps that can create wishlists here.

Please let me know if you have any questions!

1 Like