osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

[Hack] Shopping Cart In header

This is a discussion on [Hack] Shopping Cart In header within the osCMax Projects Discussion forums, part of the osCMax v2.0 Forums category; just paste it anywhere in your header. not mine but works great ################################################## ################# To install simply copy and paste the table ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax Projects Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-06-2007, 07:18 PM
poppatopz poppatopz is offline
New Member
 
Join Date: Jan 2005
Posts: 13
Thanks: 5
Thanked 7 Times in 4 Posts
Thanks: 5
Thanked 7 Times in 4 Posts
Rep Power: 0
poppatopz
Default [Hack] Shopping Cart In header

just paste it anywhere in your header. not mine but works great
################################################## #################
To install simply copy and paste the table into your code where you would like it. I
use mine in the header. You will want to change the CSS classes to match your site.
################################################## #################



<table width="400" border="0" align="right" cellpadding="0" cellspacing="0" class="headerNavigation">
<!-- show empty cart message -->


<td align="right" nowrap class="headerNavigation">
<?php
if ($cart->count_contents() == 0) { echo "Your cart is empty"; }
else { echo "Your cart contains: &nbsp; ";
//'<a href="' . tep_href_link(FILENAME_SHOPPING_CART).'">'. HEADER_TITLE_CART_CONTENTS . ': </a>';
}
?>
</td>


<td class="headerNavigation" align="left" nowrap>
<?php
if ($cart->count_contents() == 1) {echo $cart->count_contents(); echo " item.";}
if ($cart->count_contents() > 1) {echo $cart->count_contents(); echo " items.";}
?>
</td>


<td align="right" class="headerNavigation" nowrap>
<?php
if ($cart->count_contents() > 0) { echo "Total price excl fraight: &nbsp;"; }

?>
</td>


<td align="left" class="headerNavigation" nowrap>
<?php
if ($cart->count_contents() > 0) { echo $currencies-> format($cart->show_total()); }
?>
</td>


<td align="right" class="headerNavigation" nowrap>
<?php
if ($cart->count_contents() > 0) {
if (preg_match("/checkout/", $PHP_SELF)) {
// do nothing
} else {
echo '<a href="'. tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'). '" >'. HEADER_TITLE_CHECKOUT .'</a>';
}
}
?>
</td>

</tr>
</table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following 2 Users Say Thank You to poppatopz For This Useful Post:
altenter (06-03-2007), michael_s (04-06-2007)
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
[Hack] Cart in the status bar poppatopz osCMax Projects Discussion 0 04-06-2007 07:30 PM
Shopping cart decoster osCMax v2 Customization/Mods 1 12-05-2006 09:12 AM
Which shopping cart should I use? Please help. earth-friendly osCMax v2 Customization/Mods 6 07-16-2006 12:36 PM
shopping cart issue martinR osCommerce 2.2 Installation Help 1 01-25-2005 11:09 AM
Shopping cart won't empty judoka osCommerce 2.2 Modification Help 2 07-14-2003 01:07 PM


All times are GMT -8. The time now is 07:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax