• Hello,
    The class BeRocket_Compare_Products->get_compare_button() which is for generating a button generates this code:

    <a class="add_to_cart_button button br_compare_button br_product_6935 br_compare_added" data-id="6935" > ... </a>


    You can see the “add_to_cart_button” class which is Woo Default for, you know, “Add to cart” button. Because of that, after loading the page the link’s href attribute is changed. Which breaks it, and we obviously want to have both compare and add to cart button on a product page without any problems. Can we please have it fixed? It’s very important for us to be able to show the comparison button on the product page. I think this should be a default feature for the plugin.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    It is added to make style same as add to cart button, in most cases it is not cause any issue, because do not use same data.

    Unfortunately we cannot remove it from our side, because it will break styles for other.

    Regards,
    Oleg

    Thread Starter maciejpolak

    (@maciejpolak)

    so how do you customers display that button on a product page? Because that is a very basic functionality for a comparison button.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘button class name collision’ is closed to new replies.