Replies: 0
Hi,
I am trying to use this plugin to programmatically add discount to an order.
I can do this with $oOrder->apply_coupon(‘blablabla’);
But that function will not make use of this plugin i guess.
I setup a couponcode for a specific user role, to be applied automatically. This works on the front-end ofcourse. But i also have some import scripts running for which i need to add this same discount feature.
So based on the user role and products in de Order (not Cart)
Is there a way to do this?