Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Syntax help


Floob

Recommended Posts

Hi,

 

I'm trying to modify some code, but screwing up the syntax. This is on invoice.php in the admin directory.

 

This code adds the order number (in text):

<td class="main"><?php echo ENTRY_SITENAME . tep_db_input($oID); ?></td>

 

This code displays a model code as a barcode:

	  echo '		</td>' . "\n" .
	   '		<td class="dataTableContent" valign="top"><img src="barcodegen.php?barcode=' . $order->products[$i]['model'] . ' "></td>' . "\n";

 

How can I get the order number to appear as a barcode?

 

Thanks for any help.

 

Floob.

Link to comment
Share on other sites

Try this:

<td class="main"><img src="<?php echo 'barcodegen.php?barcode=' . tep_db_input($oID); ?>"></td>

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...