• Resolved nickvps

    (@nickvps)


    Hi there,

    Great plugin and we are using for stock location within our warehouse.

    Is it possible to change the ‘Product Code’ label to ‘Product Location’? Perhaps with CSS or JS?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author artiosmedia

    (@artiosmedia)

    Hello,

    Such a request is outside the scope of this plugins default functions. You would require a snippet to modify the field label. I haven’t tested the below, but something like the following would need pasted into your child’s theme functions.php file.

    //Change Product Code for Woocommerce Field Label
    function wc_product_code_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Product Code' :
    $translated_text = __( 'Product Location', 'woocommerce' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'wc_product_code_strings', 20, 3 );

    You would need to refer to a developer to assure proper coding for your installation. Such customizations are not part of the plugin’s native functions.

    Hope this helps! Please leave a feedback if the plugin is helping out!

    Thread Starter nickvps

    (@nickvps)

    Thank you – that worked perfectly!

    I’ll leave feedback shortly!

    Plugin Author artiosmedia

    (@artiosmedia)

    Hey (@nickvps),

    Since version 1.0.6, the plugin now has a settings panel that allows you to change the field title globally. The functions.php edit can be deleted and the title changed to your preference.

    Thanks for using Product Code for WooCommerce!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change ‘Product Code’ Label’ is closed to new replies.