Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cPath question


Pinoo

Recommended Posts

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

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).

Link to comment
Share on other sites

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

Archived

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

×
×
  • Create New...