Here’s the fix…
Change the line in \inc\woocommerce\template-tags-categories.php which reads:
$product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button ajax_add_to_cart' : '',
to:
$product->is_purchasable() && $product->is_in_stock() && $product->is_type( 'simple' ) ? 'add_to_cart_button ajax_add_to_cart' : '',
Related Posts:
- WooCommerce: Translation lost on AJAX call in Checkout page [closed]
- Woocommerce Ajax Add cart not working
- Woocommerce update product price via AJAX
- add Additional class to woocommerce cart-contents link
- Display SOLDOUT text in Dropdowns of Variable Product in WooCommerce [closed]
- WooCommerce AJAX cross domain add to cart
- Facebook Pixel + WooCommerce + AJAX = Confusion
- jQuery’s .on() method combined with the submit event
- Why use admin-ajax.php and how does it work?
- Why is die() used at the end of function that handles an Ajax request?
- Making my AJAX powered WordPress Crawlable
- Using Backbone with the WordPress AJAX API
- WordPress Ajax Data Security
- Why is a 500 error generated by admin-ajax.php not going into the Apache error log?
- admin-ajax.php doesn’t work when using POST data and Axios
- Custom Form with Ajax
- How to process ajax requests correctly using ajax plugins
- How do I hook an Ajax request into a PHP callback?
- Gutenberg – how to correctly perform ajax request on backend
- get_template_part execute with ajax
- How to add WordPress nonces to ajax request
- How declare Ajax functions ussing SHORTINIT
- Load custom formatted comment with AJAX: reply link isn’t rendered?
- Is there a way to optimize function that is used for returning data in an ajax-call?
- WP REST API route request explain
- WooCommerce add_to_cart() with custom price [closed]
- Ajax returning correct data BUT at wrong place
- get_posts empty when called via Ajax
- WP-API and Basic Auth returning 403 on POST but not GET
- Is there a hook to process a backbone restful PUT request inside wordpress?
- Check if username exist with AJAX
- How to localized one js file for different actions?
- Async Loading of Custom Posts
- Call javascript function when category was added via ajax
- How to add WP API and JS featured image attachment
- Using AJAX with Forms
- wordpress and add actions to button by coding
- Get Author Post on author.php with AJAX
- Can’t publish post using ajax
- Ajax in plugin settings page returns 400 Bad Request
- woocommerce_package_rates not fired everytime
- Problem with custom plugin using AJAX to pull info from php file
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- WooCommerce update_shipping_method ajax call wipes shipping method set on non-checkout page [closed]
- Admin-Ajax Error
- Customizer AJAX using buttons
- WordPress Ajaxify Problem with Scroll-to [closed]
- infinite-scroll for 2 fixed height containers
- Attach time/date stamp on add_post_meta
- “Loadmore” button is not working in buddypress [closed]
- infinite scroll not working when logged out
- Right way to include blog-header.php?
- I can’t get a return value from Ajax
- WordPress AJAX return 0 – My case
- Ajax call in wordpress not working for subscriber user
- Upload data from weather station to WordPress Website
- ajax request in wordpress
- Ajax call in WordPress – unable to display the data on the page
- How to reuse get_template_part() containing a simple loop to work with AJAX correctly?
- Need help with ajax
- Using nonce when loading posts with AJAX
- What WP-API authentication method should I use to interact with anonymous / not-logged visitors?
- How to call ajax in plugin file
- Tabbed feeds with ajax vs. without on homepage [closed]
- Get title and featured image using Ajax
- javascript onClick update user_meta from jquery.ajax
- How to ignore WP_ERROR caused by “get_the_excerpt” method in an AJAX call?
- WP_Query is not received in Ajax
- Call product search from custom hook
- woocommerce deposit Form with AJAX and shortcode won’t update but add to previous output
- “add to cart” links css class “ajax_add_to_cart” doesn’t show in woocommerce in widget sidebar
- How do I mitigate replay attacks when talking about actions that shouldn’t happen twice?
- Updating Jquery object with newly created elements after AJAX call
- Not getting ajax success response on insert/update row to database
- Wp admin ajax load more
- wordpress ajax search posts
- enqueue style using admin-ajax.php
- How to safely pass post_id and user_id via AJAX to the backend (prevent user from changing it via JS)?
- Can’t get next post info with ajax
- add_filter not works in ajax
- How to inject data content from external json into a modal, using UIkit?
- Ajax by worpdress affects called jquery inside template file
- AJAX form not working, still reloads on submit
- Edit user meta on front-end via AJAX
- SyntaxError: unterminated string literal – if WordPress Debug in wp-config is set to true
- How to paginate Ajax result
- Cannot access class properties from ajax call in wpordrpess
- why is my main.js not loading?
- Enqueue dynamically generated javascript
- Not getting result using ajax on wordpress
- First time doing Ajax with WP, how to do it?
- Unexpected WordPress search results
- AJAX: admin-ajax.php is adding extra content to my script’s response – how to exclude header, footer, etc.?
- ajax page template
- Using Javascript Callback from plugin in a theme
- Running js in html code with same content
- How to get current_user_id from wordpress in node js?
- how can i create get request unis ajax without expecting return value
- Woocommerce ajax search can’t work on mobile
- AJAX call not initializing for non-admins in WordPress