At 16:45 21/09/00, you wrote:
>Your right Bob, but what I want is for the basket to not show up at all.
>Currently it always says Shopping basket or Shopping Cart (depending upon
>the wording.).  I am trying to make nothing show up if the basket is empty.
>Not having much success yet, but I'll keep trying.
>
>Shawn
>

snip from navigation/basket
         /*
         ** Start the page with a link to the "contents" screen.
         */
         print("<BR>\n");
         print("<A HREF=\"" . ScreenURL("contents") . "\">");
         print(L_NAV_BASKET_CONTENTS);
         print("</A><BR>\n");

         /*
         ** 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);
         if (!mysql_num_rows($DatabaseResult))
         {
                 /* Continue line from above: "Your basket<BR>is empty." */
                 print(L_NAV_BASKET_EMPTY);
         }
         else
         {
                 /* List the items in a table. */
etc etc

change it to


         /*
         ** 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);
         if (!mysql_num_rows($DatabaseResult))
         {
                 /* Continue line from above: "Your basket<BR>is empty." */
                 //print(L_NAV_BASKET_EMPTY);
         }
         else
         {
         /*
         ** Start the page with a link to the "contents" screen.
         */
         print("<BR>\n");
         print("<A HREF=\"" . ScreenURL("contents") . "\">");
         print(L_NAV_BASKET_CONTENTS);
         print("</A><BR>\n");
                 /* List the items in a table. */
etc etc
you just move the bit that prints the link


>----- Original Message -----
>From: "Bob Hutchinson" <[EMAIL PROTECTED]>
>To: "FreeTrade" <[EMAIL PROTECTED]>
>Sent: Thursday, September 21, 2000 2:35 AM
>Subject: Re: [FreeTrade] Need help with Changes to Basket
>
>
> > At 18:18 19/09/00, you wrote:
> > >Hi All;
> > >
> > >I am trying to make changes to the basket so it only show up when an item
>is
> > >in it.  And I'm not sure how to do that.  I have been modifying the code
> > >that blocks the wishlist unless the user is logged in, but that is not
> > >working.
> > >Any thoughts on how to do this.
> > >
> > >Shawn
> > >
> >
> > It already does. Read the code in navigation/basket. It prints 'basket is
> > empty' if there are no items in basket. look at lines 68-73
> >
> >
> > >------------------------------------------------------------
> > >To subscribe:    [EMAIL PROTECTED]
> > >To unsubscribe:  [EMAIL PROTECTED]
> > >Site:            http://www.working-dogs.com/freetrade/
> > >Problems?:       [EMAIL PROTECTED]
> >
> > bye
> > Bob Hutchinson
> > [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]

bye
Bob Hutchinson
[EMAIL PROTECTED]



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

Reply via email to