Pinoo Posted February 13, 2007 Share Posted February 13, 2007 I want to put code in index.php, instead of 'define_maintext' code i want the variable cPath=1 (that is the productlisting of my first category) so that when at startup of webshop my first category is displayed instead of main_text. Is this possible For example: this is the url when i click my first category: www.thisisanexample.com/index.php?cPath=1 Link to comment Share on other sites More sharing options...
jasonabc Posted February 14, 2007 Share Posted February 14, 2007 Open /includes/application_top.php. Scroll down to around line 451 to where it calculates the category path and in the very last else {} statement - insert the cPath value you want the store to open on. For example: } else { $cPath = '1'; } Now when you go to www.somestore.com the store will open directly into the category that has been assigned a cPath of 1 (and this will not be displayed in the URL which is good). Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Pinoo Posted February 14, 2007 Author Share Posted February 14, 2007 Open /includes/application_top.php. Scroll down to around line 451 to where it calculates the category path and in the very last else {} statement - insert the cPath value you want the store to open on. For example: } else { $cPath = '1'; } Now when you go to www.somestore.com the store will open directly into the category that has been assigned a cPath of 1 (and this will not be displayed in the URL which is good). Thanks!!! You are the best, i searched a long time for this little modification. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.