[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Display Quantity Flypage++
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]+
> [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