delete in cart do not work and plugin is not triggered

Started by Studio 42, December 12, 2017, 00:25:50 AM

Previous topic - Next topic

Studio 42

In the form, the delete product button submit the form.
The task is not changed. So task is always updatecart.
Problem is that update do not call removeProductCart and not trigger plgVmOnRemoveFromCart for the plugin, so i think that many pluging needing this trigger do not work.
I think when the update quantity is 0, removeProductCart  should always be trigerred in cart helper updatecart, currently only plgVmOnUpdateCart is triggered.
So you should remove delete, because you have a situation in witch the vm custom plugin is not triggered on delete and by logic all mean that this work.
I'm on writing a plugin using this trigger, but because this is not working i have to check plgVmOnUpdateCart  but $cart->updateProductCart() remove the product before if quantity is 0 !!!
So i have to check the session myself and any other programmer need too, because this bug logic.
Thanks to check and solve this stupid bug and please stop to modify the code that break other, You reminded me every time when i was in the team, but currently each new release need to modify some codes(for max).
regards,
Patrick