How to translate a string in Woocommerce

By | August 22, 2018

If you want to translate some string in woocommerce than you don’t need to translate the whole installation of wordpress or any other translation plugin. You just add some line of php code to achieve this. Here we will achieve this. Let’s have a look. Add following lines code at the end of your theme‚Äôs functions.php file of your active child theme (or theme) and Save the file to translate a string in Woocommerce.

Here is default view of cart page when cart is empty:

After translate a string in Woocommerce , Here is view of cart page when cart is empty: