• HappyListing

    (@happylisting)


    If you want to calculate 1+1 or 2*2 please by all means download this…

    If you want something more sophisticated that works on a thing we call logic, stay clear of this plugin.

    I spent hours trying to do what I thought was basic formulas with IF statements, this plugin cannot do it sorry.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    If you want to calculate 1+1 or 2*2 please by all means download this…

    If you want something more sophisticated that works on a thing we call logic, stay clear of this plugin.

    It appears that 57 five star reviewers disagree with you.

    You raised a support topic for the author less that 24 hours ago, the author replied with a concise and clear explanation.

    https://www.ads-software.com/support/topic/if-statements-2?replies=6&view=all#post-6742156

    And yet, even with that assistance you still felt compelled to write

    Im sorry thats not a sufficient answer.

    Both IF statements do not have the false condition so how do you explain that?

    Why doesn’t the documentation have many examples not just how to calculate 1+1 because it seems that’s what this plugin is only good for.

    and then

    Ok I was able to get it but no thanks to your “documentation”

    Which wasn’t very productive.

    For examples of how to leave productive reviews give these two links a read.

    https://pippinsplugins.com/how-to-leave-a-good-bad-review/
    https://chrislema.com/theres-wrong-way-give-plugin-feedback-wordpress-org/

    Thread Starter HappyListing

    (@happylisting)

    I’ll tell you what.

    I will use your plugin some more, if it can do what I want it to do then I will change the rating to 4 stars in the case scenario.

    There’s no way I can give this plugin 5 stars at all. The documentation was totally unhelpful.

    At the end of the day I will leave you with this quote:

    “Tell me and I forget, teach me and I may remember, involve me and I learn.”

    The man who said that is on the $100 bill.

    barnez

    (@pidengmor)

    If you want something more sophisticated that works on a thing we call logic, stay clear of this plugin.

    For the record, the following equation works like a charm on a quotation form powered by this plugin:

    (function(){
    if(fieldname7<=5000 && fieldname8==5){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*2;
    }
    
    if(fieldname7<=5000 && fieldname8==4){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1.5;
    }
    
    if(fieldname7<=5000 && fieldname8==3){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1;
    }
    
    if(fieldname7<=5000 && fieldname8==2){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*0.95;
    }
    
    if(fieldname7<=5000 && fieldname8==1){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*0.9;
    }
    
    if(fieldname7>5001 && fieldname7<=10000 && fieldname8==5) return "-> Contact us"; 
    
    if(fieldname7>5001 && fieldname7<=10000 && fieldname8==4){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*2;
    }
    
    if(fieldname7>5001 && fieldname7<=10000 && fieldname8==3){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1.5;
    }
    
    if(fieldname7>5001 && fieldname7<=10000 && fieldname8==2){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1;
    }
    
    if(fieldname7>5001 && fieldname7<=10000 && fieldname8==1){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*0.95;
    }
    
    if(fieldname7>10001 && fieldname7<=25000 && fieldname8==5) return "-> Contact us";
    
    if(fieldname7>10001 && fieldname7<=25000 && fieldname8==4) return "-> Contact us";
    
    if(fieldname7>10001 && fieldname7<=25000 && fieldname8==3){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1.5;
    }
    
    if(fieldname7>10001 && fieldname7<=25000 && fieldname8==2){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1;
    }
    
    if(fieldname7>10001 && fieldname7<=25000 && fieldname8==1){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*0.95;
    }
    
    if(fieldname7>25001 && fieldname7<=45000 && fieldname8==5) return "-> Not available";
    
    if(fieldname7>25001 && fieldname7<=45000 && fieldname8==4) return "-> Not available";
    
    if(fieldname7>25001 && fieldname7<=45000 && fieldname8==3) return "-> Contact us";
    
    if(fieldname7>25001 && fieldname7<=45000 && fieldname8==2){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1.5;
    }
    
    if(fieldname7>25001 && fieldname7<=45000 && fieldname8==1){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1;
    }
    
    if(fieldname7>45001 && fieldname8==5) return "-> Not available";
    
    if(fieldname7>45001 && fieldname8==4) return "-> Not available";
    
    if(fieldname7>45001 && fieldname8==3) return "-> Not available";
    
    if(fieldname7>45001 && fieldname8==2) return "-> Contact us";
    
    if(fieldname7>45001 && fieldname8==1){
    return (fieldname5*fieldname7*fieldname9*fieldname17*fieldname10)*1;
    }
    
    })()

    Thread Starter HappyListing

    (@happylisting)

    Well that’s fantastic, this example really helps, should have been included in the documentation.

    My calculation was the following (after countless hours):

    IF(fieldname2<=55000,(fieldname2*0.005),IF(fieldname2<=250000,((fieldname2*0.01)-275),IF(400000>=fieldname2,((fieldname2*0.015)-1525),IF(400000<fieldname2,((fieldname2*0.02)-3525),0))))

    Too little too late I guess.

    Have a nice day everyone!

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Thanks Jan Dembowski, and barnez.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Very poor calculator’ is closed to new replies.