osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Incorporating column left and right together.

This is a discussion on Incorporating column left and right together. within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I have very little experience with PHP, but I'm game for a laugh.. What I have been trying to do ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-22-2004, 11:20 AM
New Member
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
billybeag
Default Incorporating column left and right together.

I have very little experience with PHP, but I'm game for a laugh..
What I have been trying to do is to incorporate some of the items in the column_left file so that they appear in the column_right box.
The site I am designing started out as just a basic html/css site with a bit of javascript. Now it needs to show 200+ products and decided the most efficient way to do this was to use dynamic data.
What I havw done so far is modify the main_page template to show my clients logo and all the css to match the site look.

I have tried to copy and paste the relevant pieces of code from one box into the other, however though I try to follow the syntax diligently I keep getting a parse error in the right box I have setup.
Could it be that there is some other file that interferes with what I am doing?
I realise I should debug "my" code but I have tried, and basically I haven't a clue. Please help, this is getting urgent.

Parse error: parse error in /homepages/38/d91389000/htdocs/catalog/includes/column_right.php on line 24
and this is the relevant code

<?php

require(DIR_WS_BOXES . 'shopping_cart.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 ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
include(DIR_WS_BOXES . 'categories.php');
}
require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');


require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');
?>

Line 24 is the closing tag!!
I reckon the error must be earlier.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-22-2004, 12:39 PM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

trying to find the error i added some indents or tabs (or wahtever the correct English name is)
Code:
<?php

require(DIR_WS_BOXES . 'shopping_cart.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 ((USE_CACHE == 'true') && empty($SID))
{
  echo tep_cache_categories_box();
}
else
{
  include(DIR_WS_BOXES . 'categories.php');
}
require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');


require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');
?>
There are at least two closing "}" missing

the way you wrote the code, it is very difficult to see this

hth,
paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-22-2004, 01:47 PM
New Member
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
billybeag
Default

Right, I will examine this again, and actually write the code not copy and paste.
I had the same problem with my CSS for a while, I kept forgetting the ;
veel danke
tot straaks

(sorry my dutch is 20 years out of use.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 05-18-2004, 07:17 PM
Active Member
 
Join Date: May 2004
Location: worcester ma
Posts: 162
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fridgemags
Default

Cant you simply move the includes out of the leftcolumn.php file and add it to the rightcolumn.php file.?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Move Left Column Down torweb osCMax v2 Customization/Mods 1 05-01-2006 03:15 PM
How To: have different right and left column widths Kristine osCMax v1.7 Discussion 1 08-03-2005 09:53 PM
Left column to large gamefreak7 osCMax v2 Features Discussion 1 07-27-2005 09:47 AM
Move all in rh column to left and remove RH column jloyzaga osCMax v1.7 Discussion 0 03-24-2004 03:24 PM
left column unstable JohnW osCommerce 2.2 Modification Help 3 11-27-2002 06:52 PM


All times are GMT -8. The time now is 05:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax