Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple question, how do I change Top >> Catalog


aksolanki

Recommended Posts

Hello,

 

I am customising an osCommerce install, and I would like to change "Top" and "Catalog" in the breadcrumb trail at the top of webpages, to "Home" and "Store".

 

The osCommerce install was done automatically via the control panel for the webspace, but thankfully I could specify the name of the directory osCommerce was installed in to, I named the folder (directory) store.

 

So the URL for the store looks like this:

 

http://www.gollygoshonline.com/store/

 

If any of the kind folks here could point me in the right direction, or even better, show me which bits of code I need to change I would be very appreciative.

 

 

Thank you,

 

Anil.

Link to comment
Share on other sites

Sorry, I don't have an answer for you, but perhaps you could help me. Which file did you have to edit to change the OSCommerce graphic to your own graphic at the top of the page. I, too, am attempting to customize a storefront. Thank you for any guidance you can provide.

 

D.

 

Hello,

 

I am customising an osCommerce install, and I would like to change "Top" and "Catalog" in the breadcrumb trail at the top of webpages, to "Home" and "Store".

 

The osCommerce install was done automatically via the control panel for the webspace, but thankfully I could specify the name of the directory osCommerce was installed in to, I named the folder (directory) store.

 

So the URL for the store looks like this:

 

http://www.gollygoshonline.com/store/

 

If any of the kind folks here could point me in the right direction, or even better, show me which bits of code I need to change I would be very appreciative.

Thank you,

 

Anil.

Link to comment
Share on other sites

Sorry, I don't have an answer for you, but perhaps you could help me. Which file did you have to edit to change the OSCommerce graphic to your own graphic at the top of the page. I, too, am attempting to customize a storefront. Thank you for any guidance you can provide.

 

D.

 

Hello D,

 

To change the osCommerce logo, you need to go into catalog/images/oscommerce.gif

 

change the file named "oscommerce.gif" to your new graphic, if you use the same file name and file format (GIF), you won't need to change any code.

 

I hope this helps.

 

Anil.

Link to comment
Share on other sites

Hi D,

 

Actually you can find this guides from Knowledge base Documentation, anyway. this is the solutions

 

<B>Change the osCommerce Logo</B>

 

Using your favorite FTP client, upload your logo to the /catalog/images/ directory of your store.

 

Download the file catalog/includes/header.php and open it in a text editor.

 

Find this code:

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

 

Most of this you want to leave exactly as it is. Replace oscommerce.gif with the name of your file. Make sure you leave in the single quotes (') as they are very important.

 

If you want, you can change the alt text of your image. This is the text that appears for those who use a text-based browser or a screen reader (such as blind people) to browse the web. The alt text is currently 'osCommerce' ? you can change that to whatever you want. Again, the single quote characters are very important.

 

As an example, let's say my logo is called logo.jpg and my store is called ?My Store.? I would rewrite the code to look like this:

 

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.jpg', 'My Store') . '</a>'; ?></td>

 

Save this file and upload it back to your server. Reload the page in a web browser and your logo will appear!

 

Copyright ? 2000-2005 osCommerce. All rights reserved.

Wanwan -- %_%_

Link to comment
Share on other sites

If your looking to change just the wording you can go to

 

includes/languages/english.php and look for

 

define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');

define('HEADER_TITLE_MY_ACCOUNT', 'My Account');

define('HEADER_TITLE_CART_CONTENTS', 'Shopping Basket');

define('HEADER_TITLE_CHECKOUT', 'Checkout');

define('HEADER_TITLE_TOP', 'Home');

define('HEADER_TITLE_CATALOG', 'Catalog');

define('HEADER_TITLE_LOGOFF', 'Log Off');

define('HEADER_TITLE_LOGIN', 'Log In');

 

and change between the quotes to whatever you want.

 

I hope this helps. Now if anyone can help me with changing the URL for "Top" in the header it would be very appreciated.

 

Thank you.

Link to comment
Share on other sites

If your looking to change just the wording you can go to

 

includes/languages/english.php and look for

 

define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');

define('HEADER_TITLE_MY_ACCOUNT', 'My Account');

define('HEADER_TITLE_CART_CONTENTS', 'Shopping Basket');

define('HEADER_TITLE_CHECKOUT', 'Checkout');

define('HEADER_TITLE_TOP', 'Home');

define('HEADER_TITLE_CATALOG', 'Catalog');

define('HEADER_TITLE_LOGOFF', 'Log Off');

define('HEADER_TITLE_LOGIN', 'Log In');

 

and change between the quotes to whatever you want.

 

I hope this helps. Now if anyone can help me with changing the URL for "Top" in the header it would be very appreciated.

 

Thank you.

 

Thank you Jay D,

 

That was just what I was looking for.

 

Regarding your question, the file catalog/includes/configure.php

 

seems to store the URL that the "Top" link uses, but if you change the URL then your site will stop working. So you may need to add some more code to make the "Top" link go somewhere other than the base URL for the site.

 

Sorry I can't be of much help as you have been to me.

 

Thanks,

 

Anil.

Link to comment
Share on other sites

I have been looking as much time as I've had available :( But still I can't figure out the way to make the logo to be of the full width of the page :(

 

If there's anyone who could help me out I would appreciate it, I see too many technical terms in here and I just get lost :( we've got a .swf instead of the average logo in the store, but neither in style.css, nor in header.php do I seem to change the width of the full logo or anything like that :(

 

I will appreciate any help with this please :)

 

Thanks in advance.

 

Sergio

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...