Comments robertgrimstead started the conversationNovember 1, 2022 at 5:39pmHi,I've tried various 'cart' to 'basket' text replacement functions. These work for WooCommerce but not the Salient Cart pop button 'View cart' or the pop up / panel title when the basket is empty, 'Cart'.Example of a function used.add_filter( 'gettext', 'te_change_cart_to_basket' );add_filter( 'ngettext', 'te_change_cart_to_basket' ); function te_change_cart_to_basket( $string ) { $string = str_ireplace( 'cart', 'basket', $string ); return $string;}ThanksAndrew 1,877Judith repliedNovember 1, 2022 at 6:04pmHi There,Thanks for keeping in touch.How about you try using the Loco Translate plugin to translate the Woocommerce plugin. Please refer to this guide:http://themenectar.com/docs/salient/translations/.Thanks. Sign in to reply ...
Hi,
I've tried various 'cart' to 'basket' text replacement functions. These work for WooCommerce but not the Salient Cart pop button 'View cart' or the pop up / panel title when the basket is empty, 'Cart'.
Example of a function used.
add_filter( 'gettext', 'te_change_cart_to_basket' );
add_filter( 'ngettext', 'te_change_cart_to_basket' );
function te_change_cart_to_basket( $string ) {
$string = str_ireplace( 'cart', 'basket', $string );
return $string;
}
Thanks
Andrew
Hi There,
Thanks for keeping in touch.
How about you try using the Loco Translate plugin to translate the Woocommerce plugin. Please refer to this guide:http://themenectar.com/docs/salient/translations/.
Thanks.