• Hi there,

    I’m having a problem when I want to add both the product and the coupon to the URL. You can see the URL below:

    /cart/?add-to-cart=365&variation_id=370&attribute_pa_leverfrequentie=elke-vier-weken&apply_coupon=eerstebox

    First I see a 404 error and then when I go to the shopping cart it shows the product, but states: “Sorry, this coupon is not applicable to your cart contents.”

    What can be the problem here?

    https://www.ads-software.com/plugins/woocommerce-auto-added-coupons/

Viewing 1 replies (of 1 total)
  • Plugin Author Soft79

    (@josk79)

    Hi, sorry for the delay. This should work:

    In includes/wjecf-autocoupon.php find the line.

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

    and replace it with

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

    Please let me know if this fixes your problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Coupon and product with URL’ is closed to new replies.