1

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.

enter image description here

Thanks in advance :)

2
  • That’s a tall order and probably well beyond the scope of what can be taught in a post here. That’s a large operation. Jul 26, 2018 at 7:10
  • @ShawnAbramson yes I know its a large operation, but I need suggestions how I can start this.
    – user00247
    Jul 26, 2018 at 8:51

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.