NEED Woocs Currency Compatibility with FREE SHIPPING LABEL Plugin
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from apexinterglobal on September 10, 2022, 10:28hi,
I need to make Free shipping Label plugin to make it compatible with Woocs Currency Switcher.
Please Can you help me For WOOCS – WooCommerce Currency Switcher to make it compatible with FREE SHIPPING LABEL Plugin like this:
1. If a Fixed minimum order Amount value for free shipping is SET for a particular currency, then it should do the currency conversion and show the FREE SHIPPING AMOUNT value for free shipping in that particular currency.
2.and if a Fixed minimum order amount value for free shipping IS NOT SET ANY VALUE in that particular currency then, it should convert automatically from USD (default Store currency) to that particular currency and show the FREE SHIPPING AMOUNT value for free shipping in that particular currency WHICH IS NOT SET ANY VALUE.
I used the below code for the FIRST CONDITION and its working only when the Fixed minimum order Amount value for free shipping AMOUNT is SET for a particular currency and if its not set any value then the code doesnt convert automatically from USD (default Store currency) to that particular currency and show the FREE SHIPPING AMOUNT value for free shipping in that particular currency WHICH IS NOT SET ANY VALUE.
Can you help me please..--------------1st case THE CODE I USED IS LIKE THIS------------
add_filter('fsl_free_shipping_instance_key', function ($key) {
$currency = get_woocommerce_currency();if (defined('WOOCS_VERSION')) {
$key = 'woocs_fixed_min_shipping_' . $currency;
}return $key;
});-------------And for the 2nd option i used a code like this below -------------:
the below code works for the SECOND CASE but for the FIRST CASE IT DOESNT WORK,
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];$amount = $amount * $conversion_rate;
return $amount;
});I want the above two codes two work in such a way that the above TWO CONDITIONS ARE MET,
PLS HELP ME
OM PRAKASH
hi,
I need to make Free shipping Label plugin to make it compatible with Woocs Currency Switcher.
Please Can you help me For WOOCS – WooCommerce Currency Switcher to make it compatible with FREE SHIPPING LABEL Plugin like this:
1. If a Fixed minimum order Amount value for free shipping is SET for a particular currency, then it should do the currency conversion and show the FREE SHIPPING AMOUNT value for free shipping in that particular currency.
2.and if a Fixed minimum order amount value for free shipping IS NOT SET ANY VALUE in that particular currency then, it should convert automatically from USD (default Store currency) to that particular currency and show the FREE SHIPPING AMOUNT value for free shipping in that particular currency WHICH IS NOT SET ANY VALUE.
I used the below code for the FIRST CONDITION and its working only when the Fixed minimum order Amount value for free shipping AMOUNT is SET for a particular currency and if its not set any value then the code doesnt convert automatically from USD (default Store currency) to that particular currency and show the FREE SHIPPING AMOUNT value for free shipping in that particular currency WHICH IS NOT SET ANY VALUE.
Can you help me please..
--------------1st case THE CODE I USED IS LIKE THIS------------
add_filter('fsl_free_shipping_instance_key', function ($key) {
$currency = get_woocommerce_currency();
if (defined('WOOCS_VERSION')) {
$key = 'woocs_fixed_min_shipping_' . $currency;
}
return $key;
});
-------------And for the 2nd option i used a code like this below -------------:
the below code works for the SECOND CASE but for the FIRST CASE IT DOESNT WORK,
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
$amount = $amount * $conversion_rate;
return $amount;
});
I want the above two codes two work in such a way that the above TWO CONDITIONS ARE MET,
PLS HELP ME
OM PRAKASH
Quote from Pablo Borysenco on September 12, 2022, 10:04Hello
then check this currency:
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
if($WOOCS->current_currency == "YOUR_CURRENCY_FOR_FIXED_AMOUNT"){
return $amount;
}
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
$amount = $amount * $conversion_rate;
return $amount;
});
Hello
then check this currency:
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
if($WOOCS->current_currency == "YOUR_CURRENCY_FOR_FIXED_AMOUNT"){
return $amount;
}
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
$amount = $amount * $conversion_rate;
return $amount;
});
Quote from apexinterglobal on September 13, 2022, 08:15Hi Sir, Good Morning, The above code you gave is not working.
I feel some confusion is there . Let me explain once again for the compatibility issue with FSL ( FREE SHIPPING LABEL ) AND WOOCS
I NEED LIKE THIS
1. If a Fixed minimum order Amount value for free shipping is SET for particular currency ( SAY FOR EXAMPLE UK POUND), then WOOCS should do the currency conversion IN UK POUND and show the FREE SHIPPING AMOUNT value IN UK POUND for free shipping in that particular currency
2.and if a Fixed minimum order amount value for free shipping IS NOT SET ANY VALUE in that particular currency ( SAY FOR EXAMPLE UK POUND then, WOOCS should convert automatically from THE ALREADY FREE SHIPPING AMOUNT VALUE IN USD (default Store currency) to that particular currency SAY UK POUND and show the FREE SHIPPING AMOUNT value IN UK POUND for free shipping .
IN FIRST CASE 1 USED A CODE AS BELOW AND WORKING ONLY FOR THE FIRST CONDITION:
add_filter('fsl_free_shipping_instance_key', function ($key) {
$currency = get_woocommerce_currency();if (defined('WOOCS_VERSION')) {
$key = 'woocs_fixed_min_shipping_' . $currency;
}return $key;
});IN SECOND CASE 2 I USED A CODE AS BELOW AND WORKING ONLY FOR THE SECOND CONDITION:
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];$amount = $amount * $conversion_rate;
return $amount;
});I WANT THE ABOVE BOTH CODE SHOULD BE COMBINED IN SUCH A WAY THAT BOTH CASE IT SHOULD WORK.
PLS HELP ME
THANKING YOU
OM PRAKASH
Hi Sir, Good Morning, The above code you gave is not working.
I feel some confusion is there . Let me explain once again for the compatibility issue with FSL ( FREE SHIPPING LABEL ) AND WOOCS
I NEED LIKE THIS
1. If a Fixed minimum order Amount value for free shipping is SET for particular currency ( SAY FOR EXAMPLE UK POUND), then WOOCS should do the currency conversion IN UK POUND and show the FREE SHIPPING AMOUNT value IN UK POUND for free shipping in that particular currency
2.and if a Fixed minimum order amount value for free shipping IS NOT SET ANY VALUE in that particular currency ( SAY FOR EXAMPLE UK POUND then, WOOCS should convert automatically from THE ALREADY FREE SHIPPING AMOUNT VALUE IN USD (default Store currency) to that particular currency SAY UK POUND and show the FREE SHIPPING AMOUNT value IN UK POUND for free shipping .
IN FIRST CASE 1 USED A CODE AS BELOW AND WORKING ONLY FOR THE FIRST CONDITION:
add_filter('fsl_free_shipping_instance_key', function ($key) {
$currency = get_woocommerce_currency();
if (defined('WOOCS_VERSION')) {
$key = 'woocs_fixed_min_shipping_' . $currency;
}
return $key;
});
IN SECOND CASE 2 I USED A CODE AS BELOW AND WORKING ONLY FOR THE SECOND CONDITION:
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
$amount = $amount * $conversion_rate;
return $amount;
});
I WANT THE ABOVE BOTH CODE SHOULD BE COMBINED IN SUCH A WAY THAT BOTH CASE IT SHOULD WORK.
PLS HELP ME
THANKING YOU
OM PRAKASH
Quote from Pablo Borysenco on September 13, 2022, 10:37Hello
Ok!
The first code passes a certain key, there is no more additional information. All you can do is change this key depending on the currency
The second code only sends the amount, so you can change the amount depending on the currency. As I wrote the code in the previous post - do not convert the amount in a specific currency (if the fixed amount is specified for the current currency)
You can't do more with this code.
Hello
Ok!
The first code passes a certain key, there is no more additional information. All you can do is change this key depending on the currency
The second code only sends the amount, so you can change the amount depending on the currency. As I wrote the code in the previous post - do not convert the amount in a specific currency (if the fixed amount is specified for the current currency)
You can't do more with this code.
Quote from apexinterglobal on September 17, 2022, 07:28Hi sir, Goodafternoon.
SIR I FEEL I DID MISTAKE IN EXPLAINING IT
Sir its not for specific Currency, It should work with all currency.
Let me explain you once again afresh.
Need compatibility of FSL( Free Shipping Label Plugin) to function correctly with WOOCS ,
***Firstly we assume that we are already setting some value for fixed order amount value for free shipping in USD ( default store currency)( say $95 or $100 Or any value in USD) and then we want that,
1. FOR ANY CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED, OR INR OR ANY CURRENCY..........), If a Fixed minimum order Amount value for free shipping is SET ,
then WOOCS SHOULD Show the FREE SHIPPING AMOUNT VALUE in that CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED ,OR INR OR ANY CURRENCY..........)
AND SHOULD NOT CONVERT from the fixed minimum order amount value for free shipping already SET in USD ( THE DEFAULT STORE CURRENCY) TO THAT CURRENCY FOR VALUE IS ALREADY SET.
2.BUT if a Fixed minimum order amount value for free shipping IS NOT SET to ANY VALUE FOR some CURRENCIES or any currencies ( SAY FOR EXAMPLE UK POUND, OR INR OR ANY CURRENCY.....) then,
WOOCS should automatically Convert from the FIXED MINIMUM ORDER AMOUNT VALUE already Set in USD ( DEFAULT STORE CURRENCY ) Automatically to those all CURRENCIES which we have not set any value FOR FIXED MINIMUM ORDER AMOUNT FOR FREE SHIPPING .
i hope you understood now,
IN FIRST CASE I USED A CODE AS BELOW AND WORKING ONLY FOR THE FIRST CONDITION but it doesn,t work for the second condition , i mean the below code doesn,t convert from usd to currencies which value is not set for free minimum order amount for free shipping :
add_filter('fsl_free_shipping_instance_key', function ($key) {
$currency = get_woocommerce_currency();if (defined('WOOCS_VERSION')) {
$key = 'woocs_fixed_min_shipping_' . $currency;
}return $key;
});IN SECOND CASE I USED CODE AS BELOW AND WORKING ONLY FOR THE SECOND CONDITION but doesn't do for the first condition
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];$amount = $amount * $conversion_rate;
return $amount;
});I WANT THE ABOVE BOTH CODE SHOULD BE COMBINED IN SUCH A WAY THAT BOTH CASE IT SHOULD WORK.
if you need my developement website user id and password then i can send you that also.
PLS HELP ME
THANKING YOU
OM PRAKASH
Hi sir, Goodafternoon.
SIR I FEEL I DID MISTAKE IN EXPLAINING IT
Sir its not for specific Currency, It should work with all currency.
Let me explain you once again afresh.
Need compatibility of FSL( Free Shipping Label Plugin) to function correctly with WOOCS ,
***Firstly we assume that we are already setting some value for fixed order amount value for free shipping in USD ( default store currency)( say $95 or $100 Or any value in USD) and then we want that,
1. FOR ANY CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED, OR INR OR ANY CURRENCY..........), If a Fixed minimum order Amount value for free shipping is SET ,
then WOOCS SHOULD Show the FREE SHIPPING AMOUNT VALUE in that CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED ,OR INR OR ANY CURRENCY..........)
AND SHOULD NOT CONVERT from the fixed minimum order amount value for free shipping already SET in USD ( THE DEFAULT STORE CURRENCY) TO THAT CURRENCY FOR VALUE IS ALREADY SET.
2.BUT if a Fixed minimum order amount value for free shipping IS NOT SET to ANY VALUE FOR some CURRENCIES or any currencies ( SAY FOR EXAMPLE UK POUND, OR INR OR ANY CURRENCY.....) then,
WOOCS should automatically Convert from the FIXED MINIMUM ORDER AMOUNT VALUE already Set in USD ( DEFAULT STORE CURRENCY ) Automatically to those all CURRENCIES which we have not set any value FOR FIXED MINIMUM ORDER AMOUNT FOR FREE SHIPPING .
i hope you understood now,
IN FIRST CASE I USED A CODE AS BELOW AND WORKING ONLY FOR THE FIRST CONDITION but it doesn,t work for the second condition , i mean the below code doesn,t convert from usd to currencies which value is not set for free minimum order amount for free shipping :
add_filter('fsl_free_shipping_instance_key', function ($key) {
$currency = get_woocommerce_currency();
if (defined('WOOCS_VERSION')) {
$key = 'woocs_fixed_min_shipping_' . $currency;
}
return $key;
});
IN SECOND CASE I USED CODE AS BELOW AND WORKING ONLY FOR THE SECOND CONDITION but doesn't do for the first condition
add_filter('fsl_min_amount', function ($amount) {
global $WOOCS;
if (!$WOOCS) return $amount;
$currencies = $WOOCS->get_currencies();
$conversion_rate = $currencies[$WOOCS->current_currency]['rate'];
$amount = $amount * $conversion_rate;
return $amount;
});
I WANT THE ABOVE BOTH CODE SHOULD BE COMBINED IN SUCH A WAY THAT BOTH CASE IT SHOULD WORK.
if you need my developement website user id and password then i can send you that also.
PLS HELP ME
THANKING YOU
OM PRAKASH
Quote from Pablo Borysenco on September 19, 2022, 10:24Hello
Please read my previous post carefully. These hooks do not pass enough information to determine if the current delivery has fixed prices.
You should customize the code where the WC_Shipping object is formed (expanded) for this third-party shipping method
Hello
Please read my previous post carefully. These hooks do not pass enough information to determine if the current delivery has fixed prices.
You should customize the code where the WC_Shipping object is formed (expanded) for this third-party shipping method
Quote from apexinterglobal on September 20, 2022, 07:18Hi Sir, I feel you dont want to support me AND I FEEL YOU ARE NOT READING MY QUERIES WELL AND JUST YOU ARE ANSWERING.
PLS HELP ME..., I NEED FREE SHIPPING LABEL PLUGIN WORKABLE WITH WOOCS
I have explained in the previous post everything but i dont know why you are not able to understand.
I summary i want FREE SHIPPING LABEL TO BE COMPATIBLE WITH WOOCS CURRENCY SWITCHER, PLS DO THE THE NEEDFUL*******
OR YOU PLS GIVE ME SOME CODE SO THAT FREE SHIPPING LABEL PLUGIN WORKS PERFECTLY WITH WOOCS SO THAT MY PROBLEM IS SOLVED. WE ARE IN BIG PROBLEM....PLS HELP ME SIR
OR MAKE THE WOOCS TO WORK LIKE THIS BELOW TWO STATEMENT WITH FREE SHIPPING LABLE
Let me explain you once again afresh.
Need compatibility of FSL( Free Shipping Label Plugin) to function correctly with WOOCS ,
***Firstly we assume that we are already setting some value for fixed order amount value for free shipping in USD ( default store currency)( say $95 or $100 Or any value in USD) and then we want that,
1. FOR ANY CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED, OR INR OR ANY CURRENCY..........), If a Fixed minimum order Amount value for free shipping is SET ,
then WOOCS SHOULD Show the FREE SHIPPING AMOUNT VALUE in that CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED ,OR INR OR ANY CURRENCY..........)
AND SHOULD NOT CONVERT from the fixed minimum order amount value for free shipping already SET in USD ( THE DEFAULT STORE CURRENCY) TO THAT CURRENCY FOR VALUE IS ALREADY SET.
2.BUT if a Fixed minimum order amount value for free shipping IS NOT SET to ANY VALUE FOR some CURRENCIES or any currencies ( SAY FOR EXAMPLE UK POUND, OR INR OR ANY CURRENCY.....) then,
WOOCS should automatically Convert from the FIXED MINIMUM ORDER AMOUNT VALUE already Set in USD ( DEFAULT STORE CURRENCY ) Automatically to those all CURRENCIES which we have not set any value FOR FIXED MINIMUM ORDER AMOUNT FOR FREE SHIPPING .
i hope you understood now,
PLS HELP ME SOME CODE FOR THE ABOVE ,
THANKING YOU
OM PRAKASH
Hi Sir, I feel you dont want to support me AND I FEEL YOU ARE NOT READING MY QUERIES WELL AND JUST YOU ARE ANSWERING.
PLS HELP ME..., I NEED FREE SHIPPING LABEL PLUGIN WORKABLE WITH WOOCS
I have explained in the previous post everything but i dont know why you are not able to understand.
I summary i want FREE SHIPPING LABEL TO BE COMPATIBLE WITH WOOCS CURRENCY SWITCHER, PLS DO THE THE NEEDFUL*******
OR YOU PLS GIVE ME SOME CODE SO THAT FREE SHIPPING LABEL PLUGIN WORKS PERFECTLY WITH WOOCS SO THAT MY PROBLEM IS SOLVED. WE ARE IN BIG PROBLEM....PLS HELP ME SIR
OR MAKE THE WOOCS TO WORK LIKE THIS BELOW TWO STATEMENT WITH FREE SHIPPING LABLE
Let me explain you once again afresh.
Need compatibility of FSL( Free Shipping Label Plugin) to function correctly with WOOCS ,
***Firstly we assume that we are already setting some value for fixed order amount value for free shipping in USD ( default store currency)( say $95 or $100 Or any value in USD) and then we want that,
1. FOR ANY CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED, OR INR OR ANY CURRENCY..........), If a Fixed minimum order Amount value for free shipping is SET ,
then WOOCS SHOULD Show the FREE SHIPPING AMOUNT VALUE in that CURRENCY ( SAY FOR EXAMPLE UK POUND, USD, AED ,OR INR OR ANY CURRENCY..........)
AND SHOULD NOT CONVERT from the fixed minimum order amount value for free shipping already SET in USD ( THE DEFAULT STORE CURRENCY) TO THAT CURRENCY FOR VALUE IS ALREADY SET.
2.BUT if a Fixed minimum order amount value for free shipping IS NOT SET to ANY VALUE FOR some CURRENCIES or any currencies ( SAY FOR EXAMPLE UK POUND, OR INR OR ANY CURRENCY.....) then,
WOOCS should automatically Convert from the FIXED MINIMUM ORDER AMOUNT VALUE already Set in USD ( DEFAULT STORE CURRENCY ) Automatically to those all CURRENCIES which we have not set any value FOR FIXED MINIMUM ORDER AMOUNT FOR FREE SHIPPING .
i hope you understood now,
PLS HELP ME SOME CODE FOR THE ABOVE ,
THANKING YOU
OM PRAKASH
Quote from Pablo Borysenco on September 20, 2022, 11:32Hello
I understand perfectly what you want to get
I think that you do not read what I write to you.
I'll try to explain to you a little more.
The code you gave me has very little data. with this data it is not possible to get fixed prices. With this data, it is not possible to implement what you want.
For this reason, I showed you another way to solve - https://share.pluginus.net/image/i20220920085913.png
For my part, I can say that with the help of these hooks you will not solve this problem, you need another way.
to get/check the fixed price you need the shipping key - https://woocommerce.github.io/code-reference/classes/WC-Shipping-Method.html#method_get_instance_option_key - YOUR CODE DOES NOT HAVE THIS DATA!
as I wrote before your code does not have this data - https://c2n.me/4gFP0Pb.png
In your first code, you are changing the shipping method key - Why are you doing this? Not sure if that makes any sense
In the second code, only the amount is transmitted, at this stage there is no way to check the existence of the fixed to cancel the currency conversion. since I wrote earlier with your code it is impossible to solve this problem because there is no data
Please do not repeat your explanations of the problem, I understood everything in the first message.
What plugin version number are you using?
By the way: Customization of third-party code is not included in the support
Hello
I understand perfectly what you want to get
I think that you do not read what I write to you.
I'll try to explain to you a little more.
The code you gave me has very little data. with this data it is not possible to get fixed prices. With this data, it is not possible to implement what you want.
For this reason, I showed you another way to solve - https://share.pluginus.net/image/i20220920085913.png
For my part, I can say that with the help of these hooks you will not solve this problem, you need another way.
to get/check the fixed price you need the shipping key - https://woocommerce.github.io/code-reference/classes/WC-Shipping-Method.html#method_get_instance_option_key - YOUR CODE DOES NOT HAVE THIS DATA!
as I wrote before your code does not have this data - https://c2n.me/4gFP0Pb.png
In your first code, you are changing the shipping method key - Why are you doing this? Not sure if that makes any sense
In the second code, only the amount is transmitted, at this stage there is no way to check the existence of the fixed to cancel the currency conversion. since I wrote earlier with your code it is impossible to solve this problem because there is no data
Please do not repeat your explanations of the problem, I understood everything in the first message.
What plugin version number are you using?
By the way: Customization of third-party code is not included in the support