Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Top" taking visitors out of store


PanoramaRick

Recommended Posts

Posted

I have several osCommerce sites that work well, but one has this strange problem. In the top left corner where it says "Top >> Catalog", when you click on "Top" it takes you right out of the store to the default page for my hosting server, as if no website had been installed. My other stores do not do this. I have looked and tested but cannot find the source of this error. Your advice is very welcomed. The URL is https://df09.dot5hosting.com/%7ehollyzie/os...talog/index.php

 

Thank you,

Rick Smith

hollyzieglerfengshui.com

Posted

Top will take you to the root of the site, www.yoursite.com, while Catalog will take you to the root of the shop, www.yoursite.com/catalog/. If you don't use the root of the site for anything, then your shop should really be moved to it but that is not required. To have Top point to the catalog (or wherever you call your shop), change the top line of these two in includes/application_top.php from

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

to

  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Thanks Jack. I wish Top did take me back to the root, i.e. www.hollyzieglerfengshui.com, but it doesn't. I suppose having it take me to the index page of the osCommerce store is OK. Anything is better than jumping out of the store to a default page. I don't understand why I'm getting that default page.

 

Rick

 

 

 

Top will take you to the root of the site, www.yoursite.com, while Catalog will take you to the root of the shop, www.yoursite.com/catalog/. If you don't use the root of the site for anything, then your shop should really be moved to it but that is not required. To have Top point to the catalog (or wherever you call your shop), change the top line of these two in includes/application_top.php from
  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

to

  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

Jack

Posted

It appears you have the shared ssl certificate enabled for the whole site. If you go here: http://www.hollyzieglerfengshui.com/osCommerce/catalog/, any link on the page will cause it to switch to the https page. There is nothing wrong with that but it is not the recommended way to have it setup. You should only have the ssl enabled for the pages that need it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

I think you can also just delete the first line

  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

so that you only have

  
 $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

So you don't have 'top >> catalog' and instead just have 'catalog >>' showing. I found it weird to have both 'top' and 'catalog' as they both pretty much show the same thing.

Posted

If you change the line in application_top

 

$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

 

to..

 

$breadcrumb->add(HEADER_TITLE_TOP, 'http://www.whatever.com');

 

Just make sure you have the URL inside of ' '

This should just change the link of what "TOP" links to. I'm a php newbie but it worked for me.

Archived

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

×
×
  • Create New...