We would like to offer free USPS shipping over $100us. I added the above patch and it updated successfully, and created the .php file and added the lines to the myshipper.php.
INSERT INTO xcart_shipping VALUES (150, 'Free Shipping - Orders Over $100', '', 'L', 'FREEOVERX', '201', 5, 'Y', '', '0.00', 0)
When I add products above $100, all calculates properly, but the pull down window reads " free shipping on order over $200" I would like to change it to state free shipping over $100.
Here is a snippet of myshipper.php file:
# Shipping modules depend on XML parser (EXPAT extension)
#
if( test_expat() != "" ) {
if ($ups_rates_only)
include $xcart_dir."/shipping/mod_UPS.php";
else {
include $xcart_dir."/shipping/mod_USPS.php";
include $xcart_dir."/shipping/mod_CPC.php";
include $xcart_dir."/shipping/mod_ARB.php";
#Added this line below for free shipping over $ 100
include $xcart_dir."/shipping/mod_CUSTOM.php";
}
Here is my mod_CUSTOM.php:
<?
// Custom shipping methods
//
// Free shipping over $X mod
// Add an entry to table xcart_shipping like this:
// INSERT INTO xcart_shipping VALUES (103, 'Free Shipping - Orders Over $200', '', 'L', 'FREEOVERX', '201', 5, 'Y', '', '0.00', 0);
// I picked "201" subcode arbitrarily, but it seems like a good number to start as to not conflict with predefined shipping methods
// The "5" is the orderby. "Y" is active or not. Replace "0.00" with a weight limit if you don't want this available for heavy orders.
// This will show up as a Real-Time shipping method in "Shipping Options"
//
// Edit the file shipping/myshipper.php and under this line
// include "../shipping/mod_DHL.php";
// ADD THIS LINE to include this file:
// include "../shipping/mod_CUSTOM.php";
//
// You can also include other custom shipping files here so that myshipper.php is left alone.
//
// Edit the amount valid for free shipping below.
$freeOverAmount=100;
// That's all!
if ( !defined('XCART_SESSION_START') ) { header("Location: ../"); die("Access denied"); }
global $products, $cart, $userinfo, $current_area, $login;
// Make sure this shipping method is available
foreach ($allowed_shipping_methods as $key=>$value)
if ($value["code"] == "FREEOVERX")
$FREEOVERX_FOUND = true;
if ($FREEOVERX_FOUND)
{
$tempcart = func_calculate($cart, $products, $login, $current_area);
if ($userinfo["s_country"] == $config["General"]["default_country"])
$dest = "L";
else
$dest = "I";
$row = func_query_first("SELECT shippingid, subcode FROM $sql_tbl[shipping] WHERE code='FREEOVERX' AND active='Y' and destination = '$dest'");
if ($row && ($tempcart["subtotal"] >= $freeOverAmount))
{
$rate = 0;
$intershipper_rates[] = array("methodid" => $row['subcode'], "rate" => $rate);
}
}
?>
Can someone please tell me how to nake the change, to read for Order over $200, to for order over $100? We only use USPS realtime shipper.
Thanks in advance.

[/u]