PanoramaRick Posted March 14, 2007 Posted March 14, 2007 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
Jack_mcs Posted March 14, 2007 Posted March 14, 2007 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
PanoramaRick Posted March 14, 2007 Author Posted March 14, 2007 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
Jack_mcs Posted March 15, 2007 Posted March 15, 2007 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
redbone Posted March 16, 2007 Posted March 16, 2007 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.
ltlamb Posted March 19, 2007 Posted March 19, 2007 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.