Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osBarcode


Junny

Recommended Posts

Hi, everyone.

I'm trying to install the osBarcode.

http://www.oscommerce.com/community/contributions,1268

I Changed the suggested lines of invoice.php and

put the osbarcode.php to admin directory.

Barcode images does not show in the invoice.php.

 

file changes: /admin/invoice.php

<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX;?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_BARCODE; ?></td>
</tr>

 

and

 

' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "¥n";
echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "¥n" .
' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "¥n" .
' <td class="dataTableContent" align="right" valign="top"><b>' . $price_with_tax . '</b></td>' . "¥n" .
' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "¥n" .
' <td class="dataTableContent" align="right" valign="top"><b>' . $tprice_with_tax . '</b></td>' . "¥n";
echo ' </tr>' . "¥n" .
' <td class="dataTableContent" align="right" valign="top"><img src="osbarcode.php?barcode=' . $order->products[$i]['model']. '"></td>' . "¥n";
}
?>

(sorry, it's Japanese Tax customized version)

wrong code?

 

and

I checked GD, that's enabled.

My setting is

 

GD Support enabled

GD Version bundled (2.0.28 compatible)

FreeType Support enabled

FreeType Linkage with freetype

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

 

Somebody help me! :x

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...