Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

If then else statement in Invoice help!


Guest

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...