[ic] Display Quantity Flypage++

Steve Graham interchange-users@interchange.redhat.com
Thu Feb 28 09:10:00 2002


Oops!

$tt1 = '[scratch]';
$tt2 = '[scratch]';

should be
$tt1 = '[scratch tp1]';
$tt2 = '[scratch tp2]';

I've tried so many different ways - I slipped up when I retyped the code. 
Thanks - Any Suggestions Joachim?

-Steve

>From: Joachim Leidinger <jojo@blackpoint.de>
>Reply-To: interchange-users@interchange.redhat.com
>To: interchange-users@interchange.redhat.com
>Subject: Re: [ic] Display Quantity Flypage++
>Date: Thu, 28 Feb 2002 10:16:15 +0100
>
>Steve Graham wrote:
> >
> > Hello,
> >
> > Regarding displaying quantity breaks in the flypage:
> >
> > This code should work if I can figure out how to make the comparison to 
>the
> > two strings. $tt1 & $tt2 ->Help!
> > Ideally this should skip displaying the prices if the discount doesn't
> > change.
> > From what I can read in the docs the explicit if may only allow 1 
>variable
> > to be set before the compare, but I noticed the minimal comment about 
>[if
> > explicit args] in the docs, but could not find examples.
> >
> > [tmp tp1][item-price noformat=1][/tmp]
> > [loop prefix=break 
>list="1,2,3,4,5,6,10,12,15,20,24,25,36,48,50,72,100,144"]
> >   [tmp tp2] [price code="[item-code]" quantity="[break-code]" 
>noformat=1]
> > [/tmp]
> >
> > [if explicit]
> >    [condition]
> >      $tt1 = '[scratch]';
> >      $tt2 = '[scratch]';
>
>Which scratch variable??? [scratch tp1] and [scratch tp2]!
>
> >      return 1 if $tt1 ne $tt2;
> >      return 0;
> >    [/condition]
> >        Quantity [break-code]+ &nbsp;
> >        [price code="[item-code]" quantity="[break-code]"] <br>
> >        [tmp tp1][price code="[item-code]" quantity="[break-code]"
> > noformat=1]
> >        [/tmp]
> >   [/if]
> > [/loop]
> >
> > Thanks,
> > Steve
>
>Joachim
>
>--
>Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
>[leidinger@bpanet.de]
>Black Point Arts Internet Solutions GmbH
>http://www.bpanet.de
>_______________________________________________
>interchange-users mailing list
>interchange-users@interchange.redhat.com
>http://interchange.redhat.com/mailman/listinfo/interchange-users




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.