Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My site will generate and email me a coupon code if I purchase a single or multiple coupon code products. But if I add other non-coupon products to my cart and checkout, my site does not generate a code at all.
I believe my setup is correct as the code generates for one of the situations described above. I have an inactive coupon that is connected to a product through feature.
Any ideas what could be causing this? Thank you.
Comments
Comment #1
DrCord CreditAttribution: DrCord commentedI am experiencing this exact same problem. Coupons that should be generated during a checkout with multiple items are not generated at all.
Comment #2
DrCord CreditAttribution: DrCord commentedOK, I backtracked my problem: What happens is the coupon is only generated on the order being marked complete and orders with tangible (shipable) products do not get automatically marked as complete, like an order with a non-tangible product does.
Comment #3
DrCord CreditAttribution: DrCord commentedI found a solution on this issue: https://drupal.org/node/1227980 - #2
You can set the order status that triggers the coupon creation here:
http://yoursite.com/admin/store/settings/products/edit/features