Jump to content

I need help on my php but i am getting errors on admin orders


kustomjs

Recommended Posts

Hi Guys

I am a newbie here and I have a problem with my oscommerce php code and its under admin orders and I am getting this error: Parse error: parse error, unexpected '}' in catalog/admin/orders.php on line 472 and I moded the files with admin notes and google checkout and I also attached my admin code in TXT format

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

ok here it is

 

</form></tr>

<tr>

<td colspan="2" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $HTTP_GET_VARS['oID']) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>

</tr>

<?php

} else {

?>

<tr>

<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

Link to comment
Share on other sites

U should understand that posting 875 lines of code is hilarious. As thorpe suggested post only several lines. Anyway i just took a look what was going around line 472. U have an if else statement and im guessing u have two repeated } (one one line 463 and one in line 473). Try removing one of them and see if thats the problem.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.