• Resolved anneng1

    (@anneng1)


    Even if the “Create Coupon Code” option is not enabled in the email settings, coupon codes are still being generated automatically.

    I’m not sure since which version this has been happening, but it has been ongoing for several months. My current version is the latest. Today, I used some code to track the source of the coupon generation and found that it is related to your plugin. I can confirm that the coupon generation feature was not enabled in any of the three emails.

    /public_html/wp-content/plugins/woo-cart-abandonment-recovery/modules/cart-abandonment/classes/class-cartflows-ca-email-schedule.php:546 ::wp_insert_post
    /public_html/wp-content/plugins/woo-cart-abandonment-recovery/modules/cart-abandonment/classes/class-cartflows-ca-tracking.php:500 Cartflows_Ca_Email_Schedule::generate_coupon_code
    /public_html/wp-includes/class-wp-hook.php:341 Cartflows_Ca_Tracking::update_order_status
    • This topic was modified 1 month ago by anneng1.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Aamir

    (@aamiribsf)

    Hi @anneng1 ,

    Thanks for the detailed report and for including the stack trace — that was very helpful in tracking this down!

    After checking the code, we can confirm this is caused by the Global “Create Coupon Code” setting, which operates independently from the per-email coupon options.

    You can find it here: Cart Abandonment → Integrations →Webhook → Create Coupon Code — please refer to this screenshot for reference: https://bsf.d.pr/i/2lKqBg

    When this global toggle is enabled, a coupon is automatically generated the moment a cart is flagged as abandoned — regardless of whether any of your individual email templates have coupons enabled or not. These are two separate systems, so disabling coupons in your email templates does not affect this global setting.

    Simply turning off the Create Coupon Code toggle in that global settings area should stop the coupons from being generated.

    Hope this information helps.

    Thread Starter anneng1

    (@anneng1)

    Thanks for the heads-up. I’ve disabled the coupon generation option for now.
    However, the webhook option was already off before. This might be a bug: it seems that even when the webhook is disabled, the sub-level settings for coupon generation still take effect if they are turned on.

    Plugin Support Aamir

    (@aamiribsf)

    Hi @anneng1,

    Thanks for flagging this and for the additional detail. We can see why the current behaviour looks unexpected, especially since the coupon generation setting is nested under the Webhook section. We’ll look into this and share your findings with the team for review.

    Aamir
    CartFlows Support

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.