i am looking to customize view cart button text in woo commerce product loop currently it showing a tick (<i class=”ion-checkmark-round”></i>) after clicking add to cart button. I found that it is coming from clarivo/assets/js/haru-main.js line number 1349. I need to show View cart button instead of the current tick. Can you please help me. I don’t want to change the current file of your theme, how can i override those button text?
Thanks for choosing our product.
In this case after you added product to cart. It will show tooltip View cart: https://prnt.sc/xz8och
So in this case button with text View cart is unnecessary and it will break our design.
If you want to customize Add To cart button you can do it via child theme:
the template for customize is: wp-content/themes/clarivo/woocommerce/loop/add-to-cart.php
You can customize it on line 53: https://prnt.sc/xz8wr3
The other solution you can change this code: <i class="ion-checkmark-round"></i>
to: <span class="ion-checkmark-round">View Cart</span>
Hope this helps!