WordPress: WooCommerce add to cart button is missing

This will be a fairly basic tutorial on how to handle a simple problem within the woocomerce system, specifically what to do if the woocomerce add to cart button is missing. This is a fairly common problem, with a variety of causes, that can be fairly irritating to solve. I’ll be running you through a quick selection of diagnoses for the problem, and what you can do to fix them.

Diagnosis: Theme Issues

There are some problems with certain woocomerce themes, in particular the Bazar theme is known for causing problems. If you switch to the default theme and the button reappears, then you have a theme issue. This can be resolved by rolling back to an earlier version of the theme, or by switching themes altogether.

Diagnosis: Code Issues

There may be some issues with the default options in the coding within WordPress itself. By default, if you have the same price for variations woocomerce hides the price and the add to cart button for simple products. If this is happening to you add this code into the functions php add_filter('woocommerce_show_variation_price’, function() { return TRUE;}); and the problem should be resolved.

Diagnosis: Missing Information

The add to cart button will not be added unless a product is fully recognised as a finished and presented product by the site. This means providing all the relevant information. Make sure you have included weight, dimensions, ID, prices and stock keeping unit. Do a quick double check of your product descriptions and make sure everything you needed to provide is there.

Diagnosis: Extension or Plugin Difficulties

This is the most common and easiest to test and resolve problem. You may have some plugin, custom CSS or extension that doesn’t’ work well with woocomerce or your theme. All you need to do is turn those off and the problem should vanish quickly.

Recent Articles

How to Hide Shipping Methods in WooCommerce?

This is a small detail, but WooCommerce doesn't have built-in any function for hiding shipping methods based on different situations. Imagine when...

How to Get WordPress Post Featured Image URL

Are you a WordPress developer or an advanced WordPress user? Whoever you are, sometimes you may need the direct URL of a...

How to Bulk Delete Media in WordPress

WordPress and media. That's the topic for a book. Sometimes is not easy to find what you need and when you have...

Custom Order Number for WooCommerce Will Saves You a Lot of Hassle!

WordPress is still the king of Content Management Systems (CMS). Thanks to its open-source nature, millions upon millions of users and PHP...

How to Manually Sort WooCommerce Products

WooCommerce is an e-commerce plugin for WordPress. It is a great way for the user to create an online store for their...

Get in touch

Be our first-class reader, build a community and follow us on social media!

Leave A Reply

Please enter your comment!
Please enter your name here