Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Couple of issues if someone could help


Guest

Recommended Posts

Posted

Hi guys, if anyone can help I would appreciate it. When I click contact us on our web site http://www.f1carbon.co.uk it comes up with an error on line 178. Anyone tell me what I need to do to correct it or what`s missing. I have a problem with loading extra images into the product description. The images just don`t upload, so I can`t have a couple of different angles of the same product, just a main image. Last problem is, I need to add an accept terms and conditions box to the checkout. I know there is a contribution for it but wouldn`t know where to start with it.

 

Any help appreciated.

Regards Terry.

Posted
Hi guys, if anyone can help I would appreciate it. When I click contact us on our web site http://www.f1carbon.co.uk it comes up with an error on line 178. Anyone tell me what I need to do to correct it or what`s missing. I have a problem with loading extra images into the product description. The images just don`t upload, so I can`t have a couple of different angles of the same product, just a main image. Last problem is, I need to add an accept terms and conditions box to the checkout. I know there is a contribution for it but wouldn`t know where to start with it.

 

Any help appreciated.

Regards Terry.

paste contents around line 170-185 of contact_us.php here

Posted

}else{

foreach(explode("," ,CONTACT_US_LIST) as $k => $v) {

$send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v));

}

echo tep_draw_pull_down_menu('send_to', $send_to_array);

}

 

echo ;

}

Posted

Suggested change:

 

//echo;

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Changed that and now have this message instead.

 

Parse error: syntax error, unexpected '<' in /home/onlinese/public_html/contact_us.php on line 181

Posted

The line I fixed was 178.

 

You haven't posted line 181.

<_<

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
The line I fixed was 178.

 

You haven't posted line 181.

<_<

 

Sorry, everytime a part of the code is fixed it comes up with anoher syntax error. Maybe the whole code is written wrong for contactus_php.

Posted

Code copied from 170 until the end. Thanks for your help buddy.

 

 

 

}else{

foreach(explode("," ,CONTACT_US_LIST) as $k => $v) {

$send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v));

}

echo tep_draw_pull_down_menu('send_to', $send_to_array);

}

 

//echo ;

 

 

<?php echo ENTRY_REASON; ?><br>

<select name="reason">

<?php echo '<option value="' . REASONS1 . '">' . REASONS1 . '</option>'; ?>

<?php echo '<option value="' . REASONS2 . '">' . REASONS2 . '</option>'; ?>

<?php echo '<option value="' . REASONS3 . '">' . REASONS3 . '</option>'; ?>

<?php echo '<option value="' . REASONS4 . '">' . REASONS4 . '</option>'; ?>

<?php echo '<option value="' . REASONS5 . '">' . REASONS5 . '</option>'; ?>

<?php echo '<option value="' . REASONS6 . '">' . REASONS6 . '</option>'; ?>

 

</select><br />

<?php echo ENTRY_ENQUIRY; ?><BR>

<?php echo tep_draw_textarea_field('enquiry', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?>

<br />

</td></tr></table></td>

</tr>

</table>

<br />

<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td></tr>

<?php

}

?>

</table></form></td>

<!-- body_text_eof //-->

<td class="right-column" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

//echo; 


<?php echo ENTRY_REASON; ?><br>

Should be:

 

//echo; 


echo ENTRY_REASON; ?><br>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thanks, that sorted that part out. Now I have this on the last line of the code.

 

Parse error: syntax error, unexpected $end in /home/onlinese/public_html/contact_us.php on line 228

 

 

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

That error usually means the curly braces { and } don't appear in equal number in the active code.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
That error usually means the curly braces { and } don't appear in equal number in the active code.

 

By that do you mean, I need to find one that hasn`t been closed. I.E there is an open bracket but no close bracket? Sorry these are probably very newby questions but haven`t a clue.

Posted

It means just what it says.

 

They have to appear in equal number in the active code.

 

Try counting the left ones, then count the right ones and see if there is a difference.

 

If there is, then you have to detemine are there too many of one, or too few of the other.

:huh:

 

That's as descriptive as I can get. There is no "one size fit's all" solution.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...