Change “View Cart” – text only
-
Is there a way to change “View Cart” text only? Not where link lead to. Just the text itself. To anything else. Like “My Test” instead of “View Cart”
I am strictly speaking about button “View Cart” which appear when you are on default Woocommerce store page and when you click “Add to Cart” button. Then “Add to Cart” button disappear and there’s “View Cart” button instead. I want to change that text.
Of course if there’s possibility to change where link lead to that would be great but i can’t even change text let alone change link.
Preferably through function.php not via plugin. I would need function to be language sensitive. Because i have two languages in my test store.
It’s interesting that there are many tutorials on internet articles on various situations but nothing like my case – on the store page itself and in scenario when one click on “Add to Cart” and when this “View Cart” text appear.
On top of that many of these tutorials and infors don’t work at all:
https://stackoverflow.com/questions/18481472/change-the-text-of-view-cart-button – not working
https://alansolutions.com/wordpress/how-to-change-view-cart-text-in-woocommerce/ – this code is unfinished and not working – hence it will completely ruin your store
etc.
Any ideas or links?
- The topic ‘Change “View Cart” – text only’ is closed to new replies.