View Single Post
  #1  
Old 06-01-2005, 02:00 AM
 
rjackson7799 rjackson7799 is offline
 

Member
  
Join Date: Jan 2004
Location: Los Angeles
Posts: 24
 

Default 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?
__________________
X-Cart 4.4.0
PHP 5.2.5
Reply With Quote