Almost one year late, but this question might still get visitors:
You trigger the click, but the button doesn’t have enough time to become enabled, so that is why, by the time you click the second time the button becomes enabled. Remove the “disabled” propriety before triggering the click:
<script>
jQuery('div.woocommerce').on('change', '.qty', function(){
jQuery("[name="update_cart"]").prop("disabled", false);
jQuery("[name="update_cart"]").trigger("click");
});
</script>
Related Posts:
- What’s the difference between WC() and $woocommerce
- How to get values from woocommerce admin input fields?
- How to show “Previous Category” and “Next Category” in categories archieve template [closed]
- Add product attribute to Woocommerce’s blocks in Gutenberg
- The correct way to override WooCommerce product gallery from a plugin [closed]
- Is is safe to edit language files from wp-content/languages/plugins/woocommerce-ro_RO?
- Display WooCommerce only in stock sizes product attribute on shop page
- Remove “Choose An Option” on Product Variation & Auto Select Instead
- check if current url/page equals checkout page [closed]
- Mini cart in header using divi is not getting updated on changing the cart items count:
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Woocommerce Product Price Inserted programmatically doesn’t get displayed In Single Product Page
- How to Order by random on a SQL query
- Move add to cart in Woocommerce
- Separate Categories from WC Product loop when display type is set to both on the category
- Exclude products with a stock lower than the low stock threshold from the shop loop [closed]
- Remove Order List Row Link in WooCommerce Admin?
- How do I hide out of stock products from homepage but not from catalog?
- Woocommerce order processing email subject not changing
- Different translations for the same plugin inside a multisite
- Woocommerce multiple taxes with same rates adds as different values.
- wp_customize – detect post type to show/hide customizer options
- WooCommerce – Display nested list of all subcategories on archive-product.php
- Woocommerce Porto Theme Hide Selected Categroy for Breadcrumbs
- Woocommerce REST API – updating an order changes custom tax calculations
- How to list all WC products by their attributes values?
- Showing the WordPress standard text area on a Woocommerce Single Product Page?
- Woocommerce custom search
- How to be able to edit custom address fields in WooCommerce admin?
- WordPress WooCommerce: How to allow only specified customers to pay by check? [closed]
- Make a Read More toggle in the_content on single-product in Woocoomerce
- WooCommerce Base Page Featured Image Custom Theme
- Adding extra email address who receives email like admin – woocommerce
- Is it possible to merge Woocommerce attributes? [closed]
- WordPress Comment Box on woocommerce product page [closed]
- Can’t remove woocommerce sidebar
- Woocommerce Slow Queries
- How to display the percentage of the applied tax in woocommerce [closed]
- Remove link from product attributes in tab “additional information” [closed]
- Merging updated dev site with live site while keeping orders correct
- Disabling shopping basket in WooCommerce [closed]
- Should I use docker in wordpress production?
- Dynamic Product Variation in WooCommerce
- Get decimal from product price with Mysql
- Woocommerce – Shop page repeat the products with filters
- Multiple Schema.org markups on a single product page
- Woocommerce – Adding row to cart table
- Hide a product with a certain tag from product-category
- Custom rewrite for product variation not working
- Block Disposable Emails on Woocommerce Registration
- Can’t Change WooCommerce Default Language to Spanish (Mexico)
- Adding of custom cart item data via Ajax Add to Cart
- Woocommerce – Display stock quantity per variation
- WooCommerce show a variation both in check boxes and in a list
- Apply a custom WooCommerce order status based on user role
- Woocommerce product name [closed]
- How to Remove Active css from woocommerce variation?
- How can i get the code of Shop Page Woocommerce?
- “Products” Title changed
- Password protected selling / selling one product at the time
- Add shortcode to show woocommerce shipping class name on product template
- SOLVED – add_action() for $product->get_date_created
- pass a woocommerce product name to contact form7?
- Custom Tab in Coupons causes “the link you followed has expired” error
- Search doesn’t return anything
- How to override WooCommerce template files
- Mirror Website Content Across Multiple Subdomains
- Archive Meta on Product Post Type
- Using built-in validation pop-up for custom fields
- How to display 2 products per row for Mobile using WooCommerce?
- Loading different header and footer in woocommerce templates (AMP)
- set up existent product blocked in woocommerce
- How to get WordPress to respond to a GET request at the end of a Woo product page
- WordPress/Woocommerce Classes and adding new properties
- Customize categroy catalog page
- Create post when new woocommerce order is created [closed]
- Clickable product image with hover effect
- Updating WooCommerce product field when product author updates profile field
- email address non required
- How to get selected variation for a product in WooCommerce Cart Page?
- WooCommerce custom checkbox $_POST issue on checkout
- Removing storefront-sorting div from the before section of Shop page
- (WooCommerce) Conflict with template – Can’t load payment methods
- Hook woocommerce price in backend order edition
- How to programatically create a WooCommerce downloadable product?
- Custom sender email address for specific WooCommerce product
- Stock QTY gets negative after order
- Woocommerce REST API authentication with server password [closed]
- WordPress Woocommerce – Checkout – Error 405: Unable to create order. Please try again [closed]
- Change WooCommerce registration form/way?
- Fastest way to create product variations in WooCommerce?
- Creating a shortcode with a variable (Woocommerce)?
- dakon show vender address on checkout page
- Adding total_sales to Grouped Product within WooCommerce
- acf_form() – “On Update” action [closed]
- Trying to insert a div ID link into Woocommerce shortcode Pagination
- Remove login fields from /customer-account page [closed]
- How to get all child categories of current parent category in product detail page of woocommerce? [closed]
- Mandatory Fields For WooCommerce Products Before Publishing
- In woo commerce , Products change back to “Draft” from “published” automatically after it is purchased on the woo commerce shop page.Theme WP rentals [closed]