WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Rename "Categories" and "Products" (45 posts)

  1. helgatheviking
    Member
    Posted 2 years ago #

    But then that file isn't updated by WooCommerce and your .po becomes out of date as WC adds new strings, no? Perhaps that isn't an issue if the site is in English.

  2. royho
    Member
    Posted 2 years ago #

    If you read my response to OP, you will see I mentioned that he would need to do a rescan if WC updates any text. But a rescan takes 5 second to do literally. And if the site is ONLY used in English, it wouldn't even matter...

  3. FishFush
    Member
    Posted 2 years ago #

    Thanks Royho :)

    Clears it up

    I'm well underway with changing everything :)

    THANKS!

  4. helgatheviking
    Member
    Posted 2 years ago #

    You're right. I guess I just don't favor anything that involves having to manually update things. Personal preference.

    It is cool to see people helping each other in the forums, so even though this isn't my post... thanks!

  5. royho
    Member
    Posted 2 years ago #

    Take note, my first train of thought is to use filters (best way to do it)...but I didn't find any available so I suggested to use PO...

  6. helgatheviking
    Member
    Posted 2 years ago #

    I was also surprised not to find a way to filter some of that text within WC. But the gettext filter is always available. "More than one way to skin the cat"... which is a weird saying of course, b/c who skins cats? :)

  7. thomas963
    Member
    Posted 2 years ago #

    The best way to edit the 'recent products' and 'featured' titles is to add the code that helgatheviking suggested, in your functions.php

    This helped me! Thanks Helga!

  8. andras.szepesi
    Member
    Posted 2 years ago #

    I have a similar problem, I was translating Woocommerce, and there are a few untranslateable things there. I use po/mo files with poedit, and everything went fine, but I can't find "Features products" and "Product Categories" anywhere. I am trying to look for it in the woocommerce files and rewrite them manually, but that seems a bit harsh.

    Any ideas?

    Thanks.

  9. luba lee
    Member
    Posted 2 years ago #

    I'm pretty sure that's because those "Product Categories" and "Featured products" come from the theme itself, not the plugin... You can see in the settings of the theme where they come from...

  10. alicestenstrom
    Member
    Posted 2 years ago #

    The file is theme-woocommerce.php

  11. Stacy (non coder)
    Member
    Posted 2 years ago #

    In theme-woocommerce.php , changing <h1>'.__('Featured Products', to <h1>'.__('Custom Title' gives an error Parse error: syntax error, unexpected T_STRING on line 314

    function mystile_featured_products() {
    global $woo_options;
    if (class_exists('woocommerce') && $woo_options[ 'woo_homepage_featured_products' ] == "true" ) {
    echo '<h1>'.__('Featured Products', 'woothemes').'</h1>';
    $featuredproductsperpage = $woo_options['woo_homepage_featured_products_perpage'];
    echo do_shortcode('[featured_products per_page="'.$featuredproductsperpage.'"]');

  12. Stacy (non coder)
    Member
    Posted 2 years ago #

    I had to delete the theme and reinstall since correcting the change still wouldn't fix it.

  13. fredfred
    Member
    Posted 2 years ago #

    Many thanks to helgatheviking.

    Editing the functions.php file worked well for our needs

    Beware that there are many items you may wish to change in addtion to that already listed such as;

    New Products
    Related Products

  14. Nigellus
    Member
    Posted 1 year ago #

    I am thanking you guys aswell. Had such a problem finding the Featured Products text in the theme, but gladly killing the string in theme-woocommerce.php solves everything.

    Greets !

  15. Stacy (non coder)
    Member
    Posted 1 year ago #

    sigh. frustrating.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.