Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi there,
    I’m not sure I understand the question. Do you mean that the product name shows in all 6 languages in the invoice instead of only once?

    I have not tested the plugin with qtranslate, so I don’t know if it’s fully compatible.
    Either way, judging from the error I’d say it’s a qtranslate issue rather than a pdf invoices & packing slips issue.

    Ewout

    Thread Starter CSTMCLDSADMN

    (@cstmcldsadmn)

    Hi,

    yes you understood right. The product name shows in all 6 languages in the invoice instead of only once.

    I think I won’t get any proper support from the other dev.

    The slug plugin is needed to make mqtranslater (a multilingual plugin) work. Like an extension. At this point I am not sure if it is the plugin as the “errror” wasn’t an error actually.

    Your plugin exports pdfs in the language I want, but shows the name multiple times.

    I would really much appreciate if you could have a look into this. It seems to me that it is just a tiny step to make this work proper.

    Thanks in advance

    Plugin Contributor Ewout

    (@pomegranate)

    Hello mr Anonymous 🙂

    It seems to me that it is just a tiny step to make this work proper.

    It might be if I was familiar with qTranslate, but I’m not. I don’t have a test setup with qTranslate where I can quickly test this. AFAIK qTranslate is not supported anywhere anymore.

    The notice you get is telling you that it cannot perform a certain operation because it’s trying to access an object ($term->name) that is actually not an object.

    this is what the code is doing there:

    $meta = get_option('qtranslate_term_name');
    $lang = qtrans_getLanguage();
    
    if ( !empty( $terms ) ) {
    	foreach ($terms as $term) {
    		if ($meta[$term->name][$lang]) {
    			$term->name = $meta[$term->name][$lang];
    		}
    	};
    };

    in human terms:
    Loop through the terms if there are terms, and if the term name is set for the current language, set the term name into the value for the current language.

    But it’s not doing that because it doesn’t get past the “if the term name is set” because there is no term->name. Hence it never sets anything to the current language. It’s only trowing a notice because there’s no error in to code. The error is in the data!

    I’m sorry I cannot help you with this!

    Thread Starter CSTMCLDSADMN

    (@cstmcldsadmn)

    Hi,

    qtranslate doesn’t get supported anymore I know. I was talking about “qtranslate slug” which has nothing to do with the “qtranslate”. It is an extension for just permalinks.

    Someone did the mqtranslate plugin which gets supported and is basically the better version of qtranslate. however..

    I figured out that the bug with the multiple names has nothing to do with your plugin. I got the confirmation email of a test order and it was shown as well in multiple languages.

    you helped me a lot sir. thank you.

    Plugin Contributor Ewout

    (@pomegranate)

    qtranslate doesn’t get supported anymore I know. I was talking about “qtranslate slug” which has nothing to do with the “qtranslate”. It is an extension for just permalinks.

    I understand. The bit of code that I cited coms from ‘qtranslate slug’, that’s where the error comes from.
    Good luck and let me know when you’ve found a solution!

    Thread Starter CSTMCLDSADMN

    (@cstmcldsadmn)

    Hi,

    You gotta add this code to the functions.php / of the theme.

    add_filter(‘woocommerce_cart_item_name’, ‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’, 0);

    This fixes only the cart.

    The plugin called WooCommerce qtml fixes the checkout page.

    My WordPress page works 100% atm.

    Thanks again

    Hi,
    I have exactly the same problem.
    Like CSTMCLDSADMIN says I have put this line of code inside function.php file of my theme and problem wiht cart deasapered.
    I have also installed Woocommerce qtml plugin and unfortunely the problem with https and checkout page remains.
    Also problem with multiple names of product inside PDF remains.
    I just wanna ask CSTMCLDSADMIN if he have the same situation?
    Thanks…

    Thread Starter CSTMCLDSADMN

    (@cstmcldsadmn)

    Hi,

    the pdf gets generated from the checkout page.

    I found a solution.

    You must go to mqtranslate plugin and switch the translate thingy to lang modus. This should fix it.

    ?lang=de

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note:

    @cstmcldsadmn Your posts are not being closed they are hitting the spam queue. I’ve released them, please be patient when this happens.

    Hi CSTMCLDSADMN,
    thanks for trying, but I do not have mqtranslate.
    I have qtranslate installed and option that is set is
    Use Query Mode (?lang=en).
    But problem I have is checkout page over https (if choosen language is english, when https appears everything goes back to default language) and pdf invoice with multiple names.
    I would appreciate if someone have solution for this.
    Thanks…

    Thread Starter CSTMCLDSADMN

    (@cstmcldsadmn)

    Sir, if you still using qtranslate, you should switch to mqtranslate immediately.

    qtranslate is not supported anymore and the support was always weak anyways. Mqtranslate is up to date and it is just optimized and works.

    I use

    mqtranslate
    qtranslate slug
    qtml plugin

    Set in the mqtranslate settings (named qtranslate settings) to lang and it should work.

    Good Luck

    Thanks for info. I will try.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Multiple product names shown’ is closed to new replies.