Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

specials.php as the index.php


belindamitchell

Recommended Posts

I never really liked the index page so I thought it would be a good and simple solution if I simply saved the specials.php file as the index.php. So I did this and I edited a few things, embedded a wordpress blog, etc. and then after having done all that, I realized that my categories links were not working!!! This is of course because all the coding for the cPath was in the index file. I looked at the coding to see if I could integrate the two, but it's a little much for me. I don't think I can. I have basically put in a temporary fix. I renamed the original index.php file as home.php and I set up the cpath to pull from home.php instead of index.php.

 

The problem is that I would like to give the cpath it's own filename, but I cannot figure out all the places in which I would need to change the filename in order for it to work. I can't leave it the way it is, because everything that directs to default is now going to home.php and frankly, I never really want anyone to see that page again except for purposes of the cpath. So which files do I need to edit with a new filename so that everything continues to redirect to the index file. So in other words, the change I made in order to get the cpath to work properly as a temporary fix was to change the default filename

 

  define('FILENAME_DEFAULT', 'home.php');

 

I want to change it back to the index.php which is the page that is missing the cpath and create a new filename specifically for the cpath.

  define('FILENAME_DEFAULT', 'index.php');

 

The problem. I cannot figure out all the places that I need to make the change and I don't want to change the wrong things. Can you help?

Do your part to make the world a pleasant place to live in. Buy fragrances!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...