Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @jamieong Why is SEPA even there? There is no option in the backend to activate / deactivate SEPA?

    Thread Starter unisonosoftworks

    (@unisonosoftworks)

    Thanks for your reply. Following the paypal docs, phone number shouldn’t be part of the first check in the function. This field is optional. (PAYMENTREQUEST_n_SHIPTOPHONENUM)

    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 3 replies - 1 through 3 (of 3 total)