Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Some help deiting links


warleb

Recommended Posts

Hi everyone,

 

I have just uploaded oscommerce with an off the shelf template which I purchased and it looks really great. Although I don't have that much experience I have managed to change the index, footers and the default graphics that came with the template so the site is coming along very nicely indeed. I already have a full-blown ecommerce site but the shopping cart is hosted by a third party company. This is why I wanted oscommerce because I can then keep the whole thing on my own domain so that I can add SSL as soon as the site is finished.

 

All functions seems on the site seem to work great. Ordering, customer registration, lost password etc etc.... perfect!

 

I am having trouble with two things:

 

1) The language selector. My site only sells to the UK market so the only language is English. I need to remove the language selector. For one, it?s defaulted to English anyway so there is no need for it. I need to know which file I need to modify to get rid of the drop down list box.

 

2) There are some links on the front page of the site which were part of the off the shelf template that I purchased. Would these links sit inside a php file and if so where! I would like to modify the links so that I can point them to relevant products on the website.

 

Any help would be greatly appreciated and like I said, I like to experiment but I just can't find out where to change these two things.

 

If you need access to the Url to find out anything that I can't see then please ask.

 

Regards

War

I don't bother doing backups. I love the thrill of screwing it all up!

Link to comment
Share on other sites

Hi everyone,

 

I have just uploaded oscommerce with an off the shelf template which I purchased and it looks really great. Although I don't have that much experience I have managed to change the index, footers and the default graphics that came with the template so the site is coming along very nicely indeed. I already have a full-blown ecommerce site but the shopping cart is hosted by a third party company. This is why I wanted oscommerce because I can then keep the whole thing on my own domain so that I can add SSL as soon as the site is finished.

 

All functions seems on the site seem to work great. Ordering, customer registration, lost password etc etc.... perfect!

 

I am having trouble with two things:

 

1) The language selector. My site only sells to the UK market so the only language is English. I need to remove the language selector. For one, it?s defaulted to English anyway so there is no need for it. I need to know which file I need to modify to get rid of the drop down list box.

 

edit includes/column_right.php (or column_left.php if that where it is) and comment out the language box

 

2) There are some links on the front page of the site which were part of the off the shelf template that I purchased. Would these links sit inside a php file and if so where! I would like to modify the links so that I can point them to relevant products on the website.

 

not sure which links you mean so can't help on that one... try searching for files containg the url... you'll probably find that the url & link text are in 2 different files though i'm not sure about that

 

Any help would be greatly appreciated and like I said, I like to experiment but I just can't find out where to change these two things.

 

If you need access to the Url to find out anything that I can't see then please ask.

 

Regards

War

with ten thousand dollars we'll all be millionaires

Link to comment
Share on other sites

I tried that but it did not work (getting rid of language bar.

 

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

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

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

// }

?>

I don't bother doing backups. I love the thrill of screwing it all up!

Link to comment
Share on other sites

That should have deleted it. Are you cacheing your site (in your admin section, not your local browser's cache)? Sometimes that causes changes to not show up immediately. Try wiping your cache and try again. If that doesn't work, you mentioned that you were using a template? Some templates do things differently from the stock osc way, and can't be fixed with standard methods.

 

My suggestion would be to download a copy of your site onto your local desktop (if you don't already have one for backup purposes anyway), and search it with your favorite search function for the text (not the file) languages.php to see where your template calls it onto your website. Then comment out that line. If that doesn't work, post the file your search brings up and I'll look at it if I'm still around.

Always BACK UP your files and your database before making any changes. Before asking questions, check out the Knowledge Base. Check out the contributions to see if your problem's solved there. Search the forums.

 

Useful threads: Store Speed Optimization How to make a horrible shop Basics for design change How to search the forums

 

Useful contributions: Easypopulate Fast, Easy Checkout Header Tag Controller

Link to comment
Share on other sites

Well this is quite strange. I found the language file also in the header.php I modified and then uploaded it. Then the store went wrong. So I reset it back to normal and it's still broken. I even copied the file from the source files that I got with the template and still no difference. Strange beast oscommerce. Maybe the database is corrupt or something now! If so I need to reload my site I guess??

 

store/includes/header.php

 

Error message being displayed:

Fatal error: Call to undefined function: tep_catalog_href_link() in /data01/fyhlfyhl/public_html/store/includes/header.php on line 20

 

 

http://www.fyhl.co.uk/store.

 

 

 

.

I don't bother doing backups. I love the thrill of screwing it all up!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...