Simple modification to add the item count and merchandise total to your header.
Updated to work with STS PLUS
This 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.
Top 4 Download periodically updates information of Add Shopping Cart Info to Your Header 2.0 script from the developer, but some information may be slightly out-of-date.
Our script download links are directly from our mirrors or publisher's website. Add Shopping Cart Info to Your Header 2.0 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!