- Posts: 367
- Thank you received: 18
×
WooPrice Calculator PRO
[SOLVED] Required Field & Output Text
- Enrico
-
- Offline
Less
More
3 years 5 months ago #451
by Enrico
Enrico replied the topic: [SOLVED] Required Field & Output Text
Hi pakadg,
This feature is now available in 2.0.4
Text or numeric output is automatically detected
Best regards,
Enrico
This feature is now available in 2.0.4
Text or numeric output is automatically detected
Best regards,
Enrico
Please Log in or Create an account to join the conversation.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 5 months ago - 3 years 5 months ago #438
by Enrico
Enrico replied the topic: [SOLVED] Required Field & Output Text
Hi pakadg,
I don't know when the next release will be available (I think the end of the month), but you need to:
admin/awspricecalculator/Helper/CalculatorHelper.php, function calculatePriceAjax:
change from:
to:
Please make a backup of the file before edit it.
Best regards,
Enrico
I don't know when the next release will be available (I think the end of the month), but you need to:
admin/awspricecalculator/Helper/CalculatorHelper.php, function calculatePriceAjax:
change from:
$value = number_format($fieldResult, $decimals, $decimalSeparator, $thousandSeparator);
to:
if(is_numeric($fieldResult)){
$value = number_format($fieldResult, $decimals, $decimalSeparator, $thousandSeparator);
}else{
$value = $fieldResult;
}
Please make a backup of the file before edit it.
Best regards,
Enrico
Last Edit: 3 years 5 months ago by Enrico.
Please Log in or Create an account to join the conversation.
- pakadg
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
3 years 5 months ago #434
by pakadg
pakadg replied the topic: [SOLVED] Required Field & Output Text
hi,
probably when you will released text as an output?
or could you can give some guide /how tos so I can do it by myself.
Thank you very much.
probably when you will released text as an output?
or could you can give some guide /how tos so I can do it by myself.
Thank you very much.
Please Log in or Create an account to join the conversation.
- pakadg
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
3 years 5 months ago #423
by pakadg
pakadg replied the topic: [SOLVED] Required Field & Output Text
Ok we'll do it for you because it's not that hard. Please if you want after we developed it, make us a donation.
---
Sure, if your team create this awesome plugin more better and keep upgrading while listening your customer. I believe not only me who will make donation but everyone will buy your plugin because your plugin add value to other.
Thank you
---
Sure, if your team create this awesome plugin more better and keep upgrading while listening your customer. I believe not only me who will make donation but everyone will buy your plugin because your plugin add value to other.
Thank you
Please Log in or Create an account to join the conversation.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 5 months ago #417
by Enrico
Enrico replied the topic: [SOLVED] Required Field & Output Text
Hi,
1. If it's a numeric number you can setup Maximum/Minimum values. If it is a List/Radio, we're developing this feature and should be ready with this month or the next one.
2. Ok we'll do it for you because it's not that hard. Please if you want after we developed it, make us a donation
Best regards,
Enrico
1. If it's a numeric number you can setup Maximum/Minimum values. If it is a List/Radio, we're developing this feature and should be ready with this month or the next one.
2. Ok we'll do it for you because it's not that hard. Please if you want after we developed it, make us a donation
Best regards,
Enrico
Please Log in or Create an account to join the conversation.
- pakadg
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
3 years 5 months ago - 3 years 5 months ago #410
by pakadg
pakadg created the topic: [SOLVED] Required Field & Output Text
Hi,
I want to ask 2 question :
1. How to make field required? So when add to cart, it will not calculate / checkout before the required field filled.
2. I load xlsx as calculator, but as we know, in excel not all output based on numeric. Can I using text as an output? So it will show the text in the field rather than numeric type.
Thank you for your awesome plugin.
I want to ask 2 question :
1. How to make field required? So when add to cart, it will not calculate / checkout before the required field filled.
2. I load xlsx as calculator, but as we know, in excel not all output based on numeric. Can I using text as an output? So it will show the text in the field rather than numeric type.
Thank you for your awesome plugin.
Last Edit: 3 years 5 months ago by pakadg.
Please Log in or Create an account to join the conversation.
Moderators: david
Time to create page: 0.197 seconds