New Landing How can we help? Atelier Change all 'carts' to 'basket' on site…

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #291800
    BohoMagpie
    Member
    Post count: 27

    Hi there – It seems I cannot switch all “cart” references to “basket” . I have tried updating the woocommerce .po/ .mo files but still no joy. Please can you help. Thanks so much
    Claire

    Attachments:
    You must be logged in to view attached files.
    #291819
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Just try to use this plugin https://wordpress.org/plugins/real-time-find-and-replace/. It will help your sure.
    Thanks
    Mohammad

    #291850
    BohoMagpie
    Member
    Post count: 27
    This reply has been marked as private.
    #291893
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this code at functions.php of child theme.

    add_filter( 'gettext', 'sf_addcart_translate', 20, 3 );
    function sf_addcart_translate( $translated_text, $text, $domain ) {
          $translated_text = str_replace('cart','basket',$translated_text);
          return $translated_text;
    }

    Thanks
    Mohammad

    #291937
    BohoMagpie
    Member
    Post count: 27

    Thanks Mohammad – This didn’t work either. However I tracked the problem to two pesky ‘cart’ templates in the atelier parent theme. Moved them to the child theme and we’re all good!

    #291942
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register