Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customizing Right Column


Guest

Recommended Posts

Hello

 

I am just starting out with Oscommerce.

 

I hve installed it and began experimenting with

customization.

 

I want to remove the language box from the right column.

 

I used the text editor in administration to change

code in 'catalog/includes/right_column.php' as follows.

 

From:

 

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

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

 

 

To:

 

 

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

// include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

 

I save the file.

 

I refresh the page.

 

 

However the box is still there in the right column, it

has not been removed.

 

What am I missing?

Link to comment
Share on other sites

Have you tried clearing your browser cache?

:unsure:

 

If you use IE or Firefox, if you hold down the <Ctrl> key while doing a page refresh it forces the browser to reload the latest contents from the server.

 

You may be looking at you PC's cache of the page.

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 >

Link to comment
Share on other sites

Have you tried clearing your browser cache?

:unsure:

 

If you use IE or Firefox, if you hold down the <Ctrl> key while doing a page refresh it forces the browser to reload the latest contents from the server.

 

You may be looking at you PC's cache of the page.

 

 

Thanks for your response.

 

Yes, I have tried this.

 

I have cleaned the cache and temp files.

 

The problem persists.

Link to comment
Share on other sites

Are you sure the file was saved on the server?

:unsure:

 

It looks like you've edited the file correctly to achieve the desired result to me.

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 >

Link to comment
Share on other sites

Are you sure the file was saved on the server?

:unsure:

 

It looks like you've edited the file correctly to achieve the desired result to me.

Link to comment
Share on other sites

Are you sure the file was saved on the server?

:unsure:

 

It looks like you've edited the file correctly to achieve the desired result to me.

 

 

Yes, I have verified that it was saved on the server.

Link to comment
Share on other sites

Yes, I have verified that it was saved on the server.

 

Hello - when I visit your site - ? http://www.air-purifiers-usa.biz/index.html - I am not seeing a language section. So, I think it worked.

 

 

 

- Marlo

Dance as if No One were Watching ~ Sing as if No One were Listening ~ And Live Life everyday as if it were Your Last!

Link to comment
Share on other sites

Please post the entire contents of /catalog/includes/column_right.php

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 >

Link to comment
Share on other sites

Please post the entire contents of /catalog/includes/column_right.php

 

Here it is!

 

<?php

/*

$Id: column_right.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// START STS 4.1

if ($sts->display_template_output) {

$sts->restart_capture ('content');

} else {

//END STS 4.1

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, 8) != 'checkout') {

// include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

 

 

// START STS 4.1

}

// END STS 4.1

?>

Link to comment
Share on other sites

Thanks Marlo

 

The URL is http://www.airscrubbersusa.com/catalog/

 

I have the catalog file here to get a feel fro OScommerce.

I am trying to eliminate the Language box in the right column

 

Hello - sorry. Saw the link in your quote below and thought that was it - I guess I should have researched more. Sorry - yeah it is showing. Well shoot - thought I could help...

Dance as if No One were Watching ~ Sing as if No One were Listening ~ And Live Life everyday as if it were Your Last!

Link to comment
Share on other sites

// START STS 4.1
if ($sts->display_template_output) {
$sts->restart_capture ('content');
} else {
//END STS 4.1

STS - All bets are off with me.

 

Find the STS support thread and post in it.

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 >

Link to comment
Share on other sites

Hello

 

I am just starting out with Oscommerce.

 

I hve installed it and began experimenting with

customization.

 

I want to remove the language box from the right column.

 

I used the text editor in administration to change

code in 'catalog/includes/right_column.php' as follows.

 

From:

 

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

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

 

 

To:

 

 

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

// include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

 

I save the file.

 

I refresh the page.

 

 

However the box is still there in the right column, it

has not been removed.

 

What am I missing?

 

Geesh....something so dead simple...this is what happens when you don't post support questions in the proper thread.

 

In STS, simply remove the $languagebox tag from the template page. Poof. Done.

 

The STS support thread link is published in the STS User Manual as well as in my signature below (STSv4 Support Thread).

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Geesh....something so dead simple...this is what happens when you don't post support questions in the proper thread.

 

In STS, simply remove the $languagebox tag from the template page. Poof. Done.

 

The STS support thread link is published in the STS User Manual as well as in my signature below (STSv4 Support Thread).

 

GREAT it worked.

 

Thanks

 

I was following the examples in the book 'OSCommerce Professional Edition' by David Mercer

 

It did not mention changing the template file.

 

Do you know of any books for Newbies that are thorough?

Link to comment
Share on other sites

GREAT it worked.

 

Thanks

 

I was following the examples in the book 'OSCommerce Professional Edition' by David Mercer

 

It did not mention changing the template file.

 

Do you know of any books for Newbies that are thorough?

 

Barry,

 

I just sent you a PM.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...