WordPress.org

Forums

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

  1. Yakir Gottesman
    Member
    Posted 2 years 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 2 years 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 2 years ago #

    And if I don't have AJAX?

  4. Roy Ho
    Member
    Posted 2 years 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

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.