I need to delete an item in cart after customer loggend in a scratch like this:

foreach($items as $item){
   if(condition == true){

the problem is i don't know which event will trigger the observer, and get cart items and delete it from observer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.