Home Forums WoodMart support forum RENAME SKU

RENAME SKU

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #402533

    Graz
    Participant

    Hi, I am trying to change the SKU name to another name. I tried this code in php but it doesn’t work. [ Scrape key check failed. Please try again. ]

    add_filter(‘gettext’, ‘translate_woocommerce’, 10, 3);

    function translate_woocommerce($translation, $text, $domain) {
    if ($domain == ‘woocommerce’) {
    switch ($text) {
    case ‘SKU’:
    $translation = ‘Šifra:’;
    break;
    case ‘SKU:’:
    $translation = ‘Šifra:’;
    break;
    }
    }
    return $translation;
    }

    #402542

    Luke Nielsen
    Keymaster

    Hello,

    You can change the “SKU” text with the help of the Loco Translate plugin, after installing navigate to Loco Translate -> Plugins -> WooCommerce -> enter keywords and change the appropriate text.

    Here is our documentation on how to use Loco Translate:

    https://xtemos.com/docs-topic/translate-woodmart-theme-with-loco-translate/

    Kind Regards

    #402619

    Graz
    Participant

    Thank You 🙂

    #402867

    Luke Nielsen
    Keymaster

    You are welcome!

    If there’s anything you need, please write me or another member of our help desk team.

    We’re here for you!

    Kind Regards

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

The topic ‘RENAME SKU’ is closed to new replies.