• Resolved unisonosoftworks

    (@unisonosoftworks)


    Hi,

    We’ve become aware of an issue affecting one of our client’s shops.

    Starting this morning, previously created coupons have lost their scheduling settings—specifically, the “Date Range Schedule” activation flag is no longer enabled, although the date fields themselves remain unchanged.

    Attempting to re-enable the “Date Range Schedule” checkbox has no effect; after saving, the checkbox is automatically unchecked again. This doesn’t happen with new coupons.

    We’re wondering if this is a known issue or if there’s any information on what might be causing this behavior. The plugin, WordPress, and WooCommerce are all running the latest versions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support karlaviado

    (@karlaviado)

    hi @unisonosoftworks

    We suggest checking if a caching plugin has been added recently to the site. If so, try disabling the caching plugin temporarily to see if this resolves the issue. If it does, you can then exclude the Advanced Coupons plugin from being cached and see if that resolves the scheduling issue.

    Caching can sometimes cause unexpected behavior with dynamic settings like those in the Advanced Coupons plugin, especially when changes are not reflected immediately.

    Let us know how it goes or if you need further assistance!

    Thread Starter unisonosoftworks

    (@unisonosoftworks)

    Sorry for the very late response.

    I have found out that the issue is related to the meta value “_acfw_enable_date_range_schedule”.

    This (and other checkbox values) are stored as strings with the value “yes”. This is problematic if users have installed WPML and activated the auto-register string option in combination with the auto-translate option. WPML translates the “yes” into a non-English word if the main language of WordPress is set to another language than English. This leads to failed checks for that setting / option in frontend and backend. Indicator for that is that ended schedules are ignored and in the edit screen the checkbox is unmarked – even if the value is present in the database.

    You may consider to change checkbox values to 1s (“true” would fail!) or to prevent wpml from auto-register checkbox string values per se.

    Replication:

    • Install WPML and setup another language than English as main / base language.
    • Activate auto-translation and auto-string-detection:
      admin.php?page=wpml-string-translation%2Fmenu%2Fstring-translation.php
    • Create a auto apply coupon, activate schedule
      • check if wpml have picked up the strings – look for domains like “coupon-1235”
    • if so, check for “_acfw_enable_date_range_schedule” -> if not translated yet, just translate it
    • open the coupon in edit screen – scheduler should be deactivated even if the value is still yes in the db
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Outdated coupons issue’ is closed to new replies.