Actually, that's a typo on the image name, and I guess I'll have to take the
blame for that, since I'm the one who actually entered it. :)

As far as the item count, just grab the code from navigation/basket,  and put it
in navigation/page_top, drop all the print statements, below is a bit of the
basket code:

Line 1: if this statement is true, the basket is empty, therefore no items in
basket,

else  you'll be looping through the items in the basket,
this is done in lines 11 thru 26:


Line 4: prints the Basket is Empty line, replace it with something like
           $total_Items = 0;
Line 18: Add a statement something like $total_Items += $sku_Quantity;
             $sku_Quantity is the actual count of the item(s) in the basket, so
just keep totalling it up,
             every time through the loop.

After the looping is done, $total_Items should have the item count in the
basket, and if you want it,
$order_Total will have the total price of all the items in the basket, from that
point, you do what you want
with the info:  and be sure and drop all those PRINT statements, you don't need
them, you just want the
totals.

---- snippet of navigation/basket code -----
        /*
        ** Retrieve all of the items in the user's cart.
        */
        $Query = "SELECT ss.Quantity, s.ID, s.Name, s.ListPrice, s.SalePrice ";
        $Query .= "FROM session_sku ss, sku s ";
        $Query .= "WHERE ss.SKU = s.ID ";
        $Query .= "AND ss.Session = '$sid' ";
        $DatabaseResult = mysql_query($Query, $DatabaseLink);

1.        if (!mysql_num_rows($DatabaseResult))
2.        {
3.                /* Continue line from above: "Your basket<BR>is empty." */
4.                print(L_NAV_BASKET_EMPTY);
5.        }
6.        else
7.        {
8.                /* List the items in a table. */
9.                $order_Total = 0.00;
10.                print("<TABLE>\n");
11.                while ($row = mysql_fetch_row($DatabaseResult))
12.                {
13.                        /* Parse the row. */
14.                        list($sku_Quantity, $sku_ID, $sku_Name, $sku_Price,
$sku_SalePrice) = $row;
15.                        $sku_Price = ($sku_SalePrice > 0) ? $sku_SalePrice :
$sku_Price;
16.                        $sku_Price *= $sku_Quantity;
17.                        $order_Total += $sku_Price;
18.
19.                        /* Output the row. */
20.                        print("<TR>\n");
21.                        print("<TD><FONT
SIZE=\"1\">$sku_Quantity</FONT></TD>\n");
22.                        print("<TD><FONT
SIZE=\"1\">$sku_Name</FONT></TD>\n");
23.                        print("<TD><FONT SIZE=\"1\">\$" .
number_format($sku_Price,2) .
24.                                "</FONT></TD>\n");
25.                        print("</TR>\n");
26.                }


Hope this helps

Kelley



Paul Ashton wrote:

> Dear Webdude,
>
> I don't want to get you in trouble with Kelley but!! the detail image for
> Signature 1.5 Multichannel Power Amplifier give the following error:
>
> Warning: Unable to open in /usr/parcargo.com//modules/screens/item_details
> on line 44
>
> Also would I be able to have a look at the code that gives the item count in
> the top right hand corner?
>
> Regards
> Paul
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: "FreeTrade" <[EMAIL PROTECTED]>
> Sent: Friday, October 06, 2000 4:53 PM
> Subject: Re: [FreeTrade] Live Site Using Freetrade
>
> > Hehehehe well I guess you know who's name was mud when this problem came
> > up :)
> > I re-coded the part that I cheated on and made the links the
> > way they were suppose to be not hard coded like I had them before so if
> > someone else would like to test it for us please do so and let us know if
> > you have the problem again..
> >
> > Thanks,
> > Webdude
> >
> >
> >
> > On Thu, 5 Oct 2000, John Steele wrote:
> >
> > >   I  added the stereo, and then pressed checkout.  It dropped the
> product.  I do not have cookie enabled.
> > >
> > > HTH,
> > >   John
> > >
> > > At 10/6/2000 03:28 PM, you wrote:
> > > >I have cookies on and simply followed the link off your email, I am
> still
> > > >not 100% myself how it works so I am not sure why this occurred for me
> to
> > > >tell youi the truth.
> > > >
> > > >Regards
> > > >Paul
> > > >
> > > >----- Original Message -----
> > > >From: "Kelley Lingerfelt" <[EMAIL PROTECTED]>
> > > >To: "FreeTrade" <[EMAIL PROTECTED]>
> > > >Sent: Friday, October 06, 2000 2:16 PM
> > > >Subject: Re: [FreeTrade] Live Site Using Freetrade
> > > >
> > > >
> > > >> Thanks Paul, I see the problem, somebody cheated and didn't use the
> > > >ScreenURL
> > > >> function, they hardcoded the URL's instead, now somebody will have to
> > > >check all
> > > >> the screens and see if this could be occuring elsewhere, won't they
> > > >Webdude? :)
> > > >>
> > > >> thanks for finding this Paul, I'm surprised that this got you, did
> you go
> > > >in the
> > > >> site not using cookies, just wondering out of curiosity, otherwise,
> it
> > > >would be
> > > >> hard to get this to happen unless you proceeded to this page directly
> > > >coming in
> > > >> or some other unique combination of clicks, irregardless, it is wrong
> and
> > > >will
> > > >> have to be corrected.
> > > >>
> > > >> thanks
> > > >> Kelley
> > > >>
> > > >>
> > > >> Paul Ashton wrote:
> > > >>
> > > >> > I hope I haven't causer any trouble. The good news is that I think
> I
> > > >have
> > > >> > found the problem. It is not session time outs, rather I think you
> may
> > > >have
> > > >> > incorrectly set the code for the links on the department pages. The
> home
> > > >> > page is o.k. , but the home theatre and security accessories depts.
> > > >contain
> > > >> > links to products that do not incorporate the SID, hence when you
> click
> > > >on
> > > >> > them a new session is generated.
> > > >> > For example the door window transmitter produces the following
> html:
> > > >> >
> > > >> > <td valign="top" width="25%">
> > > >> >       <div align="center"><font face="Verdana, Arial, Helvetica,
> > > >sans-serif"
> > > >> > size="2">
> > > >> >         <a
> > > >> > href="http://www.parcargo.com/index.html?SCREEN=item&item=13"><img
> > > >> > border="0"
> > > >src="http://www.parcargo.com/images/items/5818.gif"></a><b><br>
> > > >> >         Door/Window Transmitter </b></font></div>
> > > >> >     </td>
> > > >> >
> > > >> > >From what I understand it should produce the 'a herf' more like
> this.
> > > >> > <a
> > > >> >
> > >
> >href="http://www.parcargo.com/index.html?SCREEN=item&item=13;sid=GArb0Ou9ky
> A
> > > >> > FCOWA">
> > > >> >
> > > >> > However, you should note that I am a newbie so this may well be
> wrong.
> > > >> >
> > > >> > Regards
> > > >> > Paul
> > > >> >
> > > >> > ----- Original Message -----
> > > >> > From: "Kelley Lingerfelt" <[EMAIL PROTECTED]>
> > > >> > To: "FreeTrade" <[EMAIL PROTECTED]>
> > > >> > Sent: Friday, October 06, 2000 12:18 PM
> > > >> > Subject: Re: [FreeTrade] Live Site Using Freetrade
> > > >> >
> > > >> > > I don't know how to respond, any chance you were idle over 30
> minutes
> > > >> > between
> > > >> > > clicks ... the sessions will timeout in 30 minutes, is the only
> thing
> > > >I
> > > >> > can
> > > >> > > think of ...
> > > >> > >
> > > >> > > Any more details you can supply, I take it you mean the items
> were in
> > > >the
> > > >> > cart,
> > > >> > > and then they weren't in the cart.
> > > >> > >
> > > >> > > Kelley
> > > >> > >
> > > >> > >
> > > >> > > Paul Ashton wrote:
> > > >> > >
> > > >> > > > Dear webdude and Kelley,
> > > >> > > >
> > > >> > > > Your site looks pretty good, however, I was trying a few things
> out
> > > >to
> > > >> > get a
> > > >> > > > feel for the layout and noticed that some products that I
> added
> > > >fell
> > > >> > out of
> > > >> > > > the cart when I clicked on the menu items. I tried to replicate
> it
> > > >to
> > > >> > find
> > > >> > > > the step that caused it but it did not happen the second time
> > > >around.
> > > >> > > >
> > > >> > > > Regards
> > > >> > > > Paul
> > > >> > > > ----- Original Message -----
> > > >> > > > From: <[EMAIL PROTECTED]>
> > > >> > > > To: <[EMAIL PROTECTED]>
> > > >> > > > Sent: Friday, October 06, 2000 12:59 AM
> > > >> > > > Subject: [FreeTrade] Live Site Using Freetrade
> > > >> > > >
> > > >> > > > > Another site using Freetrade. We just got it done about a
> week
> > > >ago.
> > > >> > This
> > > >> > > > > is the site that Kelley Lingerfelt and I are working on. Let
> us
> > > >know
> > > >> > what
> > > >> > > > > you guys think. URL is  http://www.parcargo.com
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > ------------------------------------------------------------
> > > >> > > To subscribe:    [EMAIL PROTECTED]
> > > >> > > To unsubscribe:  [EMAIL PROTECTED]
> > > >> > > Site:            http://www.working-dogs.com/freetrade/
> > > >> > > Problems?:       [EMAIL PROTECTED]
> > > >> >
> > > >> > ------------------------------------------------------------
> > > >> > To subscribe:    [EMAIL PROTECTED]
> > > >> > To unsubscribe:  [EMAIL PROTECTED]
> > > >> > Site:            http://www.working-dogs.com/freetrade/
> > > >> > Problems?:       [EMAIL PROTECTED]
> > > >>
> > > >>
> > > >>
> > > >> ------------------------------------------------------------
> > > >> To subscribe:    [EMAIL PROTECTED]
> > > >> To unsubscribe:  [EMAIL PROTECTED]
> > > >> Site:            http://www.working-dogs.com/freetrade/
> > > >> Problems?:       [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >------------------------------------------------------------
> > > >To subscribe:    [EMAIL PROTECTED]
> > > >To unsubscribe:  [EMAIL PROTECTED]
> > > >Site:            http://www.working-dogs.com/freetrade/
> > > >Problems?:       [EMAIL PROTECTED]
> > > >
> > >
> > > --
> > > /* SteeleSoft Consulting  John Steele - Systems Analyst/Programmer
> > >  *  We also walk dogs...  [EMAIL PROTECTED]
> > >  *                        http://www.gamecomputer.com/ssc/
> > >  */
> > >
> > >
> > > ------------------------------------------------------------
> > > To subscribe:    [EMAIL PROTECTED]
> > > To unsubscribe:  [EMAIL PROTECTED]
> > > Site:            http://www.working-dogs.com/freetrade/
> > > Problems?:       [EMAIL PROTECTED]
> > >
> >
> >
> >
> > ------------------------------------------------------------
> > To subscribe:    [EMAIL PROTECTED]
> > To unsubscribe:  [EMAIL PROTECTED]
> > Site:            http://www.working-dogs.com/freetrade/
> > Problems?:       [EMAIL PROTECTED]
>
> ------------------------------------------------------------
> To subscribe:    [EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Site:            http://www.working-dogs.com/freetrade/
> Problems?:       [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to