WooCommerce添加到购物车短代码不起作用

Yesterday I tried to implement an add to cart button outside of product page So I tried this short code

[add_to_cart id=”#″ sku=”#″]

It was working fine so today I dicid to go ahead and do this on live, but for some reason that I ignore it doesn't work either on test or live site.

There is an empty space where the button is supposed to be.

Nothing has been changed or add since last night to the site

I'm running WooCommerce Version 2.6.9 and WP Version 4.7

enter image description here

Please check the screenshot below.... Follow this screenshot

Case for not showing button

  • A Product stock and visibilty of button check.
  • A CSS issue
  • A function.php customization.
  • Please check with page

Solution