Changing Cart to Basket
-
Hi all
I have recently set up a new website and accidentally had the language set as English (US) therefore all references throughout Woo are to “Cart”.
I have now updated the language to English (GB) in WordPress settings. Is there anyway to change all references of “Cart” to “Basket”?
I have tried the code below but couldn’t get it working:
add_filter('gettext', function ($translated_text, $text, $domain) { if ($domain == 'woocommerce') { switch ($translated_text) { case 'Cart totals': $translated_text = __('Order summary', 'woocommerce'); break; case 'Update cart': $translated_text = __('Update basket', 'woocommerce'); break; case 'Add to cart': $translated_text = __('Add to basket', 'woocommerce'); break; case 'View cart': $translated_text = __('View basket', 'woocommerce'); break; } } return $translated_text; }, 20, 3);
Any help would be much appreciated.
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Changing Cart to Basket’ is closed to new replies.