I will show you all the custom code on the USPS and flat files. Now that I look at it, that is the only place that $cat_extra_charge shows up.
Towards the beginning of usps.php:
PHP Code:
global $cart;
// check cart weight
if (IS_ADMIN_FLAG == false) {
$chk_products_weight = $_SESSION['cart']->show_weight();
}
// enable if total product weight is more than zero
if (IS_ADMIN_FLAG == false && $chk_products_weight > 0) {
// show USPS
$this->enabled = true;
} else {
$this->enabled = false;
}
Later in usps.php, I'll inlude some of the code that comes after so you can see where it is:
PHP Code:
global $cart;
//check if manufacturer alchemy is in cart
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('manufacturers_id','1') > 0)); {
$manufacturer_alchemy = $_SESSION['cart']->in_cart_check('manufacturers_id','1');
$drop_ship_extra_charge = $manufacturer_alchemy;
}
// charge dropship fee for alchemy
if ($drop_ship_extra_charge > 0) {
$cat_extra_charge = 5;
} else {
$cat_extra_charge = 0;
}
$methods = array();
$size = sizeof($uspsQuote);
for ($i=0; $i<$size; $i++) {
list($type, $cost) = each($uspsQuote[$i]);
// fix new trademark and reg 01-02-2011
//$type = str_replace('&lt;sup&gt;&amp;reg;&lt;/sup&gt;', '<sup>®</sup>', $type);
//$type = str_replace('&lt;sup&gt;&amp;trade;&lt;/sup&gt;', '<sup>™</sup>', $type);
In flat.php:
PHP Code:
global $cart;
// check total cart weight
if (IS_ADMIN_FLAG == false) {
$chk_products_weight = $_SESSION['cart']->show_weight();
}
// enable if total product weight is 0
if (IS_ADMIN_FLAG == false && $chk_products_weight == 0) {
// show FLAT
$this->enabled = true;
} else {
// hide FLAT
$this->enabled = false;
}
Bookmarks