• Hi, we’ve installed this plugin and created a coupon code. Left all the fields blank and assuming that this means it applies to everything in the store. Enter the coupon code at checkout and it shows it’s applied but NO discount is showing. I’ve changed the discount type, I’ve applied it to one product only, and did all kinds of troubleshooting but I cannot get it to apply a discount at all.

    I’ve put it into DEBUG mode but the log shows nothing that helps me:

    2020-05-29T10:59:51+00:00 DEBUG woocommerce_after_calculate_totals WJECF_Autocoupon::update_matched_autocoupons Coupons in cart: fund25
    2020-05-29T10:59:52+00:00 DEBUG init WJECF_Debug::log_the_request ======== GET: frontend /cart/ ========
    2020-05-29T10:59:52+00:00 DEBUG woocommerce_check_cart_items WJECF_Autocoupon::get_all_auto_coupons Autocoupons:
    2020-05-29T10:59:53+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: ajax /wp-admin/admin-ajax.php ========
    2020-05-29T10:59:53+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: ajax /?wc-ajax=get_refreshed_fragments ========
    2020-05-29T10:59:53+00:00 DEBUG init WJECF_Debug::log_the_request ======== GET: frontend /kurse/praesenzkursen/bsc-kurse/?lang=de/ ========
    2020-05-29T10:59:54+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: ajax /?wc-ajax=get_refreshed_fragments ========
    2020-05-29T10:59:58+00:00 DEBUG init WJECF_Debug::log_the_request ======== GET: frontend /kurse/praesenzkursen/business-analysis-kurse/?lang=de/ ========
    2020-05-29T11:00:01+00:00 DEBUG init WJECF_Debug::log_the_request ======== GET: frontend /kurse/praesenzkursen/istqb-fortgeschrittenenkurse/?lang=de/ ========
    2020-05-29T11:00:01+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: ajax /?wc-ajax=apply_coupon ========
    2020-05-29T11:00:02+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: frontend /cart/ ========
    2020-05-29T11:00:03+00:00 DEBUG woocommerce_check_cart_items WJECF_Autocoupon::get_all_auto_coupons Autocoupons:
    2020-05-29T11:00:03+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: ajax /?wc-ajax=get_refreshed_fragments ========
    2020-05-29T11:00:04+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: ajax /?wc-ajax=get_refreshed_fragments ========
    2020-05-29T11:00:05+00:00 DEBUG init WJECF_Debug::log_the_request ======== GET: frontend /kurse/praesenzkursen/istqb-grundkurse/?lang=de/ ========
    2020-05-29T11:00:07+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: ajax /wp-admin/admin-ajax.php ========
    2020-05-29T11:00:08+00:00 DEBUG init WJECF_Debug::log_the_request ======== GET: frontend /course/istqb-agile-foundation-extension/ ========
    2020-05-29T11:00:09+00:00 DEBUG init WJECF_Debug::log_the_request ======== GET: frontend /kurse/praesenzkursen/itil-service-management-schulungen/?lang=de/ ========
    2020-05-29T11:00:11+00:00 DEBUG init WJECF_Debug::log_the_request ======== POST: frontend /course/istqb-agile-foundation-extension/

    I’ve read the documentation and can’t see what we’re doing wrong https://www.soft79.nl/documentation/wjecf/usage/

    Any ideas? Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter linkbrightmedia

    (@linkbrightmedia)

    On the coupon page in the settings I clicked “Coupon data as json” under the ‘Debug’ section and it showed

    result “error”

    The ‘headers’ section shows the following information:

    Cache-Control: no-store, no-cache, must-revalidate
    Connection: Keep-Alive
    Content-Type: application/json
    Date: Fri, 29 May 2020 13:05:47 GMT
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Keep-Alive: timeout=5, max=100
    Pragma: no-cache
    Server: Apache
    Transfer-Encoding: chunked

    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    Accept-Encoding: gzip, deflate, br
    Accept-Language: en-GB,en;q=0.5
    Connection: keep-alive
    Host: http://www.domainname.co.uk
    Referer: https://www.domainname.co.uk/wp-admin/post.php?post=48828&action=edit
    Upgrade-Insecure-Requests: 1
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:76.0) Gecko/20100101 Firefox/76.0

    Plugin Author Soft79

    (@josk79)

    Does the coupon have a code? This is required. What is the code? Does it have strange characters?

    Plugin Author Soft79

    (@josk79)

    BTW You said you left all fields blank. You must enter a discount amount for a coupon to apply a discount.

    Thread Starter linkbrightmedia

    (@linkbrightmedia)

    Hi, yes of course there’s a discount amount.

    Coupon name: FUND25
    Coupon amount: 25
    Coupon expiry: 2020-06-30
    Useage restriction tab: all settings left blank / default
    Usage limits tab: all settings left blank / default
    Checkout tab: all settings left blank / default
    Miscellaneous tab: all settings left blank / default

    Plugin Author Soft79

    (@josk79)

    What happens if you (temporarily) disable our plugin and then try to apply the coupon to the cart? Does it apply the discount then?

    Thread Starter linkbrightmedia

    (@linkbrightmedia)

    Good morning, after extensive testing I found that it was the code that wouldn’t work. It wouldn’t work with FUND25 but as soon as I renamed it FUND-25 it worked. When I rename it back to FUND25 it doesn’t work again. Very strange!

    Plugin Author Soft79

    (@josk79)

    Weird! Thanks for the feedback.

    What multilanguage plugin do you use?

    Thread Starter linkbrightmedia

    (@linkbrightmedia)

    We’re using WPML

    Plugin Author Soft79

    (@josk79)

    The only thing I can think of is a coupon code only being available in one language, but this is just a guess…

    or maybe there is a coupon with the same name in the trash?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Coupon applied but no discount showing’ is closed to new replies.