Change add to cart button text for product types

Reader Interactions


  1. Sam says

    Hi Frank
    How do I change the text of the button underneath the product in the product category to the name of the product itself? It currently just says view product for underneath each product.

  2. Scott says

    Hi Frank,
    This does not seem to work for the way we do it.

    Instead of WC products, we use custom posts in which we put the “add to cart” button by placing this code:

    [add_to_cart sku="book386" style="border:0px; padding:0px;" show_price="false"]

    The button still shows “add to cart”

    We sell books, and all will have 1, 2 or 3 editions, (hard, soft, ebook).

    Do you know if there’s a way to change the button text for each edition to read “Hard cover”, Soft cover, or eBook based on the way we are doing it above?


Leave a Reply

Your email address will not be published. Required fields are marked *