Ben_Brown
27-Aug-2003, 07:45 AM
Hi Guys,
My client sells high value goods i.e. plasma tvs, sorround sound systems etc.. and he does not want to take the full payment of any order that is more than £500.00. If the order is more than £500.00 he wants them to pay a £500.00 deposit for the goods.
Now obviously a simple 'if' statement in the order script perl springs to mind but the code is CLASS and OBJECT heaven.. arrgh!
===========================
Psuedo code of what I am trying to do
===========================
// earlier in the script
$totalordervalue = 501.00; //total value of order
// later in the script
// if the total order value is more than 500.00 then set the order
//value back to 500 (to fake a 500 deposit)
if($totalordervalue > 500.00){
$totalordervalue = 500.00;
}
// if the total order value is less than 500 then carry on as normal..
Please help
thanks in advance :mad:
My client sells high value goods i.e. plasma tvs, sorround sound systems etc.. and he does not want to take the full payment of any order that is more than £500.00. If the order is more than £500.00 he wants them to pay a £500.00 deposit for the goods.
Now obviously a simple 'if' statement in the order script perl springs to mind but the code is CLASS and OBJECT heaven.. arrgh!
===========================
Psuedo code of what I am trying to do
===========================
// earlier in the script
$totalordervalue = 501.00; //total value of order
// later in the script
// if the total order value is more than 500.00 then set the order
//value back to 500 (to fake a 500 deposit)
if($totalordervalue > 500.00){
$totalordervalue = 500.00;
}
// if the total order value is less than 500 then carry on as normal..
Please help
thanks in advance :mad: