Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Plugin having JS conflict
- This topic has 22 replies, 2 voices, and was last updated 2 years, 11 months ago by Soft79.
-
AuthorPosts
-
June 15, 2020 at 6:09 am #15808suparagroupParticipant
Hi,
I am using extended coupon pro plugin in my website to provide free products. In backend I have done following settings
1) to automatically apply the coupon which is buy2get1
2) Not allowing user to remove this coupon
3) Set minimum criteria == 2. So once user adds 2 quantity of any product, this is applied automatically.Issue:
1) I am not able to select variation ( in case of variable product) of free product offered. To replicate the same you can add 2 quantity of any product in the cart and do checkout. On checkout page, option to choose free product will be displayed. Here I am not able to select the variation of product. Seems like add-to-cart-variation.js not working here with your code. It works very well with simple product or if I set default variation of a product from backend. Default variation gets selected automatically.
2) Another bug is When I am using the following setting:
The amount of free products is multiplied every time the minimum spend, subtotal or quantity is reachedSo I am doing buy2get, once user adds 4 quantity of a product its free product will be 2 in quantity but plugin add 4 free product to cart instead of 2 ( which is same as paid products ).
*************
Let me know where I am doing wrong. Hoping for quick reply.
June 15, 2020 at 10:23 am #15810Soft79Keymaster1) The colour swatch plugin doesn’t work on the checkout page. Possibly a javascript needs to be loaded, please contact the author.
There are multiple javascript files not being loaded because your site tries to access ‘http://’
It’s also hardly possible to add 11239 to the cart manually. Is every variation in stock?
2) How can I reproduce this?
June 19, 2020 at 1:46 am #15844suparagroupParticipantI am not sure if my reply is being submited, I do not see it here 🙁
June 19, 2020 at 1:51 am #15853suparagroupParticipantThis system is kinda buggy, I am trying to submit my reply and it not letting me do it, it does not show any kind of error also! I have to try and reply in chunks!
June 19, 2020 at 2:03 am #15863suparagroupParticipant3) I got another problem, I want to remove the filter (
woocommerce_cart_totals_coupon_label
) used in WJECF_Autocoupon class. But default ways to remove it is not working. Let me know the way to remove this filter.
You are displaying a coupon description instead of coupon code along with coupon text. I need to have the default WooCommerce coupon label text.June 19, 2020 at 2:37 am #15875suparagroupParticipantThe colour swatch plugin doesn’t work on the checkout page. Possibly a JS needs to be loaded, please contact the author.
June 19, 2020 at 2:38 am #15878suparagroupParticipantThere are multiple javascript files not being loaded because your site tries to access http://’
June 19, 2020 at 2:38 am #15879suparagroupParticipantIt’s also hardly possible to add 11239 to the cart manually. Is every variation in stock?
NO, All variations are not in stock. That’s what I need to achieve along with variation selection. Out of stock variation would be grey out like product page. You can see here:June 19, 2020 at 2:39 am #15881suparagroupParticipanthttps://gqsize.zapbase.com/product/gqcolor-short/ I think to add to cart variation js is not working here on the checkout page. Can you provide me with further information to me?
June 19, 2020 at 2:39 am #15882suparagroupParticipantHow can I reproduce this?
June 19, 2020 at 2:40 am #15885suparagroupParticipantYou can reproduce by doing the following settings for the coupon in the backend:
June 19, 2020 at 2:42 am #15890suparagroupParticipantJune 19, 2020 at 2:45 am #15891suparagroupParticipantJune 19, 2020 at 2:46 am #15892suparagroupParticipantAfter doing this add 4 quantity of a product to cart, the free product should be 2 in quantity because we have set minimum qty should be 2 to get a free product. But we are getting 4 free products because we added 4 quantity of it to cart.
June 19, 2020 at 10:38 am #15899Soft79KeymasterIt would be better to select the variations from the Edit Coupon Page instead of the variable (parent) products. That way the out-of-stock items will automatically be hidden and you don’t have issues with the color swatch plugin.
About the BOGO: Must BOGO apply to one product or different products?
If for one product: Uncheck BOGO and fill in the product in the ‘Free products’ and ‘Usage restrictions > Products’ boxes.
If for multiple products, you need to use this filter:
add_filter( 'wjecf_bogo_product_amount_for_coupon', function( $amount, $coupon ) { if ( strcasecmp( $coupon->get_code(), 'COUPON_CODE_HERE' ) === 0 ) { $amount = floor($amount / 2); } return $amount; }, 10, 2 );
-
AuthorPosts
- You must be logged in to reply to this topic.