Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Creating an index page


jpweber

Recommended Posts

Hello all. I have my header/footer, columns, and stylesheet all formatted the way I want it, so I have the look I want. I'm a php novice; I just learned what I've learned doing OSC.

 

Right now, I have a redirect set up so that when someone types in www.mysite.com, it goes to www.mysite.com/catalog automatically.

 

My question ... is there a way to create an index.htm or index.php file, so that when an end-user types in www.mysite.com, it won't go straight to the catalog, but rather an introduction page -- that has the exact same format and look as the catalog page?

 

Thanks a lot for anyone who's kind enough to take the time to reply,

 

J

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

just create a php page like every the ones catalog folder and place it in the root folder.

 

Then at the top of the new file use the chdir (right before the application_top inclusion) to force the script to point to the correct directory inside the osc in order to use the database and common functions/classes. That is a simple way doing it.

Link to comment
Share on other sites

just create a php page like every the ones catalog folder and place it in the root folder.

 

Then at the top of the new file use the chdir (right before the application_top inclusion) to force the script to point to the correct directory inside the osc in order to use the database and common functions/classes. That is a simple way doing it.

 

 

Hello. Thanks for responding. I'm unsure (as a php novice) what you're referring to when you say use the "chdir" right before the application_top inclusion. I mean, I just took a file (privacy.php) out of the catalog, and renamed it to index.php, and put it in the root directory. But that's where I don't know what "chdir" means or how it comes into play. Again, I just want the same look and feel for my initial page when a customer goes into www.mysite.com. Thanks a bunch if you (or anyone) can take the time to respond to this one,

 

J

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

right so at the top of that new file you copied you have a line:

 

require('includes/application_top.php');

 

so now that is invalid you see because the correct path would be catalog\includes\application_top.php. But if you do that the osc will not be able to find the other scripts and build the links properly as it relies on the configuration file that includes the paths. So leave that line as is and just before it you could add this:

chdir('catalog');

 

I assume your osc is in the catalog directory.

Link to comment
Share on other sites

Got it. Thanks a bunch. I didn't know how to write the chdir code, but works perfectly now. Definitely appreciate you taking the time!

 

J

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...