Okay
  Public Ticket #3157997
View cart text change to View basket in pop up cart panel
Closed

Comments

  • robertgrimstead started the conversation

    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

  •  1,877
    Judith replied

    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.