Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #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

    #1372709

    Hi 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,
    Rikard

    #1372710

    Hi Rikard,

    I updated the theme before submitting the ticket and no luck!

    Thanks,

    Garrett

    #1372886

    Hi,

    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,
    Ismael

    #1372947

    Hi 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

    #1373054

    Hi,

    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,
    Ismael

    #1373060

    I 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

    #1373096

    Please 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.2

    See private data

    • This reply was modified 2 years, 1 month ago by thinkjarvis.
    #1373106

    Hi 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

    #1373120

    Thanks ddandreo/

    The full problem below unless you have anything else to add.

    1.Add item to basket
    2.View basket
    3.Change the shipping method

    4.The plus and minus buttons stop working and you can only change the quantity by typing in a value.

    #1373136

    Yes, that is what I am experiencing as well!

    #1373457

    Hi,

    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,
    Ismael

    #1373472

    @Ismael

    I 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.

    #1373473

    Workaround 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;
    }
    
    #1373530

    Hi 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!

    #1373608

    Hi,

    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,
    Ismael

    #1373650

    Hi 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

    #1373651

    @ismael,

    Happy to help mate.Post up here if you have a solution for us to test.

    #1374114

    Just checking this has made it only the bug fix request list.

    #1374120

    Hi thinkjarvis,

    We have reported the issue to our devs. We will post here once we have a solution :)

    Best regards,
    Yigit

    #1374121

    Cheers 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.

    #1374185

    Hi,

    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 2 years ago by Yigit.
    #1374192

    Thanks 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.

Viewing 23 posts - 1 through 23 (of 23 total)
  • You must be logged in to reply to this topic.