June 3, 2016 at 8:07 am #497
We use WooCommerce Extended Coupon Features PRO to display a range of products after typing in a coupon. All is working fine but to see ‘Select free products’ I need to manually reload the checkout page..
Any idea what might be the cause of it? I tried deactivating plugins, no luck..
Any help is much appreciated!
JanJune 3, 2016 at 8:30 am #498
Please send me url and instructions on how to reproduce.June 3, 2016 at 8:57 am #503
The site is not public yet, use these temporary login details:
*** PRIVATE DETAILS HIDDEN ***
1. After logging in, go to the checkout (*** PRIVATE DETAILS HIDDEN ***) and enter the coupon.
2. Message will pop up confirming validity of the coupon.
3. Refresh the whole page and now you will see the whole “wjecf-select-free-products”
4. It is the same way backwards – i.e. remove coupon and you still see free products too choose from. Refreshing the page will fix that..
JanJune 3, 2016 at 12:57 pm #506
BTW, should you need admin access, let me know – I will update the testing account.
JanJune 3, 2016 at 2:01 pm #507
Not needed. It’s an issue with WC Ajax. Will build a fix but can take a week or so.
Is disabling ajax an option for now?June 3, 2016 at 2:34 pm #508
Thanks for the update. Could I disable ajax selectively, only for coupons?
I would need pointers since I am able find my way around code – but only just ;]
I need ajax for the rest of the checkout (mainly shipping options) so a way of forcing a page refresh just for coupons would be acceptable.
JanJune 3, 2016 at 7:42 pm #509
Find the following line in woocommerce/assets/js/frontend/checkout.min.js:
$( 'form.checkout_coupon' ).hide().submit( this.submit );
.submit( this.submit )part enables AJAX for the apply coupon form. So you could remove that part (WARNING: core change!!!) or find some other workaround for it.June 3, 2016 at 9:16 pm #510
Good evening and thanks for the suggestion – I tried deleting the part of the code but unfortunately that breaks all AJAX actions on that page..
I will probably have to hold out for the mentioned fix. Do you think that it could be ready next Friday?
Thank you for your swift reactions and have a nice weekend!
JanJune 3, 2016 at 9:28 pm #511
Dont know if I can fix it before fridayJune 7, 2016 at 8:21 am #512
Hello, so I gave the workaround another try and having deleted the part of the code plus the “.hide()” preceding it [.hide().submit(this.submit)] entering the coupon now works with a page refresh.
Nonetheless removing the coupon does not work – not even after manually refreshing the page.
This might (have to) be acceptable for a few days but removing coupon should be possible. Do you have any estimates for the finalisation of the regular fix?
JanJune 7, 2016 at 8:32 am #513
I sent you a (preliminary) fix by email, maybe it’s in the spam folder because of the ZIP attachment? Otherwise, please send me an email address (using the contact form) to which I can send the file.June 7, 2016 at 8:56 am #514
That’s great news – will definitely try the fix. I’ve just sent you the email address through the contact form.
JanJune 7, 2016 at 9:03 am #515
Sent, have you received it this time?June 7, 2016 at 9:22 am #517
Yup, thanks, arrived this time. I will deactivate & delete the plugin, install the new one, revert checkout.min.js to its original form and test the coupon behaviour.
Will let you know how it went!
JanJune 9, 2016 at 3:19 pm #518
Hello, I tried the preliminary update and it did not work. Reverting to the previous version proved quite the headeache..
Since nothing worked on the checkout page I decided to move the entire coupon submitting part to the Cart page. Not an ideal solution but at least adding [and removing(!)] coupons works here.
There is one glitch/misbehaviour in Cart as well, though:
1. When you select one of the free gifts you have to click on “Update cart” only then is the Free gift really selected..
2. If you just select the free gift and go to Checkout, submitting your order in Checkout will show an error “You have to choose your Free gift”..
So, the solution would be: Clicking on a free gift in Cart refreshes the Cart page and adds the gift to your Order.
Is that behaviour possible to invoke?
- You must be logged in to reply to this topic.