Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can anyone help me do these things?


Recommended Posts

Posted

This is my site - www.yorkshirepcs.co.uk

 

I would like to move the boxes on right over a little so its even.

 

I would also like to know how to make text bigger and how to change the colour.

 

I would like to get rid of the box around the bottom but put a box around the welcome text.

 

I would also like to change the colour of the boxes.

 

I have no idea how complicated any of this stuff is but my 1st post was tonight and people answered super quick and super friendly so I though I would answer a few more questions.

 

THANKS GUYS!

Posted

Well I know what it's like to be in your position because I'm just a little ahead of you myself.

 

I would like to move the boxes on right over a little so its even.

 

Not to sure what you mean. The infoboxes?

You want to move them where? Do you mean transfer some from one side to the other?

 

I would also like to know how to make text bigger and how to change the colour.

 

This is done through the Cascading style sheet. ("stylesheet.css")

 

I would like to get rid of the box around the bottom but put a box around the welcome text.

 

You want the new products box removed from the "catalog" page is that right?

 

I would also like to change the colour of the boxes.

 

For that you either do it from the Cascading style sheet or with a seperate downloadable add on that let's you customize each box individually. For your purposes you probably want the .CSS again.

Posted

Not to sure what you mean. The infoboxes?

You want to move them where? Do you mean transfer some from one side to the other?

 

^^ If you look on my site they are about 1cm away from the right hand side of the page, looks a bit daft.

 

This is done through the Cascading style sheet. ("stylesheet.css")

 

^^ Where would I find this?

 

You want the new products box removed from the "catalog" page is that right?

 

^^ Yes exactly right :).

 

Thanks for all your help m8!!!

Posted
If you look on my site they are about 1cm away from the right hand side of the page, looks a bit daft.

Oh. Hmm that's weird. Mine isn't like that. I can only "guess" what's happened there. Maybe you set the center column width for something like 95%(?) and the right column shifted left as a result?

 

Where would I find this?

 

catalog/stylesheet.css

Oh and for editing your stylesheets you'll probably want this...

tslogo_3sm2.gif

 

You want the new products box removed from the "catalog" page is that right?

^^ Yes exactly right :).

Thanks for all your help m8!!!

That seems easy enough to figure out. Let me see if I can figure that one out....

Posted

Oh. Hmm that's weird. Mine isn't like that. I can only "guess" what's happened there. Maybe you set the center column width for something like 95%(?) and the right column shifted left as a result?

 

^^ Don't really understand that to be honest

 

I am just trying to use Top Style but haven't got a clue how! Is there an easy way to change the border colour?

Posted
Don't really understand that to be honest
Nevermind. I'm just guessing. Wait for someone who knows for sure.

 

I am just trying to use Top Style but haven't got a clue how! Is there an easy way to change the border colour?

Have you ever used style sheets before?

Basically you make changes to the style sheet and it effects the entire OSC site. Locate the border you want to change in the style sheet, define the colour, upload the stylesheet back onto the server, and it'll change "automatically"

Posted

No I've never used style sheets before. It seems like I am just changing loads of borders but nothing is happening.

 

So say for example I wanted to change the categories border colour where would I find the categories box to change it?

 

Also do I just go to the right and and select - border colour?

Posted

I found it by viewing source on the page. It looked like it was an incomplete infoBox in column_right.php, but it would be hard to say without looking at the php file.

 

Good luck,

Matt

Posted

column_right.php? index.php? Something included by either index.php or column_right.php? I looked again and it disappears on product_info.php, so it is probably not column_right.php. Therefore, it will probably appear soon after the include for column_right.php in the index.php file.

 

Good luck,

Matt

Posted

<?php

/*

$Id: default.php,v 1.3 2003/02/15 22:14:46 wilt Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', '<font size=2>The services we offer are:<br><br>

 

<a href=" http://yorkshirepcs.co.uk/index.php?cPath=...;<b>Ready To Go PC Packages</b> </a> - Recommended packages built by us<br><br>

 

<a href=" http://yorkshirepcs.co.uk/index.php?cPath=...<b>Custom Built PCs</b> </a> - Pick the parts you want or tell us your budget and what you are going to use the PC for and we can advise you <br><br>

 

<b>Parts</b> - A huge selection of PC parts ready for immediate dispatch<br><br>

 

<a href=" http://yorkshirepcs.co.uk/index.php?cPath=...rades</b> </a> - We can carry out any upgrade <br><br>

 

<a href="http://yorkshirepcs.co.uk/index.php?cPath=125"><b>Repairs</b></a> - Does your PC need repairing? <br><br>

 

<a href=" http://yorkshirepcs.co.uk/index.php?cPath=...icing</b> </a> - We offer PC servicing<br><br>

 

To view information about any of the above simply click on the name. If you would like to view the list of our products please use the navigation on the left. You can return to this page at any time by clicking home in the top left hand side of the screen.</font>

');

define('TABLE_HEADING_DEFAULT_SPECIALS', 'Specials For %s');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

define('TABLE_HEADING_FEATURED_PRODUCTS', 'Featured Products');

 

if (($category_depth == 'products') || ($HTTP_GET_VARS['manufacturers_id'])) {

define('HEADING_TITLE', 'Products');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 '');

define('TEXT_NOW', '' now');

define('TEXT_ALL', 'All');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Welcome to Yorkshire PC Services');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

define('TABLE_HEADING_FEATURED_PRODUCTS_CATEGORY', 'Featured Products in %s');

?>

 

Thats is my index.php. I can't seem to find it anywhere. I'm sorry if I'm no good and this but thanks a lot for your help!!

Posted

That's the one from languages. You want to look at the one in the catalog/root directory.

 

Good luck,

Matt

Posted

<?php

/*

$Id: default.php,v 1.79 2002/11/23 02:08:10 thomasamoulton Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// the following cPath references come from application_top.php

$category_depth = 'top';

if ($cPath) {

$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . $current_category_id . "'");

$cateqories_products = tep_db_fetch_array($categories_products_query);

if ($cateqories_products['total'] > 0) {

$category_depth = 'products'; // display products

} else {

$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . $current_category_id . "'");

$category_parent = tep_db_fetch_array($category_parent_query);

if ($category_parent['total'] > 0) {

$category_depth = 'nested'; // navigate through the categories

} else {

$category_depth = 'products'; // category has no products, but display the 'no products' message

}

}

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

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

<!-- header_eof //-->

 

<!-- body //-->

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

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

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

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<?php

if ($category_depth == 'nested') {

$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'");

$category = tep_db_fetch_array($category_query);

?>

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

<tr>

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

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

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

<tr>

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

<tr>

<?php

if ($cPath && ereg('_', $cPath)) {

// check to see if there are deeper categories within the current category

$category_links = array_reverse($cPath_array);

$size = sizeof($category_links);

for($i=0; $i<$size; $i++) {

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' order by sort_order, cd.categories_name");

if (tep_db_num_rows($categories_query) < 1) {

// do nothing, go through the loop

} else {

break; // we've found the deepest category the customer is in

}

}

} else {

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' order by sort_order, cd.categories_name");

}

 

$rows = 0;

while ($categories = tep_db_fetch_array($categories_query)) {

$rows++;

$cPath_new = tep_get_path($categories['categories_id']);

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

echo ' <td align="center" class="smallText" style="width: ' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "n";

if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($categories_query))) {

echo ' </tr>' . "n";

echo ' <tr>' . "n";

}

}

?>

</tr>

</table></td>

</tr>

<tr>

<td><br><?php $new_products_category_id = $current_category_id; include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

</table></td>

</tr>

</table></td>

<?php

} elseif ($category_depth == 'products' || $HTTP_GET_VARS['manufacturers_id']) {

// create column list

$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,

'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,

'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,

'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,

'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,

'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,

'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,

'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

asort($define_list);

 

$column_list = array();

reset($define_list);

while (list($column, $value) = each($define_list)) {

if ($value) $column_list[] = $column;

}

 

$select_column_list = '';

 

$size = sizeof($column_list);

for ($col=0; $col<$size; $col++) {

if ( ($column_list[$col] == 'PRODUCT_LIST_BUY_NOW') || ($column_list[$col] == 'PRODUCT_LIST_PRICE') ) {

continue;

}

 

if ($select_column_list != '') {

$select_column_list .= ', ';

}

 

switch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model';

break;

case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name';

break;

case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name';

break;

case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity';

break;

case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image';

break;

case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight';

break;

}

}

 

if ($select_column_list != '') {

$select_column_list .= ', ';

}

 

// show the products of a specified manufacturer

if ($HTTP_GET_VARS['manufacturers_id']) {

if ($HTTP_GET_VARS['filter_id']) {

// We are asked to show only a specific category

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . $languages_id . "' and p2c.categories_id = '" . $HTTP_GET_VARS['filter_id'] . "'";

} else {

// We show them all

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'";

}

// We build the categories-dropdown

$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' and p.manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name";

} else {

// show the products in a given categorie

if ($HTTP_GET_VARS['filter_id']) {

// We are asked to show only specific catgeory

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . $HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . $languages_id . "' and p2c.categories_id = '" . $current_category_id . "'";

} else {

// We show them all

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . $languages_id . "' and p2c.categories_id = '" . $current_category_id . "'";

}

// We build the manufacturers Dropdown

$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . $current_category_id . "' order by m.manufacturers_name";

}

 

$cl_size = sizeof($column_list);

if ( (!$HTTP_GET_VARS['sort']) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'],0,1) > $cl_size) ) {

for ($col=0; $col<$cl_size; $col++) {

if ($column_list[$col] == 'PRODUCT_LIST_NAME') {

$HTTP_GET_VARS['sort'] = $col+1 . 'a';

$listing_sql .= " order by pd.products_name";

break;

}

}

} else {

$sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);

$sort_order = substr($HTTP_GET_VARS['sort'], 1);

$listing_sql .= ' order by ';

switch ($column_list[$sort_col-1]) {

case 'PRODUCT_LIST_MODEL': $listing_sql .= "p.products_model " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";

break;

case 'PRODUCT_LIST_NAME': $listing_sql .= "pd.products_name " . ($sort_order == 'd' ? "desc" : "");

break;

case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";

break;

case 'PRODUCT_LIST_QUANTITY': $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";

break;

case 'PRODUCT_LIST_IMAGE': $listing_sql .= "pd.products_name";

break;

case 'PRODUCT_LIST_WEIGHT': $listing_sql .= "p.products_weight " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";

break;

case 'PRODUCT_LIST_PRICE': $listing_sql .= "final_price " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";

break;

}

}

?>

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

<tr>

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

<form>

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<?php

// optional Product List Filter

if (PRODUCT_LIST_FILTER) {

$filterlist = tep_db_query($filterlist_sql);

if (tep_db_num_rows($filterlist) > 1) {

echo ' <td align="center" class="main">' . TEXT_SHOW . '<select size="1" onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)">';

if ($HTTP_GET_VARS['manufacturers_id']) {

$arguments = 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'];

} else {

$arguments = 'cPath=' . $cPath;

}

$arguments .= '&sort=' . $HTTP_GET_VARS['sort'];

 

$option_url = tep_href_link(FILENAME_DEFAULT, $arguments, 'NONSSL');

 

if (!$HTTP_GET_VARS['filter_id']) {

echo '<option value="' . $option_url . '" SELECTED>' . TEXT_ALL . '</option>';

} else {

echo '<option value="' . $option_url . '">' . TEXT_ALL . '</option>';

}

 

echo '<option value="">---------------</option>';

while ($filterlist_values = tep_db_fetch_array($filterlist)) {

$option_url = tep_href_link(FILENAME_DEFAULT, $arguments . '&filter_id=' . $filterlist_values['id'], 'NONSSL');

if ( ($HTTP_GET_VARS['filter_id']) && ($HTTP_GET_VARS['filter_id'] == $filterlist_values['id']) ) {

echo '<option value="' . $option_url . '" SELECTED>' . $filterlist_values['name'] . '</option>';

} else {

echo '<option value="' . $option_url . '">' . $filterlist_values['name'] . '</option>';

}

}

echo '</select></td>' . "n";

}

}

 

// Get the right image for the top-right

$image = DIR_WS_IMAGES . 'table_background_list.gif';

if ($HTTP_GET_VARS['manufacturers_id']) {

$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'");

$image = tep_db_fetch_array($image);

$image = $image['manufacturers_image'];

} elseif ($current_category_id) {

$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . $current_category_id . "'");

$image = tep_db_fetch_array($image);

$image = $image['categories_image'];

}

?>

<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</form>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td>

</tr>

</table></td>

<?php

} else { // default page

?>

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

<tr>

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

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

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

<tr>

<td class="main"><?php echo tep_customer_greeting(); ?></td>

</tr>

<tr>

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

</tr>

<tr>

<td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

</tr>

<?php

include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);

?>

</table></td>

</tr>

</table></td>

<?php

}

?>

<!-- body_text_eof //-->

<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>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

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

<!-- footer_eof //-->

<br>

</body>

</html>

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

 

Thats the one from the root directory, I'm not sure which one to change though. Do you know which one?

Posted

The error is located in the 'gift_voucher' infobox it should be located in the following folder;

 

catalog/includes/boxes/gift_voucher.php (or whatever the file is called)

 

But!!!! Really to disclude the gift_voucher info box from your right column you should just remove or comment out the 'require/include' call to the gift_voucher infobox in the catalog/includes/column_right.php file, it will look something like

 

  require(DIR_WS_BOXES . 'gift_voucher.php');

 

just delete this or comment it out like this

 

//  require(DIR_WS_BOXES . 'gift_voucher.php');

 

Good luck and back up first!!!!!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

Paste your column_right.php file here

 

For the new products box open up default.php and find the following piece of code;

 

          <tr>

           <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

         </tr>

 

and delete it!

 

Back up before you try!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

Errrrrm you are 'Yorkshire PC Services', if you cant even find a file using a simple search in windows explorer or a file manager etc you must be kidding me!!!!!

 

I can understand not knowing php etc but basic computing procedures???

 

Come on!

 

I'm willing to help you on the code be seriously thats a little extreme!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

The files aren't on my PC m8 so I can't search for them. Its OK though I found it. Here it is:

 

<?php

/*

$Id: column_right.php,v 1.2 2003/02/01 17:18:23 wilt Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

if ($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');

 

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

require(DIR_WS_BOXES . 'whats_new.php');

 

if ($HTTP_GET_VARS['products_id']) {

if (session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $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 ($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');

require(DIR_WS_BOXES . 'polls.php');

 

/*

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

*/

include(DIR_WS_BOXES . 'customer_gv.php');//ICW ADDED FOR ORDER_TOTAL CREDIT SYSTEM

 

?>

<table border="0" width="150" cellspacing="0" cellpadding="0">

<tr>

<td><?php tep_draw_separator('pixel_trans.gif', '1', '1'); ?></td>

</tr>

</table>

Posted

Well more fool you m8!!! Back up your files on your pc before you lose all you files!!!

 

Back to the code, delete or comment out this line in your column_right.php file;

 

include(DIR_WS_BOXES . 'customer_gv.php');//ICW ADDED FOR ORDER_TOTAL CREDIT SYSTEM

 

customer_gv <= gift_voucher, could have worked it out huh :roll:

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Archived

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

×
×
  • Create New...