Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

set main page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-12-2011, 05:01 AM
  techker's Avatar 
techker techker is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 155
 

Default 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..
__________________
X-Cart version 4.4.3
Reply With Quote
  #2  
Old 06-21-2011, 03:11 AM
  techker's Avatar 
techker techker is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 155
 

Default Re: set main page

anybody????
__________________
X-Cart version 4.4.3
Reply With Quote
  #3  
Old 06-27-2011, 08:39 AM
  techker's Avatar 
techker techker is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 155
 

Default 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';
__________________
X-Cart version 4.4.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:49 AM.

   

 
X-Cart forums © 2001-2020