Viewing 15 replies - 1 through 15 (of 16 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Hi TanyaMasse,

    No matter how much testing is done before a release, there are bound to be some issues with all of the different variables out there such as different themes, plugins, and web hosts.

    That said, are you sure all of the buttons aren’t working on the cart page? The “proceed to checkout” button hasn’t been altered. Some of the other buttons have been changed though to include ajax update to avoid page refreshes: https://woocommerce.wordpress.com/2016/04/19/cart-ajax/

    I can try to help if you can provide us with some more details: https://wordpress.org/support/topic/before-posting-gather-the-following-details

    Thread Starter TanyaMasse

    (@tanyamasse)

    Oh I completely understand that and empathize with the developers. I just can’t afford any downtime at the moment and I spent way too much time trying to figure out how to fix other issues after this update, just reading other threads, and just when I thought I had everything fixed, a customer emailed me saying she couldn’t get to the checkout. Then of course I tested it and I can assure you the buttons were not working.

    So I’m going to lay low with the previous version that works. Until some further updates are made by Woocommerce and my theme.

    Thank you for responding.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Hey TanyaMasse,

    If you have the chance to update again or can do so on a staging / test site, you should see some console errors in chrome on the cart page. You just need to right click and choose “inspect”, then go to the console tab: http://cld.wthms.co/1fdYS/ITYiLInv. There you should see some javascript errors in red, the first of which will likely point to the theme or a plugin’s javascript file.

    MS

    (@mohsin789)

    Same issue occurred

    Update Cart
    Proceed to Checkout buttons do not work.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Mohsin without providing more details or starting your own thread with more details/link/system status report, you’re not helping nor adding value to this thread. Please gather than information and post your own if you want help.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    TanyaMasse would be useful to replicate it because if no-one else reports the issue it will never be patched. The proceed button I should add has not been changed and is not javascript powered. I don’t see anything in the code itself which would break the form submission. I’d expect it is some form of theme conflict.

    Had same issue. Not working UPDATE CART button. I made it working with fix in “cart.min.js” file. Changed disabled property to enabled.

    $( ‘div.woocommerce > form input[name=”update_cart”]’ ).prop( ‘enabled’, true);

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    aivaraskar it’s supposed to be disabled until you make a change to the items. Why have a button which does nothing :)?

    Somehow it do not react that I change quantity of a product and still is inactive. Also after cart update quantity buttons are missing (minus and plus).

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Minus and plus will be added by your theme via a script. They may not have made this compatible.

    How do I reload script that is already loaded by theme?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    You cannot; they need to listen for cart update events and retrigger their script.

    For me only the Proceed To Checkout button doesn’t work after the update. No errors in Developer Tools. When you click it:

    <input type="submit" class="checkout-button button alt wc-forward" name="proceed" value="Proceed to Checkout" clicked="true">

    Clicked goes to “true” and it flashes in Developer Tools every time you click. However it’s not going to the checkout page…

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Example links would help – post your own thread.

    I believe the majority of these issues are a result of “cart.js” hooking into classes that are different from the theme.

    For example in my theme I converted the cart page to use <div> instead of <table>. With the new update WooCommerce hooks into ‘table.shop_table’ (container, then class) instead of just the class (or ID) ‘shop.table’.

    My solution:

    1. Move cart.js to your theme using these instructions
    2. Find & replace ‘table.shop_table’ with ‘div.shop_table’
    3. Save & Minimize

    I have no idea why WooCommerce thinks it’s a good idea to hook into the container instead of the class or ID as that leads to theme breaks – maybe someone can school me otherwise?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Buttons aren't working on Cart Page’ is closed to new replies.