Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Code generating parse error. Please help.


jpweber

Recommended Posts

Posted

Hello all. I added the tax exempt contribution and it works fine, fixed a minor bug, etc., but there's a part of the form on create_account.php that's giving me headaches, and creating a parse error:

Parse error: syntax error, unexpected $end in /home/mysite/public_html/catalog/create_account.php on line 604 ... which is my last line.

 

I'm hoping that if I paste this part of the code that's causing the error, someone can tell me where the guy who made the instructions went wrong. Thanks in advance,

 

J (code creating error is below)

 

<?php // BEGIN - Tax Exempt and Organization Discounts ?>

<tr>

<td class="main"><?php echo ENTRY_TAX_EXEMPT; ?></td>

<td class="main">

<?php

if ($account['customers_tax_exempt'] == '1') {

echo ENTRY_TAX_EXEMPT_YES;

} else {

echo ENTRY_TAX_EXEMPT_NO;

}

if ($process == true) {

echo tep_draw_hidden_field('tax_exempt');

}

?></td>

</tr>

<tr>

<td class="main"> <?php echo ENTRY_TAX_EXEMPT_ID; ?></td>

<td class="main">

<?php

if ($process == true) {

echo $tax_exempt_id . tep_draw_hidden_field('tax_exempt_id');

} else {

echo tep_draw_input_field('tax_exempt_id', $account['customers_tax_exempt_id']) . ' ' . ENTRY_TAX_EXEMPT_ID_TEXT;

}

?>

</tr>

 

<tr>

<td class="main"><?php echo ENTRY_ORG_TYPE; ?></td>

<td class="main">

<?php

if ($process == true) {

$organization_query = tep_db_query("select org_type_title, org_type_id from " . TABLE_ORGANIZATION_TYPE . " where org_type_id = " . $organization_type);

$organization_row = tep_db_fetch_array($organization_query);

echo $organization_row['org_type_title'];

echo tep_draw_hidden_field('organization_type');

} else {

$organization_array = array();

$organization_query = tep_db_query("select org_type_title, org_type_id from " . TABLE_ORGANIZATION_TYPE . " order by org_type_title asc");

while ($organization_values = tep_db_fetch_array($organization_query)) {

$organization_array[] = array('id' => $organization_values['org_type_id'], 'text' => $organization_values['org_type_title']);

}

?>

</td>

</tr>

// END - Tax Exempt and Organization Discounts

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Posted

As usual, just an extra unnecessary } in the wrong place ... I fixed it; works fine. I'll send a note to the contribution creator and let him know. I'm getting better for a PHP newb .... hehe. Thanks,

 

J

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Archived

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

×
×
  • Create New...