O
O
Oksana Medvedkova2018-03-23 16:48:54
WordPress
Oksana Medvedkova, 2018-03-23 16:48:54

How to highlight products in the catalog that have already been added to the cart?

Please tell me how to make it so that after clicking on the "Add to cart" button, its name changes to "In order". And when the page is refreshed, the name of the button should not change. Those. all items that the user has already added to the cart should be "tagged" in the main catalog. Maybe there is some plugin? or where to change the code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-03-24
@azerphoenix

About changing text "Add to Cart" - "In Cart"
Example - https://gist.github.com/corsonr/6775121
Another example - www.remicorson.com/woocommerce-check-if-product-is...
should work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question