Support » Plugin: Coupon Generator for WooCommerce » creating coupons remain at 0%

  • Resolved pllypckt


    this problem happens in both Chrome and Microsoft browsers.
    “SCRIPT_DEBUG” did not fix the error.

    Uncaught ReferenceError: woocommerce_admin_meta_boxes is not defined
    at HTMLDocument.<anonymous> (meta-boxes.js?ver=2.2.6:61)
    at j (jquery.js?ver=1.11.1:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.11.1:2)
    at Function.ready (jquery.js?ver=1.11.1:2)
    at HTMLDocument.J (jquery.js?ver=1.11.1:2)

    Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
    at HTMLDocument.<anonymous> (wp-auth-check.js?ver=4.0.19:96)
    at HTMLDocument.dispatch (jquery.js?ver=1.11.1:3)
    at HTMLDocument.r.handle (jquery.js?ver=1.11.1:3)
    at Object.trigger (jquery.js?ver=1.11.1:3)
    at Object.jQuery.event.trigger (jquery-migrate.js?ver=1.2.1:493)
    at HTMLDocument.<anonymous> (jquery.js?ver=1.11.1:3)
    at Function.each (jquery.js?ver=1.11.1:2)
    at jQuery.fn.init.each (jquery.js?ver=1.11.1:2)
    at jQuery.fn.init.trigger (jquery.js?ver=1.11.1:3)
    at Object.<anonymous> (heartbeat.js?ver=4.0.19:337)

    i am not well versed in this at all, just following instructions you gave others to get information for you to work on. hopefully you can help me out, thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeroen Sormani



    Which version of WP, WC are you running? It looks like you’re running quite old versions, which are not supported by the plugin.


    Hi i am having the same problem. i’m on WP 4.9.1 and this is happening both on chrome and safari. One caveat – my developers put it on the staging site first. Could it be because it’s on staging and not production?

    Plugin Author Jeroen Sormani


    Hi Shelly,

    Like the TS this is likely caused by a JavaScript error. Please check your console for errors;




    Hi @pllypckt,
    how did you solve it?



    I solved 🙂
    Someone could help.

    In the file class-wccg-admin.php it is necessary to comment lines 80 and 81 with the following code:

    80# //wp_enqueue_script( 'wc-admin-meta-boxes' );
    81# //wp_enqueue_script( 'wc-admin-coupon-meta-boxes' );

    Sorry for my english.

    A greeting

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘creating coupons remain at 0%’ is closed to new replies.