Hi. How can we help?

Add to cart” button still visible on single product page

It may happen that the “Add to cart” is still visible even if it’s set to be hidden. This happens due to the theme using a not-standard CSS class for the button.

In this case, you need to pass the CSS class or the ID of the widget to the plugin through a filter like this:

if ( ! function_exists( 'my_ywctm_catalog_classes' ) ) {
 add_filter( 'ywctm_catalog_classes' , 'my_ywctm_catalog_classes' );

  function my_ywctm_catalog_classes ( $classes ) {
    $classes[] = 'CSS CLASS OR ID HERE';

     return $classes;

  }
}

If you don’t know how to retrieve the CSS class or the ID of an item, you can take a look here

Was this article helpful?
0 out of 2 found this helpful

Back to Help Center >