Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi Ardjan,

    hm, as I can not confirm any categories being not translated in my test setup (no matter what page/template/fragment) I suspect it has something to do with your theme and how it sets up the categories.

    Unfortunately, you are running a child theme of a premium theme one has to pay for. And thus it is hard to debug this from here. I can’t seem to find this way of displaying the categories in the original Maya theme, so I guess this comes from your child theme. Are there any custom filters applied to whatsoever? Did you customize any of the WooCommerce template files? Anything you can share that might be of help?

    Kind regards,
    Thorsten

    Hi Thorsten,

    I also use your im8-qtranslate-woocommerce plugin.

    Category name shortcode works ok for menu and most places.However, on the website I working on there is a sorting/filtering bar which enables sorting by category names. This is a part of theme we use. Category names are not translated on this bar as they should, so for all languages they being displayed like [:pl]Polish Name[:en]English Name [:de]German Name

    The code that displays links to categories is as following

    <li class=”sort-cat”>term_id; ?>” href=”javascript:void(0);”><?php echo $catTerm->name; ?>

    I believe that if I knew what code should I insert instead of <?php echo $catTerm->name; ?>, my problem would be solved.

    I know that my understanding is basic. Do you know what code should I use to display category name , so it works with short code nicely?

    Thank you!

    Anna

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi Anna,

    there is some part of the code missing. Please use backticks (or the code button) when inserting code.

    How is $catTerm defined?

    Kind regards,
    Thorsten

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi there,

    the just relased update will fix this issue.

    Kind regards,
    Thorsten

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode does not work for product category names’ is closed to new replies.