WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Change add to cart label after click (4 posts)

  1. Yakir Gottesman
    Member
    Posted 1 year ago #

    Hi,

    I want to change add to cart label after click. Meaning, after adding a product to cart, the page refreshes, and the button says "Added to Cart".

    Thanks.

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    If you use ajax add to cart in category view, it does that already. It adds a class of "added" to the button. So using that class you can manipulate it...

  3. Yakir Gottesman
    Member
    Posted 1 year ago #

    And if I don't have AJAX?

  4. Roy Ho
    Member
    Posted 1 year ago #

    You can still do it but would probably require you to customize the template view in question and add a check for what is in the cart at the time if in the cart, add CSS class or change the text completely.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.