Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter kitelab

    (@kitelab)

    Hi Jose, thanks for your kind and detailed answer.
    We will test all the things in future.

    Btw. I’m still convinced that the language tagging

    [:en]english text[:de]deutscher Text[:]

    within pages is clever (think of product stocks etc.).
    Anything translates in an easy way without doubling (or x-times) the page count.

    Enjoy your evening, have a marvelous flight … Thomas

    Thread Starter kitelab

    (@kitelab)

    Hi Maarten, of course you know. Settings etc. by po mo via Poedit, admin content such as a label of a custom product field by qtranslate in the wp admin area with the mentioned language syntax.

    We have some experience with the following plugins, besides a couple of others:

    • WooCommerce Extra Product Options by themecomplete (code canyon): Currencies ok. Languages ok. Huge, still not slow on frontend. A few years ago, we used to organize ANY option, variation etc. with this one, globally and for individual special products. Overkill for us, since the generic woocommerce variations are the reliable product options (multi-currency, multi-language).
    • That’s why we currently have installed “Woocommerce Custom Fields For Variation”, because with this one we can rely on the multicurrency price calculations of the generic wc variations. Using it for personalized texts just on a couple of products. It wouldn’t be practical for more. And we removed some “total price php and js” lines due to wrong multicurrency calculations, even when the option price is set to zero.

    You see why we are looking for a practical solution, or hoping?

    Have a nice evening … Thomas

    p.s. I like the lean, clean and fast character of qtranslate. It’s a clever solution.

    Thread Starter kitelab

    (@kitelab)

    Hi Maarten, every Plugin we have installed, uses the textdomain syntax __(…), it’s WordPress standard. Not just nice to have, but best practice or even mandatory.
    Just some samples, but each and every string is like this, that’s why woocommerce and any other good plugin are completely translatable:

    __( 'Remove this item', 'woocommerce' )
    or this
    <?php _e( 'Calculate shipping', 'woocommerce' ); ?>

    I’m just a user and have no idea about coding, but yes, there are some plugins that do not support translation. But the custom fields plugin we are using currently does translate.

    Best … Thomas

    Thread Starter kitelab

    (@kitelab)

    Hi again, I don’t think that a screenshot is necessary here. I mean, you should check with realmag777 (we have the paied version installed) and aelia, since these are the most widely used currency plugins on wordpress.

    Additinally, when we add a price to an apf field, eg 5.00 usd, it will be also 5 €. Probably it’s just a digit, not a real money amount.

    It’s a similar thing like the untranslatable fields.

    Thanks … Thomas

    Thread Starter kitelab

    (@kitelab)

    It’s qtranslate-x and it works throughout (without doubling pages or products), fast and reliable.

    Even when using bilingual product variation descriptions (in apf fields without any language tags), apf stops the page just before the apf text field.

    The fields are not translatable. Like echo __( .... )

    In addition, we have “WooCommerce & qTranslate-X” and “qTranslate slug” installed. There’s a new fork called qtranslate-XT.

    Thread Starter kitelab

    (@kitelab)

    Hi, it was a text field (single line). The price stayed sticky on the product page. Display and Calculation ok, but only with the main currency.

    Also, a minor issue, price shows up in cart and checkout, even when zero, displays (+0.00 CHF).

    Thank you … Thomas

    Thread Starter kitelab

    (@kitelab)

    Thank you very much, great.
    I made this one thanks to your help, and it’s perfect for us and our plain text emails, which are so much better on mobile:

    echo apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false );
    		if ( $show_sku && $sku ) {
    			echo ' (#' . $sku . ')';
    		}
    		
    		if($item->get_quantity() <= 1) {
    		echo ' = ' . $order->get_formatted_line_subtotal( $item ) . "\n";
    
    		} else {
    			echo ' x ' . apply_filters( 'woocommerce_email_order_item_quantity', $item->get_quantity(), $item );			
    			echo ' = ' . $order->get_formatted_line_subtotal( $item ) . "\n";
    		}

    Btw. pipes instead of “x” and “=” look also good. And of course the “x” is now lowercase ??

    Thanks again, enjoy your marvelous flight … Thomas

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