Guest Posted January 22, 2011 Share Posted January 22, 2011 I am tring to add a conditional statement in my invoice to display different information for different payment methods used. Here is the statement I am using, but it just isn't working. <?php $p=ENTRY_PAYMENT_METHOD; if ($p=="Check/Money Order") echo "Information about check payers will be displayed!"; else echo "For non check payers, different information will be displayed!"; ?> Can any help to make this work right? Thank you in advance. :rolleyes: Link to comment Share on other sites More sharing options...
germ Posted January 22, 2011 Share Posted January 22, 2011 From looking at the code, it looks like this line: $p=ENTRY_PAYMENT_METHOD; Needs to be: $p=$order->info['payment_method']; If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted January 23, 2011 Share Posted January 23, 2011 Thank you for your help. That was it - it worked! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.