George Botsev
Forum Replies Created
-
Hello,
As far as I see, when you click on a certain tab – this causes an ajax action.
Please check if it helps if you activate Ajax language cookie in WPML > Languages
Also please test in the minimal possible setup if you can – as there could be third party plugins that influence the code.Forum: Plugins
In reply to: [WPML Multilingual & Multicurrency for WooCommerce] Fatal error after updateHello @mati86,
The error message indicates that a plugin in your site – Dokan Lite – tried to register a class that he uses.That error message is in no way related to our plugin. Perhaps you will want to contact the other plugin developers.
As a workaround, I would suggest you try and activate that plugin in a minimal plugin setup and with a default theme like Storefront or TwentySeventeen, as it is possible that you have other plugins that declare that class previously or custom configuration in your theme that does that.
Having taken a look at the plugin Dokan Lite – in the file /dokan-lite/includes/widgets/menu-category.php – I can see that the class is declared on line 6, and line 0 – as specified in your error message looks strange. Perhaps you might want to get a fresh copy of that plugin and update it.
We are using Twig library version 1.32 as far as I know.
I was unable to reproduce the fatal error that you have reported.
Could you provide more information, of course, if you wish to pursue further this issue?Hello!
Can you give more details about the problem?
How can be reproduced?
Twig version is fixed in our plugin in order to be compatible with older PHP versions.
This is actually limitation from the Twig library itself and not from us.Hello and thank you for reporting this.
We are already aware of this issue as it was reported recently in our support forum at wpml.org.
We are preparing a version of our plugin, where that issue should be fixed.If you wish, you can give it a try using our latest plugin version and replacing row 285 in that file: \woocommerce-multilingual\inc\currencies\class-wcml-multi-currency-orders.php
with this code:$original_product_id = $this->woocommerce_wpml->products->get_original_product_id( $item->get_product_id() );and also add this code before line 326 in the same file:
$original_product_id = $this->woocommerce_wpml->products->get_original_product_id( $item[ 'product_id' ] );Let me know how it goes.
You are welcome.
If you need further information you can always ask.
Also perhaps as you are asking such coding oriented questions – you might find our API hooks reference useful: https://wpml.org/documentation/related-projects/woocommerce-multilingual/wcml-hooks-reference/If the payment gateway does not support the currency – then it is the payment gateway that will return a message.
Any other things would require additional custom coding.Need? It is only if you wish that and if you think that your users would want that.
You can add all currencies that are supported by your gateway, but you are not limited to only the supported currencies – just if you add the unsupported currencies you will not be able to checkout..
In an example, if you add default currency Euro and secondary currency BGN (Bulgarian Lev) and have PayPal – then if you switch to the secondary currency you won’t be able to checkout until you switch to a supported currency.Hello!
I hope that I understand you properly.
You checkout in the currency that you have switched to. If you have default currency Euro and you switch to USD, and checkout in USD – then the checkout currency is USD and not Euro.I hope that I have answered your question properly.
Please let me know if you have more questions.That hook that I provided you above, should’ve enabled the parameter for switching the currency and usually these requests even cached – would be to the proper currency.
I suggest that you escalate a ticket to our forum at wpml.org so that we can check this on your site.As far as I know it should be fixed.
Perhaps you can try and hook to enable the currency switcher parameters to be used:
add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' );
Something like that should help ^
Be sure to use latest versions of our plugins.Please update and let me know if you still have the issue.
Remember to backup before updating.
Hello again!
I tried that theme free version, but I cannot see any issue with the product page tabs.
I guess it might be something else that you might find when testing in a minimal setup.
If nothing helps – I suggest that you open a new ticket at our forum at wpml.org so that we can debug more in-depth.I asked our developers about this.
It seems that the missing class was introduced in WPML 3.6.3.
As far as I see – judging by your error log, your site seems to run WPML 3.5.3.
Most definitely the problem is that you require an update of your WPML plugins and then of WooCommerce MultilingualHello!
Please make sure that you are using the latest version of WPML.
The current release of WPML is 4.0.4 and it was released today.
Please update to at least WPML 4.0 and then update WooCommerce Multilingual.As a good practice, I always suggest that you make a backup and / or test on a staging server first the changes.