Add Shopping Cart Info to Your Header

Add Shopping Cart Info to Your Header 2.0

Add Shopping Cart Info to Your Header 2.0 Download Summary

  • Language: PHP
  • Platform: Windows / Linux / BSD
  • License: GPL - GNU Public License
  • Databases: MySQL
  • Downloads: 457
  • Released: Jun 15, 2007

Add Shopping Cart Info to Your Header 2.0 Description

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.

Add Shopping Cart Info to Your Header 2.0 Keywords

Add Shopping Cart Info to Your Header Bookmark

Hyperlink code:
Hyperlink for Forum code:

Add Shopping Cart Info to Your Header 2.0 Script Download Notice

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!

Shopping Cart Dropdown

If you want the items in your store shopping cart box to show in a dropdown box use this. ...

Add Thumbnail Image to Shopping Cart

When a customer adds an item to the shopping cart, a small pic of the item is also display along with the previous features: Remove QTY, Products(s) Total. There are only 2 files that change: general.php and order_details.php ...

PayPal Shopping Cart IPN

... choose whether aggregate the total amount of the shopping cart to prior to passing it to PayPal (as ... option), alternatively they can choose to pass the shopping carts invidually to PayPal.In either case this contribution fully supports PayPal's Instant Payment Notification (IPN) program, which automatically updates the orders table when ...

Cleaner Shopping Cart

Very simple code since I'm very green at this. This is a modification of the catalog/includes/boxes/shopping_cart.php. It gets rid of the productid, replaces the "x" with "items" or "item" depending on how many items, and removes the seperator.I am sure there are bound to be bugs, so backup, backup, backup!! Also, ...

Hide Shopping Cart InfoBox

... and the Checkout Button are hidden when the Shopping Cart is empty. ...