Title: nuwebdesign's Replies | WordPress.org

---

# nuwebdesign

  [  ](https://wordpress.org/support/users/nuwebdesign/)

 *   [Profile](https://wordpress.org/support/users/nuwebdesign/)
 *   [Topics Started](https://wordpress.org/support/users/nuwebdesign/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nuwebdesign/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nuwebdesign/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nuwebdesign/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nuwebdesign/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nuwebdesign/favorites/)

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Variations un-enabling themselves](https://wordpress.org/support/topic/variations-un-enabling-themselves/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years ago](https://wordpress.org/support/topic/variations-un-enabling-themselves/#post-4852261)
 * Marking this as resolved as well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Variations un-enabling themselves](https://wordpress.org/support/topic/variations-un-enabling-themselves/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years ago](https://wordpress.org/support/topic/variations-un-enabling-themselves/#post-4852260)
 * To 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](http://wordpress.org/plugins/wp-max-submit-protect/) 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Variations un-enabling themselves](https://wordpress.org/support/topic/variations-un-enabling-themselves/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years ago](https://wordpress.org/support/topic/variations-un-enabling-themselves/#post-4852181)
 * I do not. I’ve been going back to re-enable the variable and then update the 
   it never seems to stick.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Round up to nearest thousand](https://wordpress.org/support/topic/round-up-to-nearest-thousand/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years ago](https://wordpress.org/support/topic/round-up-to-nearest-thousand/#post-4823804)
 * That 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Export Data](https://wordpress.org/support/topic/export-data-2/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/export-data-2/#post-4724019)
 * Let’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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Export Data](https://wordpress.org/support/topic/export-data-2/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/export-data-2/#post-4723976)
 * Hi,
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Function IF ELSE](https://wordpress.org/support/topic/function-if-else/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/function-if-else/#post-4701560)
 * Just 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Function IF ELSE](https://wordpress.org/support/topic/function-if-else/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/function-if-else/#post-4701552)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Function IF ELSE](https://wordpress.org/support/topic/function-if-else/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/function-if-else/#post-4701499)
 * There 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](http://nuwebdesigntc.com/dev/about-us/rate-calculator/).
   The full script is in the source code. Any help on this would be greatly appreciated.
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Add value if a field is X amount or higher](https://wordpress.org/support/topic/add-value-if-a-field-is-x-amount-or-higher/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/add-value-if-a-field-is-x-amount-or-higher/#post-4700056)
 * Worked like a charm! Thank you very much!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] How to calculate percentages](https://wordpress.org/support/topic/how-to-calculate-percentages/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/how-to-calculate-percentages/#post-4697543)
 * Nevermind. Just got it! Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] How to calculate percentages](https://wordpress.org/support/topic/how-to-calculate-percentages/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/how-to-calculate-percentages/#post-4697540)
 * That 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] How to calculate percentages](https://wordpress.org/support/topic/how-to-calculate-percentages/)
 *  Thread Starter [nuwebdesign](https://wordpress.org/support/users/nuwebdesign/)
 * (@nuwebdesign)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/how-to-calculate-percentages/#post-4697534)
 * I 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?

Viewing 13 replies - 1 through 13 (of 13 total)