Add Shopping Cart Info to Your Header 2.0 PHP script

SPONSORED LINKS

    Specification

  • Version: 2.0
  • File size: 0 KB
  • File name: download,13675
  • Last update:
  • Platform: Windows / Linux / BSD
  • Language: PHP
  • Price:GPL
  • Company: Kim Elliott-BirdBrain (View more)

Add Shopping Cart Info to Your Header 2.0 script description:




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

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5