Totally Zenned
- Join Date:
- Jun 2007
- Location:
- Texas, USA
- Posts:
- 1,436
- Plugin Contributions:
- 0
[Not a bug] TEXT_TOTAL_ITEMS seems to ignore the SHOW_TOTALS_IN_CART switch setting
Maybe this has been fixed in 1.3.8a ... I am using 1.3.7
This code does not appear to be working right:
/includes/modules/pages/shopping_cart/header_php.php
/includes/modules/shipping_estimator.php
// altered to include Tare adjustment
// totals info
$totalsDisplay = '';
switch (true) {
case (SHOW_TOTALS_IN_CART == '1'):
$totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT . $shipping_weight . TEXT_PRODUCT_WEIGHT_UNIT . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
break;
case (SHOW_TOTALS_IN_CART == '2'):
$totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . ($shipping_weight > 0 ? TEXT_TOTAL_WEIGHT . $shipping_weight . TEXT_PRODUCT_WEIGHT_UNIT : '') . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
break;
case (SHOW_TOTALS_IN_CART == '3'):
$totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
break;
}
I had to comment out $totalsdisplay for it not to display....
Shipping/Packaging -> Display Number of Boxes and Weight Status set to 0
I believe you get just about the same text whether 0,1,2, or 3 are selected.