Auto generated Coupon Code Issue

Hi Support,
I am getting one more issue in Auto generated Coupon. In M1 autogenerated coupon has no expiry date. but in m2 auto generated coupon has expiry date. that’s why my generated coupon is not working on M2.
Please follow below steps to found the issue.

  1. Go to Marketing > Catalog Price Rule
  2. Find the rule by Rule Id 2170.
  3. Go to Managed coupon codes. and you see Expiration date is showing in grid. and this date is the migration date. so the coupon is not working

Please check and let me know what should I do this.
 
Thanks
Dinesh

3 answers

Profile photo of Mall Staff 184060.00 $tone August 7, 2019
Public

Hi there,

Go to Managed coupon codes. and you see Expiration date is showing in grid. and this date is the migration date. so the coupon is not working

To handle for that case, I have created a backup file and added more tweak code in step #7 of our migration tool.
Now, please run the delta migration in the step #7 with the ‘update’ mode at your end:
php -f bin/ubdatamigration run --step=7 --mode=update;

Regards,
Mall.
 

#1
Profile photo of mumandyou 260.00 $tone August 7, 2019
Public

Hi Mall,
 
Have you changed in code? if yes Please let me know in which file and what code you have changed. because I need to do these things on our main server also.
Thanks
Dinesh

#2
Profile photo of Mall Staff 184060.00 $tone August 7, 2019
Public

Hi there,

Have you changed in code? if yes Please let me know in which file and what code you have changed. because I need to do these things on our main server also.

Yes, I have created the backup PHP file at: pub/ub-tool/protected/controllers/Step7Controller.php.bak
and added more tweak code in the PHP file at: pub/ub-tool/protected/controllers/Step7Controller.php

You can also compare that two PHP files to see the new tweak code at your end.
 
Regards,
Mall.

#3

Please login or Register to Submit Answer

Written By

Comments