X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   if statement on order_invoice.tpl (https://forum.x-cart.com/showthread.php?t=14292)

rjackson7799 06-01-2005 02:00 AM

if statement on order_invoice.tpl
 
On my invoice I want the langauge variable to be controlled by an if statement. If the order status IS NOT complete, I want the invoice to say "Order Confirmation", but if the order status IS complete I want it to say "Invoice".

Forgive my poor knowledge of PHP, but I guess the logic would be

if orderstatus does not eqal complete
{$lng.lbl_ordercofirmation|upper}
else
{$lng.lbl_invoice|upper}

Any suggestions?

balinor 06-08-2005 05:57 PM

Let me take a crack at this one, although I make no promises :)

How about:

Code:

{if $order.status ne "C"}

{$lng.lbl_ordercofirmation|upper}

{else}

{$lng.lbl_invoice|upper}
 
{/if}



All times are GMT -8. The time now is 11:21 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.