Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Multiple free products added to cart
- This topic has 3 replies, 2 voices, and was last updated 8 years, 10 months ago by Soft79.
- AuthorPosts
- October 31, 2017 at 5:59 pm #2087webaruhazbirodalomParticipant
Hi,
we have some problems with the plugin.
The campaign I’m trying to set is: buy 2 get 1 free from the same item, auto applied and multiplied, so if someone buys 10, gets 5 free.Now if 2 random items are added to cart,
– they get free items from those random items,
– they get the wrong amount (e.g. buy 3, get 3 free).Here are pictures of the cart and the settings. I can get you access to our staging environment for the bugfix.



October 31, 2017 at 11:18 pm #2088Soft79KeymasterDefault behaviour for BOGO + multiplication is like that. You can use a filter to change the amount:
add_filter( 'wjecf_bogo_product_amount_for_coupon', 'wjecf_bogo_product_amount_for_coupon', 10, 2 ); function wjecf_bogo_product_amount_for_coupon( $amount, $coupon ) { if ( $coupon->code == 'COUPON_CODE_HERE' ) { $amount = intval( $amount / 2 ); } return $amount; }November 1, 2017 at 8:59 am #2090webaruhazbirodalomParticipantWithout adding any code how can I get this done:
If the visitor adds 2 specific items to the cart, gets one free, multiplied, so if 4 added, get 2 free?
November 1, 2017 at 9:07 am #2091Soft79KeymasterNot possible. You can use this alternative:
Discount: 100%
Products: the product(s) this offer should apply to
Minimum qty of matching products: 3
Limit discount to: Every nth itemThis will make every 3rd item free
- AuthorPosts
- You must be logged in to reply to this topic.