Jump to content

[solved] Change cart rule


Recommended Posts



I'm trying to do something with a gift module.


I explain :


i have a module creating Gift checks. For the moment, when someone buy a check a cart rule is create with the check amount. This check is available for one use only and the cart rule is create with the partial use desactivate.

This is my problem, i want that a customers not using the totality of the amount of the check still can use the same code for use the rest of the check.


What i have to do in the module is quite simple :

Changing the code of this module for set the partial_use to 1 -> done.


Now, this is the hard part :

The partial_use is not working like that for now. Apparently if you use a part of the amount of a code, another code is generate with the rest of the amount.

I want to change that, i want that when a code is partially used, another code is create with the amount already used with the statut actvie to 0 and in the same time update the cart rule to set the amount with the rest and let the active statut to 1.


I need some help to find the file where this action append, so i will able to do the modif.


Thank you for your help

Edited by vekia (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...