Repository Forums Support WooCommerce Extended Coupon Features PRO Free Product coupon still charging for free product

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #884
    Gavin
    Participant

    Hi,

    WP version: 4.6.1
    WC version: 2.6.8
    Plugin version: 2.3.7.2

    We are having trouble with a Free Product coupon not applying correctly.

    It’s set up to auto apply itself silently when the cart reaches £50 or more. On the cart page it shows as being applied and the totals are right. You move to the check out page and the product is still there and still says it’s free but the order total now includes the cost of the free product.

    We have it on a staging area if you want to take a look yourself. The details are:

    URL: http://torgaming.staging.wpengine.com/
    Access Username: torgaming
    Access Password: Dye%3dY6D

    Steps to Reproduce:

    1) Navigate to http://torgaming.staging.wpengine.com/product/teeth-of-thamos/ and add it to the store
    2) Navigate to http://torgaming.staging.wpengine.com/cart/ and observe that no free product has been added yet
    3) Increase quantity of the added product to 3 and update cart
    4) Observe the Free product (sitting Chronicler) has been added and totals are correct.
    5) Navigate to the check out and observe the products are correct but the total is now £25 more – the free product has a product price of £25

    You can also cause the free products price to be added on the cart if you change the shipping options so it recalculates.

    Any ideas?

    Thanks
    Gavin

    #887
    Soft79
    Keymaster

    Do you have a plugin installed that changes prices of products? Please let me know what WC related plugins you are using.

    #902
    Gavin
    Participant

    Hi,

    Sorry for the delay in responding.

    I have tracked the issue down to a plugin we use to allow pre-ordering on products. It’s called ‘WooCommerce Pre-sale, Time offer & Expiring System’ and can be found here: https://codecanyon.net/item/woocommerce-presale-time-offer-expiring-system/13335433

    It’s a purchasable plugin, much like yours, so not sure how we go about getting this sorted…

    I’m still within support period with that plugin as I am with this one too so not sure if you and the other developer need to solve the issue together etc.

    Thanks
    Gavin.

    #911
    Soft79
    Keymaster

    Could you try replacing the following lines in includes/wjecf-pro-free-products.php (line 31,32) of my plugin?

    add_filter( 'woocommerce_add_cart_item', array( $this, 'filter_woocommerce_add_cart_item'), 90, 6); // overwrite values (price 0.00) if it's a free products
    add_filter( 'woocommerce_get_cart_item_from_session', array( $this, 'filter_woocommerce_get_cart_item_from_session' ), 90, 3); // overwrite values (price 0.00) if it's a free product

    with

    add_filter( 'woocommerce_add_cart_item', array( $this, 'filter_woocommerce_add_cart_item'), 99999, 6); // overwrite values (price 0.00) if it's a free products
    add_filter( 'woocommerce_get_cart_item_from_session', array( $this, 'filter_woocommerce_get_cart_item_from_session' ), 99999, 3); // overwrite values (price 0.00) if it's a free product

    does that help?

    #994
    Gavin
    Participant

    Hi,

    Again, sorry for the delay in responding. This is still an issue. I have been testing it today with these changes and the latest version of the plugin – Version 2.3.7.4

    Thanks
    Gavin

    #1012
    Soft79
    Keymaster

    If you can send me the conflicting plugin to admin at soft79.nl I will take a look.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.