Jump to content

Override Cartcontroller without using Override file


Recommended Posts

Hi,

I'm developed a Module which contain Override cartcontroller which helps to use custom functionality before product add to cart but, I cannot use multiple override cartcontroller when other module has different functionality. I can adapt multiple functionality in same override controller but each time I need to customize that file for merge different override function, this make more pressure for me.

I also checked the hooks but I can only find a hook "actionCartSave" but it execute after cart update, rather I need a hook before cart update.

Can anyone help me for below issue

  1. Is there any way I can check the product before it updated in cart (not override)
  2. Else can I display error message in checkout page using hook actionCartSave

Thank you.

Edited by ilmtech (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...