Jump to content

Hook for cart rule


cedricfontaine
 Share

Recommended Posts

Is there a way to add some condition to cart rule without modifying the core ? I want to block some rules on some days (valentine day for example).

I know how to do it by modifying the core, but it's strange that there is no hook when custom use a coupon code for example.

Share this post


Link to post
Share on other sites

What if you did something with a Product/Customer condition.

 

On a given day, change the cart rule so it only applies to a disabled product, or to a "fake" customer or group.  You should be able to automate that from a module or cron?

 

I'm trying to think outside the box and work around there being no hook

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More