George Botsev
Forum Replies Created
-
Hello.
First let me ask – do you mean that there is a compatibility issue with the plugin Composite products and WooCommerce Multilingual?
I think that the plugin Composite Products has not yet being tested if it is compatible with WPML and WooCommerce Multilingual. You can see compatible plugins here: https://wpml.org/documentation/plugins-compatibility/Could you provide the information that you have, or if you want you can always open a new ticket in wpml.org and provide the information there privately (after private reply being enabled by a supporter).
Hello, could you provide more information please?
My initial guess about this is that “Price” may be a string – have you checked in String Translation module of WPML?
Make sure that the string is registered in your theme with the appropriate gettext call. You can check out our documentation for problems with strings here: https://wpml.org/documentation/support/troubleshooting-string-localization/Hello, I can see that your ticket is handled by one of our supporters already.
I also need to ask you the same things that he asks there, so it might be a better thing that the discussion continues there – because this forum is somewhat limited to a features and you cannot share screenshots or private information here securely.
We are actually investigating the compatibility with WooCommerce Subscriptions just now – because of a previous signal from our customer about performance issues.
Please provide as much as you can details about the issue – either here or better in the WPML support ticket.For reference: link to wpml support ticket: https://wpml.org/forums/topic/wpml-conflict-with-newest-version-of-woocommerce-subscriptions/
Hello, the issue that you report here should be fixed in the next version of WooCommerce Multilingual when released.
For now as a workaround please make sure that your decimal separator for your currency that you are making the checkout and having a problem is a dot.
For now I can see that your decimal separator is comma (,), hence the value is 1500%2C00 = 1500,00I have to observe our support rules and guidelines and unfortunately I cannot provide you my e-mail address.
Could I ask you to open a new ticket in WPML.org – you can upload screenshots there.
Just mention me in the ticket and my colleagues should assign it to me.Can you try to edit the product in the other language? It may be the case that this product is really a translation of the product in the other language. It is either that, or there is something wrong in the database and this might require for me to take a peek inside.
Forum: Plugins
In reply to: [WooCommerce Multilingual & Multicurrency with WPML] Checkout with paypalThe first snippet should add the possibility for your site to have the paypal checkout, but in the wrong currency. You need to modify slightly the second snippet to suit your needs after the paypal checkout method is selected.
Then you need to modify the block where the currency is switchet to suit your needs, and then you need to use the last part of the code to send that currency as the paypal parameters by hooking to woocommerce_paypal_args.
It is very complex process that needs some coding, and currently the code that I provided to you is only as a guideline, and not a complete solution.Hello, we are investigating this issue – it was reported in our forum at wpml.org and our developers are working on a fix for this problem.
Hello Filippos
The problem that you are describing here is not something that we are currently aware of.
Have you tried to switch the language using the admin language switcher?
Can you also try to clear your cookies for the site and re-login again?In order to determine here the issue we need to have more details. It would be very good if you could open a new ticket in wpml.org forum and mention me inside, so that we can handle this issue properly.
I talked with our developers.
You can try with this code:function exception_duplicate_products_in_cart( $value, $vart_obj ){ return true; } add_filter( 'wcml_exception_duplicate_products_in_cart', 'exception_duplicate_products_in_cart', 100, 2 );
and also this code if it is missing for you:
add_filter('woocommerce_add_cart_item_data','namespace_force_individual_cart_items',10,2); function namespace_force_individual_cart_items($cart_item_data, $product_id) { $unique_cart_item_key = md5(microtime().rand()."Hi Mom!"); $cart_item_data['unique_key'] = $unique_cart_item_key; return $cart_item_data; }
Forum: Plugins
In reply to: [WooCommerce Multilingual & Multicurrency with WPML] Checkout with paypalPerhaps this would be possible if first you add your currency to the supported currency list in order to display the PayPal gateway for your currency:
add_filter( 'woocommerce_paypal_supported_currencies', 'add_paypal_valid_currency' ); function add_paypal_valid_currency( $currencies ) { array_push ( $currencies , 'LEU' ); /* YOUR CURRENCY */ return $currencies; }
and then switch currency:
function geo_client_currency($client_currency){ if(ICL_LANGUAGE_CODE == 'en'){ $client_currency = 'EUR'; //currency code return $client_currency; } elseif(ICL_LANGUAGE_CODE == 'ro'){ if( is_checkout() ) { $client_currency = 'EUR'; //currency code return $client_currency; } elseif(is_product() || is_shop() || is_woocommerce() || is_cart() ) { $client_currency = 'LEU'; //currency code return $client_currency; } } } add_filter('wcml_client_currency','geo_client_currency'); function currency($paypal_args){ $paypal_args['currency_code'] = 'EUR'; return $paypal_args; add_filter('woocommerce_paypal_args', 'currency');
I have not tested this, but I provide you this snippets as a guideline.
If you wish, I can add this as a feature request that can be considered in the future. Please let me know.Forum: Plugins
In reply to: [WooCommerce Multilingual & Multicurrency with WPML] Checkout with paypalHello, you can try with this code as a workaround.
function geo_client_currency($client_currency){ if(ICL_LANGUAGE_CODE == 'en'){ $client_currency = 'EUR'; //currency code return $client_currency; } elseif(ICL_LANGUAGE_CODE == 'ro'){ if( is_checkout() ) { $client_currency = 'EUR'; //currency code return $client_currency; } elseif(is_product() || is_shop() || is_woocommerce() || is_cart() ) { $client_currency = 'LEU'; //currency code return $client_currency; } } } add_filter('wcml_client_currency','geo_client_currency');
This should change the currency while on checkout page in your second language. Please remember that you need to enable the Euro currency for the second language (Romanian in your case) in order for this to work.
In my testing attempts, when I set the product to be sold separately, I was unable to add more than one product of a kind, even with WooCommerce Multilingual disabled. So this is not something that is possible without custom coding (or a plugin that may do it) but then we are speaking of a compatibility issue.
Do you use additional code to accomplish this?
In a clean install without WooCommerce Multiligual, the option “Sold separately” adds only one product and you cannot add the same product again.Hello, could you provide more details about the issue that you are facing?
Have you tested with a default theme like Twenty Fourteen?
Do you have caching plugin enabled? If so – please temporary disable it and try again.
Have you tested with a minimal plugin setup? e.g. only WooCommerce, WooCommerce Multilingual and WPML running?
Do you have any code responsible for currency switching in your theme or in a custom plugin?