dinohaven Posted September 21, 2009 Posted September 21, 2009 Hello all! What I have done: We have replaced OSCommerce's index.php page with a newer, flash version. The older, OSCommerce index.php page has now been renamed to index2.php. We still use this page, but it is now a secondary page. Problem: By doing this, we have successfully broken all category links. They currently have links that say, "index.php?cPath=1_17". We need them to say index2.php?cPath=1_17. Question: Is there an easy way to fix this? I looked in the config.php file and couldn't find anything... Any help would be appreciated!
bill110 Posted September 21, 2009 Posted September 21, 2009 catalog/includes/filenames.php define('FILENAME_DEFAULT', 'index.php'); change to index2.php. However; this will change ALL links in the store. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
bill110 Posted September 21, 2009 Posted September 21, 2009 catalog/includes/filenames.php define('FILENAME_DEFAULT', 'index.php'); change to index2.php. However; this will change ALL links in the store. or you could go into your index2.php and find this <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_MAIN; $sts->template['textmain']=TEXT_MAIN;?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> </table></td> </tr> </table></td> <?php } ?> and replace it with a redirect to your new page. tep_redirect(tep_href_link(FILENAME_NEW_INDEX, '', 'SSL')); Then in catalog/includes/filenames.php put this define('FILENAME_NEW_INDEX', 'index.php'); Any time a link goes to the index page without a category or manufacturer selected it will redirect to your new page. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
dinohaven Posted September 21, 2009 Author Posted September 21, 2009 Thanks Bill! i will try this tonight to see if it pans out...I appreciate the help.
spooks Posted September 21, 2009 Posted September 21, 2009 1. You must ensure you don`t loose osCsid http://www.oscommerce.com/forums/index.php?sho...c=330479&hl 2. Pass osCommerce session IDs into Flash http://addons.oscommerce.com/info/2378 Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
vampirehunter Posted August 8, 2012 Posted August 8, 2012 i have this same issue. im trying to edit my home page without affecting the urls for categories and manufacturers anyone know how to do this?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.