WordPress: WooCommerce add to cart button is missing

W

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.

Add comment

Recent Posts

Categories

Recent Comments

Archives

Tag Cloud