Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I Need a little coding help PLEASE


Guest

Recommended Posts

Hello all,

 

I am tring to make this code work.

if ['fedex_track_num'] and ['ups_track_num'] and ['usps_track_num'] are ALL null echo the text...

 

Below is a little code snipet form the page that would print the text if one was null but I can't figure out how to make it work with three items to check?

 

 

<tr>

<?php

if ($order->info['fedex_track_num'] == NULL)

{ echo TEXT_NO_TRACKING_AVAILABLE;?></tr>

<?php } else{?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td>

</tr>

<?php

}

?>

Thanks

 

 

Adam Young

Young's gifts

Link to comment
Share on other sites

<tr>

<?php

if ($order->info['fedex_track_num'] == NULL

&& $order->info['ups_track_num'] == NULL

&& $order->info['usps_track_num'] == NULL)

{ echo TEXT_NO_TRACKING_AVAILABLE;?></tr>

<?php } else{?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td>

</tr>

<?php

}

?>

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...