nuwebdesign
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Variations un-enabling themselvesMarking this as resolved as well.
Forum: Plugins
In reply to: [WooCommerce] Variations un-enabling themselvesTo answer my own question, this is not a problem with Woocommerce. Either contact your host or if you know how to find your PHP.ini file on your host, and then add the following “max_input_vars = 50000”. What is happening and why it is unchecking itself is because PHP can only POST and GET up to a 1000 fields by default. Use this plugin to see how much your site can POST and GET.
Alternatively, you can add the following into your htaccess file
php_value max_input_vars 50000
if you can not access your PHP.ini file. Since I have a large amount of variables, I was trying to submitted up to 9000 forms which is obviously WAAAAYYY over 1000. Hope this helps anyone in the future that stumbles upon the same issue when dealing with large amounts of variables.Enjoy!
Forum: Plugins
In reply to: [WooCommerce] Variations un-enabling themselvesI do not. I’ve been going back to re-enable the variable and then update the it never seems to stick.
Forum: Plugins
In reply to: [Calculated Fields Form] Round up to nearest thousandThat is something similar I have already in place but when I get 123.123 I have:
ROUND(123.123) then it times that by 1000. Didn’t know the function ceil rounded to the next highest integer. Thank you so very much!Forum: Plugins
In reply to: [Calculated Fields Form] Export DataLet’s say we were to buy the premium version, would it mess any if our data up on the dev section upgrading the plugin? And if it wouldn’t, how much does the premium version cost?
Forum: Plugins
In reply to: [Calculated Fields Form] Export DataHi,
I’m not seeing an “Import / Export” section anywhere on the plugin. I’ve looked on section where the calculators are and in the settings page of a calculator form. In the calculator form settings page I only have:
- Form Builder
- Previous and Next Buttons
- Validation Settings
- Note
- Paypal Payment Configuration
- Form Processing / Email Settings
- Email Copy to User
- Captcha Verification
I’m running the latest version of the plugin as well. Would the form information export/import if I used the Tools Export/Import feature for WordPress?
Forum: Plugins
In reply to: [Calculated Fields Form] Function IF ELSEJust came through actually. Took awhile to render it for whatever reason. Is there a way to do a range? Like 100000 > fieldname >= 10000 in an IF function?
Forum: Plugins
In reply to: [Calculated Fields Form] Function IF ELSEI have the following:
(function(){
if(fieldname2 > 10000) return 265;
})();
and it does not output anything. The field shows up blank. Same if I do:
(function(){
if(fieldname2 > 10000) return fieldname3;
})();
where fieldname3 equals 265. Both of these have the field appear blank when a value is inputed or not.
Forum: Plugins
In reply to: [Calculated Fields Form] Function IF ELSEThere is a typo in the first line. Should say:
if(fieldname2 >= 1000000) return fieldname2;
else return fieldname2;I’ve tried both:
function(){
if(fieldname2 >= 1000000) return fieldname2;
else return fieldname2;
if(fieldname2 >= 300000) return ((fieldname2-300000)/1000) * 1.80;
else return fieldname2;
})()and:
function(){
if(fieldname2 >= 1000000) return fieldname2;
if(fieldname2 >= 300000) return ((fieldname2-300000)/1000) * 1.80;
else return fieldname2;
})()both with no luck. Does this function need to go in the “Set Equation” box? Would it be easier using this format?
(fieldname2>=300000) ? ((fieldname2-300000)/1000) * 1.80 : fieldname2
The thing is I need it to check for multiple instances and return the value based on if it equal to or greater than multiple values and then perform an equation similar to the one listed above. I don’t know if I need to have them in multiple equation boxes and then all form into one so they validate right or if I can create a function in one box and have it spit out the right answer.
Edit:
I probably should of mentioned I’m trying to replicate some javascript that was built for the site I’m working on before I was handed lead on it. Here is the javascript snippet that I believe is the function that calculates the rates I’m trying to replicate:
function ratetable1(L) { //refi
var rate=265; //base rate
// L = Liability
switch (true) {
case (L >= 1000000):
rate = ‘0’;
break;
case (L > 400000):
rate += Math.ceil((L-400000)/1000) * 1.50;
case (L > 300000):
if (rate>265) {rate+=180} else {rate += Math.ceil((L-300000)/1000) * 1.80;}
case (L > 200000):
if (rate>265) {rate+=200} else {rate += Math.ceil((L-200000)/1000) * 2.00;}
case (L > 100000):
if (rate>265) {rate+=210} else {rate += Math.ceil((L-100000)/1000) * 2.10;}
case (L > 10000):
if (rate>265) {rate+=198} else {rate += Math.ceil((L-10000)/1000) * 2.20;}
}
if (L==0) {rate=0;}
return rate;
}function ratetable2(L) {
var rate=300; //base rate
switch (true) {
case (L >= 1000000):
rate = ‘0’;
break;
case (L > 600000):
rate += Math.ceil((L-600000)/1000) * 2.60;
case (L > 300000):
if (rate>300) {rate+=795} else {rate += Math.ceil((L-300000)/1000) * 2.65;}
case (L > 200000):
if (rate>300) {rate+=325} else {rate += Math.ceil((L-200000)/1000) * 3.25;}
case (L > 100000):
if (rate>300) {rate+=370} else {rate += Math.ceil((L-100000)/1000) * 3.70;}
case (L > 50000):
if (rate>300) {rate+=212.50} else {rate += Math.ceil((L-50000)/1000) * 4.25;}
case (L > 10000):
if (rate>300) {rate+=194} else {rate += Math.ceil((L-10000)/1000) * 4.85;}
}
if (L==0) {rate=0;}
return rate;
}The working calculator is found here. The full script is in the source code. Any help on this would be greatly appreciated.
Thanks!
Forum: Plugins
In reply to: [Calculated Fields Form] Add value if a field is X amount or higherWorked like a charm! Thank you very much!
Forum: Plugins
In reply to: [Calculated Fields Form] How to calculate percentagesNevermind. Just got it! Thanks!
Forum: Plugins
In reply to: [Calculated Fields Form] How to calculate percentagesThat helped get me the percentage of the sale price! Thanks! However now I’m trying to creating a formula that will subtract that percentage from the sale price as well as well as the payoff.
Forum: Plugins
In reply to: [Calculated Fields Form] How to calculate percentagesI just realize I need it to do one more step. I need a way for it to increase the decimal for how big the sale price is. An example is if the sale price is less than or equal to 10,000 , then it would be 0.01 * the percentage. But if the sale price is 100,000 or greater, it would be 0.1 * the percentage. Is there anyway to accomplish this?