ilclaudio Posted September 22, 2016 Share Posted September 22, 2016 Hi all, we are using a module that allows us to duplicate an order. This module is useful but does not copies the order discounts (eg. discount of 20€ on the total), if present. I'd like to modify this module so that I can add programmatically a discount to the a new order. Do you have any suggestion on how I can modify this feature? Thank you very much. Claudio Link to comment Share on other sites More sharing options...
NemoPS Posted September 23, 2016 Share Posted September 23, 2016 It's nearly impossible for us to have a clue since we don't know which module you are using. I would inspect the function that duplicates the order, and try to inject some snippet that copies the cart rule id, creates a new one (clone) and modifies the order id of it, to the new 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