• Hi

    Normally “Add to cart” button has a bunch of classes like:
    class=”button product_type_simple add_to_cart_button ajax_add_to_cart”

    If Woocommerce product is Free (price = 0) then Woocommerce changes “Add to cart” to “Read more” and replaces anchor with link to the product page.

    Looks like this plugin works the proper way except one condition: it doesn’t add “add_to_cart_button” class so it looks like that:
    class=”button product_type_simple ajax_add_to_cart”

    So there is a click-able button with proper link but it is “invisible”.
    SCREEN

    The same product on the shop page has proper classes:
    SCREEN

    As a workaround I use jQuery:
    jQuery(“a[data-product_id=2130]”).addClass(‘add_to_cart_button’);

    I think it would bee good to fix this in the plugin.

  • The topic ‘Missing css class’ is closed to new replies.