[thelist] JavaScript Help Needed
Rob Smith
rob.smith at THERMON.com
Tue Aug 3 10:13:21 CDT 2004
>I'm setting up a PayPal account for a client and I'm trying to use a
>JavaScript to handle a price range.
This may or may not help. but I recently did some work on customizing the
actual pay pal amount with PHP this past weekend:
<?php if ($Affiliated == "yes") { ?>
<input type="hidden" name="amount" value="<?php echo $totalsh + $tax+
$asubtotal - $credits; $_SESSION["EndTotal"] = $totalsh + $tax+ $asubtotal -
$credits;?>">
<input type="hidden" name="item_name" value="Order (<?php echo
$_SESSION["OrderID"];?>) - Affiliated - ">
<?php } else { ?>
<input type="hidden" name="amount" value="<?php echo $totalsh + $tax+
$subtotal - $credits; $_SESSION["EndTotal"] = $totalsh + $tax+ $subtotal -
$credits;?>">
<input type="hidden" name="item_name" value="United Printer.com Order (<?php
echo $_SESSION["OrderID"];?>)">
<?php } ?>
Where:
$totalsh = total shipping and handling costs
$tax = tax calculated
$subtotal = subtotal
$credits = sales discounts
$asubtotal = affiliate discounted sales total.
Rob
More information about the thelist
mailing list