Support » Plugin: WooCommerce Extended Coupon Features FREE » get_cart was called incorrectly

  • Resolved edDraw

    (@eddraw)


    Hi,

    With last Woocommerce version, I get this notice when adding coupons through URLs:

    get_cart was called incorrectly Get cart should not be called before the wp_loaded action

    I think you should change line 44 in wjecf-autocoupon.php and replace init by wp_loaded:

    add_action( 'wp_loaded', array( &$this, 'coupon_by_url' ), 23); //Coupon through url

    https://wordpress.org/plugins/woocommerce-auto-added-coupons/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘get_cart was called incorrectly’ is closed to new replies.