ssalles Posted July 15, 2013 Share Posted July 15, 2013 (edited) Hello, 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 July 17, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
ssalles Posted July 17, 2013 Author Share Posted July 17, 2013 I found the solution to my problem: Duplication of the promotion takes place in PaymentModule class, validateOrder () function . Then just change operation. Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 hello thanks for information and for solution i marked this thread as [solved] regards Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now