Floob Posted November 21, 2006 Posted November 21, 2006 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.
abra123cadabra Posted November 21, 2006 Posted November 21, 2006 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.
Floob Posted November 21, 2006 Author Posted November 21, 2006 Try this: <td class="main"><img src="<?php echo 'barcodegen.php?barcode=' . tep_db_input($oID); ?>"></td> abra You're a star! :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.