Results 1 to 2 of 2

Simple Cart Summary

This is a discussion on Simple Cart Summary within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I am looking for a mod that can help me put a cart on the top of my page only ...

      
  1. #1
    Lurker
    Join Date
    Jul 2007
    Posts
    4
    Rep Power
    0


    Default Simple Cart Summary

    I am looking for a mod that can help me put a cart on the top of my page only with a summary of the contents, ex.

    You have 4 items in your cart. Total $45.00

    I saw something similar here:

    osCommerce: Better Cart info in Header v.1

    but I cant seem to figure out how to make it work in oscMax

    Any help is greatly appreciated/

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default Re: Simple Cart Summary

    in your template directory find:

    PHP Code:
    <!-- header //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr class="header">
        <td valign="middle"><?php echo '<a href="' tep_href_link(FILENAME_DEFAULT) . '">' tep_image(DIR_WS_IMAGES 'oscmax.gif''osCMax v2.0 - Power E-Commerce') . '</a>'?></td>
        <td align="right" valign="bottom"><?php echo '<a href="' tep_href_link(FILENAME_ACCOUNT'''SSL') . '">' tep_image(DIR_WS_IMAGES 'header_account.gif'HEADER_TITLE_MY_ACCOUNT) . '</a>&nbsp;&nbsp;<a href="' tep_href_link(FILENAME_SHOPPING_CART) . '">' tep_image(DIR_WS_IMAGES 'header_cart.gif'HEADER_TITLE_CART_CONTENTS) . '</a>&nbsp;&nbsp;<a href="' tep_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL') . '">' tep_image(DIR_WS_IMAGES 'header_checkout.gif'HEADER_TITLE_CHECKOUT) . '</a>'?>&nbsp;&nbsp;</td>
      </tr>
    </table>
    Change to:
    PHP Code:
    <!-- header //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr class="header">
    <?php /* Added: MOD - Cart in Header */ ?>
        <td class="infoBoxContents"><b>Your Cart Contains</b><br><a href="<?php echo tep_href_link('shopping_cart.php')?>" class="infoBoxContents"> <?php echo $cart->count_contents()?> items<br>Sub Total: <?php $currencies->format($cart->show_total())?></td>
    <?php /* Added: MOD - Cart in Header */ ?>
        <td align="right" valign="bottom"><?php echo '<a href="' tep_href_link(FILENAME_ACCOUNT'''SSL') . '">' tep_image(DIR_WS_IMAGES 'header_account.gif'HEADER_TITLE_MY_ACCOUNT) . '</a>&nbsp;&nbsp;<a href="' tep_href_link(FILENAME_SHOPPING_CART) . '">' tep_image(DIR_WS_IMAGES 'header_cart.gif'HEADER_TITLE_CART_CONTENTS) . '</a>&nbsp;&nbsp;<a href="' tep_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL') . '">' tep_image(DIR_WS_IMAGES 'header_checkout.gif'HEADER_TITLE_CHECKOUT) . '</a>'?>&nbsp;&nbsp;</td>
      </tr>
    </table>
    Add to your stylesheet.css
    Code:
    TD.headerCart {
      font-family: Verdana, Arial, sans-serif;
      font-size: 12px;
      background-image: img src="/images/pixel_trans.gif";
      background-repeat: repeat;
      background-position: center;
    }
    Good Luck
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. Admin Summary Info
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-28-2007, 02:18 AM
  2. Admin Store Summary
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-22-2007, 01:13 PM
  3. Admin Store Summary
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-22-2007, 10:11 AM
  4. How to do a Simple, Specific Shopping Cart Layout
    By Jimbeau in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 11-20-2003, 10:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •