Publisher review:Add Shopping Cart Info to Your Header - Simple modification to add the item count and merchandise total to your header. Simple modification to add the item count and merchandise total to your header.
Updated to work with STS PLUSThis is just a little usercode to allow you to use this contribution in your STS layout.Add this to your includes/modules/sts_inc/sts_user_code.php file, before the ?> at the end of the file is fine.$sts->start_capture();$productno = $cart->count_contents();$totalprice = $currencies->format($cart->show_total());if ($productno > 1) {echo ENTRY_HCART_CONTAINS;echo " ";echo $productno;echo " ";echo ENTRY_HCART_ITEMS;echo " "; echo " ";echo ENTRY_HCART_PRICE;echo " ";echo $totalprice;} elseif ($productno == 0) {echo ENTRY_HCART_EMPTY;} else {echo ENTRY_HCART_CONTAINS;echo " ";echo $productno;echo " ";echo ENTRY_HCART_ITEM;echo " "; echo " ";echo ENTRY_HCART_PRICE;echo " ";echo $totalprice;}$sts->stop_capture ('headcart');Add this to your includes/languages/english.php file, before the ?> at the end of the file is fine.define('ENTRY_HCART_EMPTY', 'Your cart is empty.');define('ENTRY_HCART_CONTAINS', 'Your cart contains:');define('ENTRY_HCART_ITEM', 'item.');define('ENTRY_HCART_ITEMS', 'items.');define('ENTRY_HCART_PRICE', 'Total price:');Thats it! Now use $headcart anywhere you want in your STS template files.
Add Shopping Cart Info to Your Header 2.0 is a PHP script for osCommerce Addons scripts design by Kim Elliott-BirdBrain.
It runs on following operating system: Windows / Linux / BSD.
Add Shopping Cart Info to Your Header - Simple modification to add the item count and merchandise total to your header.
Operating system:Windows / Linux / BSD