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: 471
  • 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. ...

checkout button in cart box

... a checkout button at the bottom of the shopping cart infobox. Just to improve usability a bit. ...

Simple Template System

... "$cartbox" wherever on the page you want the Shopping Cart box to appear. Put "$categorybox" where you want ... later.This contribution also allows you to use WebMakers.com's Header Tag Controller contribution without having to modify every file on the system. Just copy the Header Tag Controller's include files into place and STS ...

Automatic remove button in shopping cart

1 ) Add this between the tags in shopping_cart.php (around line 25)------------------------------------------------------------------------------2 ) Search for:----------------------------------------'text' >= tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']));----------------------------------------Change to:----------------------------------------'text' >= tep_draw_checkbox_field('cart_delete[]', $products[$i]['id'], ' ', 'onClick="DoSubmission();"'));----------------------------------------3 ) in file includes/functions/html_output.php search for: (around line 189)----------------------------------------if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) ...

Add Multiple Products to Cart in columns for SPP

... option of adding many different items to the cart at once, by having a quantity box underneath ... quantity you want and hit the add to cart button!It's really easy to install- just one new file and a few quick edits and you're off! ...