Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected $end


Ackis

Recommended Posts

Posted

:'( Could anyone please tell me what I've done wrong....

 

I get this message...

 

Parse error: syntax error, unexpected $end in /hsphere/local/home/ackispac/rcmaffian.se/oscommerce_st/catalog/includes/column_right.php on line 27

 

 

I wanted to erase all the boxes to the right. I want a "clean" site to my customers to look at.

 

//Ackis

Jessica Fuchs

Posted
:'( Could anyone please tell me what I've done wrong....

 

I get this message...

 

Parse error: syntax error, unexpected $end in /hsphere/local/home/ackispac/rcmaffian.se/oscommerce_st/catalog/includes/column_right.php on line 27

I wanted to erase all the boxes to the right. I want a "clean" site to my customers to look at.

 

//Ackis

 

<?php
/*
 $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_BOXES . 'shopping_cart.php');

 if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 if (isset($HTTP_GET_VARS['products_id'])) {
   if (tep_session_is_registered('customer_id')) {
     $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
     $check = tep_db_fetch_array($check_query);
     if ($check['count'] > 0)   
 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
   }
?>

Jessica Fuchs

Posted

Well that is the problem.

 

Remove both see if that works.

 

Then try adding more until its corrected

 

This is a very common issue with all php programmers.

 

Hmm.. that didn't work :(
Posted

That code is a mess from start to finish.

 

If you really want to not have the right column, the cleanest way to do it is remove reference to it in every single page on the site. For instance in account_history.php you would delete

	<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>

and repeat that step in every other page on the site.

 

If you really want to do it by removing every box from column_right.php itself the code you would use would be something like this

<?php
/*
 $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

?>

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Posted

Ok, thank you!

 

I don't want any product-notifications or best-sellers... at all.

I do save everything I erase IF i should change my mind some day :rolleyes: but I don't think I will.

I belive the site is a mess.... :huh: when you go to a site and there is hundred of things blinking, rolling... and so on... you dont know where to look.... I don't want my site to be like that. That's why I mean that I want it to be "clean" :)

 

This is the first time I've done anything like this... I don't know anything about php... ok, I'm starting to understand some small thing but not much. I'm VERY GRATEFUL that you are all there helping me out!! :thumbsup:

 

The only thing I want to the right is (ofcourse) the shoppingcart.

 

I'll try to do what you've said.

 

Thank you very much.

Jessica Fuchs

Posted

If you want the shopping cart displayed on the right then you would use

<?php
/*
 $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

require(DIR_WS_BOXES . 'shopping_cart.php');

?>

 

But, my two cents is it would be much cleaner if you put the

require(DIR_WS_BOXES . 'shopping_cart.php');

into column_left.php and deleted all references to the right column as I described earlier.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Posted

Thank you very much for your help and tips!! I really appreciate it!! :) It looks alot better now!

 

I wonder if you could also guide/help me regarding "email notification products (and) newsletter" ?

I would like to remove that as well.

 

//Ackis

Jessica Fuchs

Archived

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

×
×
  • Create New...