[ic] Display Quantity Flypage++

Joachim Leidinger interchange-users@interchange.redhat.com
Thu Feb 28 10:06:01 2002


Steve Graham wrote:
> 
> 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?

Yes! Read
http://interchange.redhat.com/archive/interchange-users/2001/msg10876.html
at the section " -- Contextual quoting is preferred, i.e." and see down
in this email.
 
> >Steve Graham wrote:
> >[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]

Add a line like

TEST tp1 and tp2:[scratch tp1] vs. [scratch tp2]<BR>

to see what you get.

> > > [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