Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

if statement on order_invoice.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 06-08-2005, 05:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:57 PM.

   

 
X-Cart forums © 2001-2020