WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] [Plugin: WooCommerce – excelling eCommerce] Rename "Categories" and "Products"

[Resolved] [Plugin: WooCommerce – excelling eCommerce] Rename "Categories" and "Products"

  • Hi,

    I have a WooCommerce shop with a WooTheme, it’s great, but the words “categories” and “products” that appear all over the store are not appropriate for my uses.

    How do I rename them site-wide?

    For example, I mean things like:
    – “Home / Shop / Products / Example” in the breadcrumb navigation
    – “Featured Products“, “Recent Products” and “Product Categories” on the homepage
    – “Category: Example” on the product page

    I would prefer:
    – “Authors” instead of categories
    – “Items” instead of products

    Thank you. (I have considered using attributes, but that wouldn’t work as I’m using them for other purposes.)

    http://wordpress.org/extend/plugins/woocommerce/

    P.S. I would also like to rename the “Add to cart” button to be “Purchase” or “Acquire”, and take away the quantity selectors.

Viewing 15 replies - 1 through 15 (of 44 total)
  • Plugin Author royho

    @royho

    This is best to use PO/MO to translate the words in question to what you want.

    Thanks, you mean this?

    http://codex.wordpress.org/Translating_WordPress

    And then making it into a plugin?

    http://codex.wordpress.org/Writing_a_Plugin

    (The plugin would be for WooCommerce, correct? Or would it be for the theme?)

    How long do you think it’d take to do all this + learn? Thanks!

    Plugin Author royho

    @royho

    No no…You don’t need to make a plugin or do anything complicated. Just use a FREE PO editor program and create a new PO file and from there you can change the text. If you look at the translating document in the WordPress codex as you have link to, there is a section showing you how to use a PO editor to do what you want.

    Thanks! 🙂

    Where do I find the en_US .pot file? I only see en_GB, and I’d like to keep everything as-is on the store, just these few changes.

    And once I get this US file, and make the changes with Poedit and save a .po or .mo file, what do I do with it?

    Thanks 🙂

    FULL STOP! You don’t need to do any translating. Presuming I understand what you are trying to do, WooCommerce has built-in plugin options to do this.

    In your dashboard, go to WooCommerce->Settings>Pages

    wp-admin/admin.php?page=woocommerce_settings&tab=pages

    Then specifically the section on Permalinks.

    Change the product slug to item and the product category slug to author… use what is already available, don’t hack the .po files.

    PS- after you change the permalinks you will have to go to Settings>Permalinks and click save (to flush the re-write rules) or you will get 404 errors.

    Hey Helga,

    The slug changes the URL, but it doesn’t change the term across the store. I want to change what customers see 🙂

    For example, I mean things like:
    – “Home / Shop / Products / Example” in the breadcrumb navigation
    – “Featured Products”, “Recent Products” and “Product Categories” on the homepage
    – “Category: Example” on the product page

    I just tried the CodeStyling plugin, but it only seems to show back-end text. What I want to change is how the shop appears to visitors.

    Maybe I did something wrong?

    1. I created a new language for the WooCommerce Plugin (selected en_US)
    2. I hit rescan
    3. I entered the edit mode and searched for “Featured Products”, “Recent Products”, but nothing came up

    Am I meant to translate the WooThemes files instead? For my WooTheme (Mystile), I only see one language file: en_GB… that’s strange, I thought that the theme was in US english?

    Plugin Author royho

    @royho

    Don’t forget you need to change a setting in wp_config.php to use your newly translated text (WP_LANG)…Either that or you modified the en_GB.po directly, then you don’t have to change that line. But then you may need to watch out for updates if you do it this way.

    Ah cool thanks!

    So the default language for the Mystile WooTheme is en_GB? Or is there a default en_US hidden somewhere?

    It looks like everything is spelt the American way anyway: color, localization, etc.

    Thanks!

    Plugin Author royho

    @royho

    Well you’re not trying to edit the woothemes theme translations, but the WooCommerce translations because “products” and “categories” text is declared in the WooCommerce plugin, not your themes. So look for the languages folder within the plugin, not theme.

    Ah, OK

    But also there it seems that the default is en_GB?

    Plugin Author royho

    @royho

    That’s fine…You can easily copy that and rename it to say en_US.po and make your changes there so it will not be overridden on updates.

    Cool thanks Royho!

    By copy, do you mean, make a new file, and click “Rescan”? And in the wp_config.php file I just set WPLAND to en_US and it works 🙂

    But can that cause any bugs in the future if, for example, en_US isn’t available for certain themes/plugins?

    Important question:

    Is there any disadvantage to using this CodeStylers Localization over manual .po file creation and stuff? Does it slow down the store in any way?

    Once I’m done editing the respective files and have evrything set up, can I disable the Localization plugin?

    Plugin Author royho

    @royho

    Bugs? no there will not be any bugs…You may just have to rescan from time to time if WooCommerce added anything new but it is not something you need to worry about because if your target audience is already in English. And yes if you’re not targeting other languages, you don’t really need a fullblown translation plugin to do small edits like this.

    No, it will not slow your site down in either case unless the plugin has poor coding but not likely in this case.

    Thanks!

    Can I disable the plugin once I’m done editing everything?

    By the way, I’m searching the WooCommerce plugin for “Recent Products” but nothing comes up apart from “WooCommerce Recent Products” and changing that does nothing to the actual page.

    “Recent Products” is what appears on my homepage…

    …it must be somewhere?

    Maybe this is from the Theme then?

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘[Resolved] [Plugin: WooCommerce – excelling eCommerce] Rename "Categories" and "Products"’ is closed to new replies.
Skip to toolbar