Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change index.php to store.php


ricksterinps

Recommended Posts

Hello all.

 

I have been playing with OsCommerce for a few years and I am trying to do something that is a little different for one of my clients.

 

I have set up a temporary site @ www.btsimages.com/catalog12 . It starts off with the use of index.php and in it I put the companies old swf file to see if I could do so. Then I took the header and changed it so that I could go into the "store" with a link to store.php which is similar to index.php.

 

I entered "define('FILENAME_DEFAULT_STORE', 'store.php');" into the filename.php file and I can go click on the New Item listed there, but if I click on any category or the item through the category, it goes back to index.php.

 

Where do I change the coding to go to store.php. I know I'm missing a step here and it is driving me insane.

 

They want to be able to change the main heading and have this shown throughout the site easily.

 

Thanks.

Link to comment
Share on other sites

/catalog12/includes/boxes/categories.php

 

Find this line:

 

	$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

Change it to:

 

	$categories_string .= tep_href_link(FILENAME_DEFAULT_STORE, $cPath_new) . '">';

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

Thank you very much. That did it.

 

 

 

/catalog12/includes/boxes/categories.php

 

Find this line:

 

	$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

Change it to:

 

	$categories_string .= tep_href_link(FILENAME_DEFAULT_STORE, $cPath_new) . '">';

Link to comment
Share on other sites

Well, I did the same thing.

 

The guy who owns the site I manage didn't want the products/categories to be shown on the main page, so I altered it to work like that, I just chose a different name.

 

I have FILENAME_DEFAULT that links to FILENAME_CATALOG and that's where the categories show up.

;)

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

Archived

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

×
×
  • Create New...