Originally Posted by
DivaVocals
EXACTLY! and WHY you may be asking??
Well, honestly, I don't care.
includes/modules/pages/shopping_cart/header_php.php
Around line 59 find:
Code:
$flagAnyOutOfStock = false;
and add after:
Code:
// BOF Free Shipping Flag 1/3
$flagAnyFreeShipping = false;
// EOF Free Shipping Flag 1/3
Around line 130 find:
Code:
if (STOCK_CHECK == 'true') {
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
if ($flagStockCheck == true) {
$flagAnyOutOfStock = true;
}
}
and add after:
Code:
// BOF Free Shipping Flag 2/3
$flagFreeShipping = zen_get_product_is_always_free_shipping($products[$i]['id']) == true ? '*' : '';
if(zen_not_null($flagFreeShipping)) $flagAnyFreeShipping = true;
// EOF Free Shipping Flag 2/3
Around line 161 find:
Code:
'flagShowFixedQuantity'=>$showFixedQuantity,
and add after:
Code:
// BOF Free Shipping Flag 3/3
'flagFreeShipping'=>$flagFreeShipping,
// EOF Free Shipping Flag 3/3
Next, includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php
Find:
Code:
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
and replace with:
Code:
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagFreeShipping'] . '</span>' . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
Find:
Code:
<!--bof shopping cart buttons-->
and add before:
Code:
<?php if($flagAnyFreeShipping) echo '<div id="freeShippingDisclaimer">some free shipping disclaimer here</div>'; ?>
If you want some info on the checkout pages, I'd probably add a parameter in $_SESSION (set it includes/modules/pages/shopping_cart/header.php) and then just set an if-else in the checkout pages...
Bookmarks