I wish to wish split my cart according to the item. At a time I want to checkout with one product.For multiple products, cart will split into multiple carts and user at a time can checkout with one product.
Thanks in advance :)
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI wish to wish split my cart according to the item. At a time I want to checkout with one product.For multiple products, cart will split into multiple carts and user at a time can checkout with one product.
Thanks in advance :)
You can achieve this by following the below steps.
Step-1: When user click in any product checkout button that time you need to save rest product in session and remove from cart. In checkout page, it will charge only single product which the user chooses for checkout.
Step-2: After checkout and before the success page load you need to add session product again in the cart.(use observer for this)
Step-3: After added product in the cart then you need to clear the session again.
For example, if a user come back from the checkout page to cart page without placing an order in this case you need to add session products back to the cart and clear session.