Hello There,

In our case we need to track which user added a coupon.
For this we create a module where we are using form_alter_submit() hook. Below is the code used for same
function coupon_form_alter_submit(&$form, &$form_state){
// my code here
}

The above function is called after a coupon is created as I can see new coupon in listing.

We are facing issue to get the newly created coupon id in above function.

Can you please let us know that how we can get the newly created coupon id in form_alter_submit() function?

Thank you,
Pravin Sawant

Comments

psawant311 created an issue.