[Resolved] issue with translating shipping price from ali2woo plugin
This thread is resolved. Here is a description of the problem and solution.
Problem:
[Aliexpress Dropship for Woocommerce] the shipping price does not change to the other currencies
Solution:
The Aliexpress Dropship for Woocommerce plugin is not officially compatible with WPML and WooCommerce Multilingual. Nevertheless, our second-tier supporter has debugged this issue and found a workaround to fix it. Here is what you need to do.
1. Take a backup of your site in case something goes wrong.
2. In the theme's functions.php file add this code:
add_filter( 'wcml_multi_currency_ajax_actions', 'add_action_to_multi_currency_ajax', 10, 1 );
function add_action_to_multi_currency_ajax( $ajax_actions ) {
$ajax_actions[] = 'a2w_frontend_load_shipping_info'; // Add a AJAX action to the array
return $ajax_actions;
}
3. In: wp-content/plugins/ali2woo/includes/classes/utils/A2W_Shipping.php
After the line:
After adding and saving the above changes, the shipping prices will be according to the exchange rate set in WooCommerce Multilingual.
Please note that the workaround will probably not work with custom prices specified in the 2nd currency. That is true if it is possible to be set, as we are unsure where the shipping plugin sets those prices.
In the future we may not be able to support this workaround. Please share this with the ali2woo support. You can also urge them to join our Go Global program. You can find details about it here.
In such cases, we try to do our best to provide a fix or a workaround for the problem.
To proceed, we need to replicate this issue on a fresh WordPress installation. Then I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:
hidden link
With this link, you'll be directly logged in.
Could you please install the Dropshipping Business plugin for WooCommerce plugin and see if the issue is replicable on a clean WordPress installation?
Please configures WPML and WooCommerce the same as on your site (the basic configurations needed to replicate the issue are enough).
Please also make sure that you are installing the latest version of the plugin.
When everything is finished, and you can replicate the problem, please let us know.
Can you please send me the ali2woo plugin so I can continue investigating this issue?
You can upload the plugin to a service like Google Drive or Dropbox and share the link with me.
For this, I'll enable a private message for the following reply.
In this location (see the link below), it is possible to configure the Initial Name and the Service Name. Please see the attached screenshot Aliexpress Selection Standard.jpg.
hidden link
But where is it possible to set the shipping price?
Our second-tier supporter says that if the Ali2woo team wants to provide support on their side to the shipping prices, they can use this filter to convert the price:
After adding and saving the above changes, the shipping prices will be according to the exchange rate set in WooCommerce Multilingual. We tried it on the test site here.
hidden link
Please share this with the ali2woo support. Our developers will also try to contact them.
Nevertheless, please note that the workaround will probably not work with custom prices specified in the 2nd currency. That is true if it is possible to be set, as we are unsure where the shipping plugin sets those prices.
Regards,
Itamar.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.