• 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)
  • Plugin Author Soft79

    (@josk79)

    Yes, you’re right, this is already pending for release in 2.3.4!

    Thanks for reporting.

Viewing 1 replies (of 1 total)

The topic ‘get_cart was called incorrectly’ is closed to new replies.