trying to create a 2 step code "if statement"
i am trying to add a if statement to the following code, just need
clarification to see if it will do the right job.
Order #: <? echo $ORDERID?><br />
<br />
Pick-Up Date: <? echo $MYPICKUP?><br />
Comments: <? echo $COMMENTS?><br /><br />
<? echo $CART?><br />
Order total: $<? echo $GRANDTOTAL?><br />
Payment Method: <? echo $PAYMETHOD?></span><span class="TextB"><br />
trying to add Shipping & Handling: in there with the result being :
<?php
$paypal = 'paypal';
$check = 'check';
if ($paymethod == $paypal)
{
echo "Shipping & Handling = $GRANDTOTAL * .045";
}
elseif ($paymethod == $check)
{
echo "Shipping & Handling = 0";
}
?>
but my question is, will the shipping and handling amount show up when the
option is chosen?
No comments:
Post a Comment