Title: Error Message
Last modified: August 31, 2016

---

# Error Message

 *  Resolved [nichelead](https://wordpress.org/support/users/nichelead/)
 * (@nichelead)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-message-501/)
 * Hi,
 * When using a url to add product & coupon, I get this error message:
    “You cannot
   add another “Competitor Knockout” to your cart.”
 * This happen as the url: [http://successgoose.com/cart/?add-to-cart=1386&apply_coupon=bonusguide1386](http://successgoose.com/cart/?add-to-cart=1386&apply_coupon=bonusguide1386)
   
   is redirecting to [http://successgoose.com/cart/?add-to-cart=1386](http://successgoose.com/cart/?add-to-cart=1386)
 * At the end, it adds the product and the coupon, but because of the redirect, 
   it tries to add the product again, which causes the error message (as well as
   slows down the page).
 * I don’t understand why this redirect happens and how to prevent it.
 * Please help 🙂
 * Thanks!
 * [http://successgoose.com/cart/?add-to-cart=1386&apply_coupon=bonusguide1386](http://successgoose.com/cart/?add-to-cart=1386&apply_coupon=bonusguide1386)
   is a non-cacheable redirect to [http://successgoose.com/cart/?add-to-cart=1386](http://successgoose.com/cart/?add-to-cart=1386)
 * [https://wordpress.org/plugins/woocommerce-auto-added-coupons/](https://wordpress.org/plugins/woocommerce-auto-added-coupons/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Soft79](https://wordpress.org/support/users/josk79/)
 * (@josk79)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-message-501/#post-7033126)
 * Are you using the latest version of my plugin?
 * As an alternative you can use the [Cart links for WooCommerce](https://nl.wordpress.org/plugins/soft79-cart-links-for-woocommerce/)
   plugin and replace add-to-cart with fill_cart. That will prevent re-adding an
   item that is already in the cart.
 *  Thread Starter [nichelead](https://wordpress.org/support/users/nichelead/)
 * (@nichelead)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-message-501/#post-7033141)
 * Yes, I am using the latest version of your plugin.
 * I don’t understant how replacing the add-to-cart with fill_cart will prevent 
   re-adding an item. The problem is the redirect I mentioned, so If the url will
   be
    [http://successgoose.com/cart/?fill_card=1386&apply_coupon=bonusguide1386](http://successgoose.com/cart/?fill_card=1386&apply_coupon=bonusguide1386)
 * and still redirect to
    [http://successgoose.com/cart/?add-to-cart=1386](http://successgoose.com/cart/?add-to-cart=1386)
 * How does that solves the issue?
    Also, this redirect slows the page load a lot
   which is another problem.
 * Thanks,
 * Tom
 *  Plugin Author [Soft79](https://wordpress.org/support/users/josk79/)
 * (@josk79)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-message-501/#post-7033143)
 * Just try, the fill_cart inhibits adding items that are already in the cart. The
   redirect won´t go to add-to-cart=1386, but fill_cart=1386
 * So you will have to use this link: [http://successgoose.com/cart/?fill_cart=1386&apply_coupon=bonusguide1386](http://successgoose.com/cart/?fill_cart=1386&apply_coupon=bonusguide1386)
 * I will look into the issue end of this month.
 *  Thread Starter [nichelead](https://wordpress.org/support/users/nichelead/)
 * (@nichelead)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/error-message-501/#post-7033182)
 * Thanks.
 * It solved the error message as you said.
    It now redirect from [http://successgoose.com/cart/?fill_cart=1386&apply_coupon=bonusguide1386](http://successgoose.com/cart/?fill_cart=1386&apply_coupon=bonusguide1386)
   to [http://successgoose.com/cart/](http://successgoose.com/cart/)
 * I hope you can find out why this redirect happens and how to eliminate it, so
   that it will not slow down the page load.
 * Again, thanks for now and all the best 🙂
 * Tom
 *  [JohnCleary](https://wordpress.org/support/users/johncleary/)
 * (@johncleary)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-message-501/#post-7033303)
 * Hi.
 * I’m having the issue where more than one item is added to the basket/cart when
   the coupon URL is used:
 * [https://johnclearyphotography.co.uk/basket?add-to-cart=4327&apply_coupon=katcle50](https://johnclearyphotography.co.uk/basket?add-to-cart=4327&apply_coupon=katcle50)
 * I’ve tried changing the URL to [https://johnclearyphotography.co.uk/basket?fill_cart=4327&apply_coupon=katcle50](https://johnclearyphotography.co.uk/basket?fill_cart=4327&apply_coupon=katcle50)
 * But this adds nothing to the cart…..am I doing something wrong?
 * John.
 *  Plugin Author [Soft79](https://wordpress.org/support/users/josk79/)
 * (@josk79)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/error-message-501/#post-7033306)
 * John,
 * you would need the [Cart links for WooCommerce-plugin](https://nl.wordpress.org/plugins/soft79-cart-links-for-woocommerce/)
   plugin for that.
 * All,
 * The add-to-cart problem should be fixed in WooCommerce Extended Coupon Features
   2.3.2. Although I suggest using the fill_cart URL using the [Cart links for WooCommerce-plugin](https://nl.wordpress.org/plugins/soft79-cart-links-for-woocommerce/)
   as it prevents double adding products when user clicks the url twice.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error Message’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-auto-added-coupons/assets/icon-256x256.png?rev
   =3357537)
 * [Extended Coupon Features for WooCommerce FREE](https://wordpress.org/plugins/woocommerce-auto-added-coupons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-auto-added-coupons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-auto-added-coupons/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-auto-added-coupons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-auto-added-coupons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-auto-added-coupons/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Soft79](https://wordpress.org/support/users/josk79/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/error-message-501/#post-7033306)
 * Status: resolved