X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   set main page (https://forum.x-cart.com/showthread.php?t=59747)

techker 06-12-2011 05:01 AM

set main page
 
hey guys is it possible to set a default page when you enter the catalog?

lets say i want a specif product to show on the main ..no welcome..

techker 06-21-2011 03:11 AM

Re: set main page
 
anybody????

techker 06-27-2011 08:39 AM

Re: set main page
 
ok got my answer.here is is.can come in handy for others.


In order to implement the modification please replace the following code in <xcart_dir>/home.php script:
Code: text
$cat = isset($cat) ? abs(intval($cat)) : 0;

with this code:
Code: text
$cat = isset($cat) ? abs(intval($cat)) : 885;(my page extension were i needed it:home.php?cat=885)


Alternatively you could use the following code in <xcart_dir>/home.php script:
Code: text
if (!isset($cat)) {
func_header_location($current_location . DIR_CUSTOMER . '/home.php?cat=885');
}
You need to add the code above to <xcart_dir>/home.php script right after this code:
Code: text
require './auth.php';


All times are GMT -8. The time now is 05:25 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.