Hi,
Ok, assuming your form includes a number field, and a dropdown field:
The fieldname1, for entering the quantity (a number field)
and the fieldname2, for selecting the colors, a dropdown field with the choices:
Choice one
Text: 1-color
Value: 1
Choice two
Text: 2-color
Value: 2
Choice three
Text: 3-color
Value: 3
Finally, insert a calculated field with the equation:
(function(){
var q = fieldname1, c = fieldname2;
if( q <= 7 && c == 1 ) retu q*3.72;
if( q <= 7 && c == 2 ) retu q*5.52;
if( q <= 7 && c == 3 ) retu q*6.72;
if( q <= 15 && c == 1 ) retu q*1.62;
if( q <= 15 && c == 2 ) retu q*3.12;
if( q <= 15 && c == 3 ) retu q*4.32;
if( q <= 31 && c == 1 ) retu q*1.26;
if( q <= 31 && c == 2 ) retu q*2.46;
if( q <= 31 && c == 3 ) retu q*3.36;
if( q <= 80 && c == 1 ) retu q*1.14;
if( q <= 80 && c == 2 ) retu q*1.62;
if( q <= 80 && c == 3 ) retu q*2.10;
retu 'Please, contact us';
})()
If you need additional help implementing the equations, I can offer you a custom coding service:
http://cff.dwbooster.com/customization
Best regards.
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 225 تاريخ : جمعه 14 خرداد 1395 ساعت: 4:55