Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Free Product coupon still charging for free product
- This topic has 5 replies, 2 voices, and was last updated 6 years, 4 months ago by Soft79.
-
AuthorPosts
-
November 24, 2016 at 11:04 pm #884GavinParticipant
Hi,
WP version: 4.6.1
WC version: 2.6.8
Plugin version: 2.3.7.2We 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%3dY6DSteps 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 £25You 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
GavinNovember 25, 2016 at 7:56 pm #887Soft79KeymasterDo you have a plugin installed that changes prices of products? Please let me know what WC related plugins you are using.
November 28, 2016 at 12:17 pm #902GavinParticipantHi,
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.December 1, 2016 at 11:42 am #911Soft79KeymasterCould 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?
January 25, 2017 at 12:57 pm #994GavinParticipantHi,
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
GavinJanuary 29, 2017 at 6:31 pm #1012Soft79KeymasterIf you can send me the conflicting plugin to admin at soft79.nl I will take a look.
-
AuthorPosts
- You must be logged in to reply to this topic.