
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] [if] [/if] inside loop list HELP
Salvador Caballe wrote:
>
> I need to include a [if] [/if] inside loop list in the order_detail.html page.
>
> somethink like this:
>
> loop list="[scratch arg]"]
> <TABLE BORDER=0> [html-table fr='class="contentbar1"']
> <B>ORDER NUMBER [scratch arg]
> .......
> ......
> <B>Payment Method [if [loop-data transactions payment_method] eq COD]
> Cash on delivery
> [else]
> [ loop-data transactions payment_method]
> [/else]
> [/if]
>
> I found [if-loop-data database fieldname] but only checks if it exists.
>
> best regards Salvador Caballé
Try
[seti checkpayment][loop-data transactions payment_method][/seti]
[if scratch checkpayment =~ /COD/]
Cash on delivery
[else]
[scratch checkpayment]
[/else]
[/if]
Why not using such if condition in your profiles.order file at the
section "checkout_profile" and subsection "fax_order" or so?
Joachim
--
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[Hans-Joachim.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