osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Right Column

This is a discussion on Right Column within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; My includes/column_right.php file looks like this: <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-13-2005, 06:42 PM
New Member
 
Join Date: Mar 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seaserver
Default Right Column

My includes/column_right.php file looks 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
*/

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) {
include(DIR_WS_BOXES . 'best_sellers.php');
} else {
include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'best_sellers.php');
}

if (isset($HTTP_GET_VARS['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {
include(DIR_WS_BOXES . 'specials.php');
}

require(DIR_WS_BOXES . 'reviews.php');

if (substr(basename($PHP_SELF), 0, != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
include(DIR_WS_BOXES . 'currencies.php');
}
?>

I want to remove everything except have shopping cart, specials & reviews no matter where they are in the shopping cart. I tried commenting out everything except
<?php

require(DIR_WS_BOXES . 'shopping_cart.php');
include(DIR_WS_BOXES . 'specials.php');

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

and I tried changing the include for specials to require, but specials does not appear.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-13-2005, 09:18 PM
Member
 
Join Date: Dec 2004
Posts: 75
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 4
bdneuman is on a distinguished road
Default Re: Right Column

Quote:
Originally Posted by seaserver
My includes/column_right.php file looks 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
*/

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) {
include(DIR_WS_BOXES . 'best_sellers.php');
} else {
include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'best_sellers.php');
}

if (isset($HTTP_GET_VARS['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {
include(DIR_WS_BOXES . 'specials.php');
}

require(DIR_WS_BOXES . 'reviews.php');

if (substr(basename($PHP_SELF), 0, != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
include(DIR_WS_BOXES . 'currencies.php');
}
?>

I want to remove everything except have shopping cart, specials & reviews no matter where they are in the shopping cart. I tried commenting out everything except
<?php

require(DIR_WS_BOXES . 'shopping_cart.php');
include(DIR_WS_BOXES . 'specials.php');

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

and I tried changing the include for specials to require, but specials does not appear.
Simple things first (believe me, I've pulled my hair out over simpler) - you DO have some active specials defined in admin?

If yes, do your shopping cart and reviews boxes display? Did your specials box appear before this change?
__________________
Brian Neuman
Webmaster
www.honeybeadjewelry.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-14-2005, 11:09 AM
New Member
 
Join Date: Mar 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seaserver
Default RE: Re: Right Column

Yes the simple things. I didn't have any specials defined in the admin area. I assumed since the reviews showed up whether anything was assigned or not that the specials would do the same thing.
Thanks for your help.
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
Add Column Info Box Cisco osCMax v2 Customization/Mods 2 07-12-2006 04:06 AM
Add image to column gamefreak7 osCMax v2 Customization/Mods 1 07-14-2005 10:54 PM
Move all in rh column to left and remove RH column jloyzaga osCMax v1.7 Discussion 0 03-24-2004 04:24 PM
removing right column?? amilo osCommerce 2.2 Modification Help 1 12-26-2003 01:08 PM
Background in right column EPierre osCommerce 2.2 Modification Help 1 11-08-2002 07:27 AM


All times are GMT -8. The time now is 08:09 PM.


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