-
AuthorPosts
-
November 15, 2022 at 6:40 pm #1372696
Hi,
There seems to be some sort of JS conflict/glitch with the quantity plus and minus buttons. Any time a shipping method is changed on the cart, the buttons no longer work. See here for video: https://www.screencast.com/t/lHhgUbyhvJee
This is happening in other areas for me as well and causing some issues.
Thanks,
Garrett
November 15, 2022 at 8:30 pm #1372709Hi Garrett,
Could you try updating the theme to the latest version (5.2.1) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.
Best regards,
RikardNovember 15, 2022 at 8:32 pm #1372710Hi Rikard,
I updated the theme before submitting the ticket and no luck!
Thanks,
Garrett
November 17, 2022 at 5:32 am #1372886Hi,
Thank you for the update.
Did you remove the shipping boxes from the Cart Totals section? We tried to check the issue but the checkboxes are missing from the cart totals and has been replaced with the calculate shipping widget. Is there a staging or development version of the site?
Best regards,
IsmaelNovember 17, 2022 at 1:57 pm #1372947Hi Ismael,
I changed the WooCommerce setting to not show a price until the shipping address is entered so you need to enter an address first to get the radio options and then you can troubleshoot it. Can you try with United States > Massachusetts > Medford (02155)?
Thanks,
Garrett
November 18, 2022 at 10:23 am #1373054Hi,
Thank you for the info.
We can now reproduce the issue, but we are not yet sure what is causing it. We found no errors in the browser console. Is it working properly when you disable the ShiftNav plugin?
Best regards,
IsmaelNovember 18, 2022 at 12:13 pm #1373060I too have this same issue and can replicate it on the site in the private link.
You cannot change the basket quantities after changing the shipping method on the basket screen.
Please can you advise? I am running WP 6.1.1 and Enfold 5.2.1
November 18, 2022 at 2:39 pm #1373096Please can this be added for urgent investigation? As it will affect sales on WooCommerce Sites.
This is not a new issue
It also affect Enfold 5.1.2 and WooCommerce 6.8.2See private data
- This reply was modified 2 years ago by thinkjarvis.
November 18, 2022 at 3:35 pm #1373106Hi Ismael,
I tested deactivating Shiftnav and all plugins on the website and it is still happening when I do that. The issue is definitely with the Enfold theme and not a plugin conflict.
Thanks,
Garrett
November 18, 2022 at 4:05 pm #1373120Thanks ddandreo/
The full problem below unless you have anything else to add.
1.Add item to basket
2.View basket
3.Change the shipping method4.The plus and minus buttons stop working and you can only change the quantity by typing in a value.
November 18, 2022 at 5:58 pm #1373136Yes, that is what I am experiencing as well!
November 22, 2022 at 7:09 am #1373457Hi,
Sorry for the delay. We are still not sure what is causing the issue, but it seems to only happen after the toggle_shipping function in the plugins\woocommerce\assets\js\frontend\cart.js file ran, which affects the quantity fields for some reason. Adding this script in the functions.php file might help to reactivate the quantity buttons after the shipping state changed.
function av_custom_inline_script() { wp_add_inline_script( 'jquery', " (function($) { $( document.body ).on( 'country_to_state_changed', function() { avia_apply_quant_btn(); } ); })(jQuery); " ); } add_action( 'wp_enqueue_scripts', 'av_custom_inline_script' );
Best regards,
IsmaelNovember 22, 2022 at 11:07 am #1373472I can confirm that this script does not work.
As a workaround is it possible to restore the default spinbox for quantity? I can simply hide the two buttons temporarily but if there is a way to enable the default Spinbox this should prevent the problem.
November 22, 2022 at 11:29 am #1373473Workaround to enable Spinbox defaults:
Place this into Quick CSS to add the default Spinbox controls to the basket page only and hide the JS plus/minus buttons.
This is WooCommerce default setting for the quantity field. If you remove .product-quantity from the css below and change it to .quantity it applies to the product pages as well.
/* For Chrome and Safari */ .product-quantity input[type="number"]::-webkit-outer-spin-button, .product-quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: button !important; } /* For Firefox */ .product-quantity input[type="number"] { -moz-appearance: button !important; width: 75px !important; } .product-quantity input[type="button"] { display:none !important; } table div.quantity { width: 75px !important; }
- This reply was modified 1 year, 12 months ago by thinkjarvis.
- This reply was modified 1 year, 12 months ago by thinkjarvis.
November 22, 2022 at 3:23 pm #1373530Hi Ismael,
The script provided does not seem to work. I also noticed the issue on single product pages when using WooCommerce extensions for an alternative cart. I was using this plugin: https://barn2.com/wordpress-plugins/woocommerce-fast-cart/. However, when the cart is loaded on the page the buttons do not work on the single product page either. It seems like when some sort of JS is fired on the page it kills the Enfold product quantity buttons. Having the option to use the default quantity picker would be great!
November 23, 2022 at 7:55 am #1373608Hi,
Thank you for the confirmation.
We may need to access the site in order to test the script further. Please provide the login details in the private field.
To disable the custom quantity buttons, please edit the enfold\config-woocommerce\woocommerce-mod.js file and remove this code around line 94.
avia_apply_quant_btn();
Make sure that file compression is disabled or toggled. You can then adjust the style of the input field using this css code.
#top div .quantity input.qty { height: 43px; width: 103px; display: inline; padding: 0px 5px 0px; line-height: 41px; vertical-align: middle; margin: 0; text-align: center; }
Best regards,
IsmaelNovember 23, 2022 at 2:49 pm #1373650Hi Ismael,
I commented out that line, but when you change the shipping method the buttons re-appear. I used the CSS provided above by Thinkjarvis to hide the plus and minus signs and also add the webkit plus/minus signs to the input field as a workaround.
Can you let me know when you have another script to test?
Thanks,
Garrett
November 23, 2022 at 3:03 pm #1373651Happy to help mate.Post up here if you have a solution for us to test.
November 28, 2022 at 12:42 pm #1374114Just checking this has made it only the bug fix request list.
November 28, 2022 at 12:57 pm #1374120Hi thinkjarvis,
We have reported the issue to our devs. We will post here once we have a solution :)
Best regards,
YigitNovember 28, 2022 at 1:01 pm #1374121Cheers Yigit,
The workaround I provided above to hide the buttons works for now. I have applied this to all of my WooCommerce sites so the picker works.
November 28, 2022 at 4:42 pm #1374185Hi,
For your information, our devs have fixed the issue and it will be included in upcoming version :)
Edit: If you would like to apply the fix on your installation before the update, please go to /enfold/config-woocommerce/ folder in Appearance > Editor or via FTP and update woocommerce-mod.min.js and woocommerce-mod.js files with these ones – https://github.com/KriesiMedia/enfold-library/tree/master/temp_fixes/Enfold_5_2_1/config-woocommerce
Best regards,
Yigit- This reply was modified 1 year, 11 months ago by Yigit.
November 28, 2022 at 5:27 pm #1374192Thanks Yigit,
I’ll wait for the release now as I have put my css workaround across the server.This is one of those weird problems that no one has reported until now. I dont know how long this has been an issue because in order to troubleshoot it you have to take specific actions in the basket that most people wouldnt test – including me! Thank you for addressing the issue. It definitely pre-dates WP6 and Enfold 5.1.
Hopefully this thread will be useful to anyone else on older versions as well.
- This reply was modified 1 year, 11 months ago by thinkjarvis.
-
AuthorPosts
- You must be logged in to reply to this topic.