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

Is it this easy to create a static category page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-23-2004, 04:10 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Is it this easy to create a static category page?

1) Use an .htaccess file to parse .html as php.

2) Create a category1.html

3) In category1.html put:

Code:
<? $cat = "1"; include "./home.php"; ?>

Could it be that easy? Any forseen problems with the affiliate module or the like?
Reply With Quote
  #2  
Old 03-23-2004, 04:29 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

You could do it as .php file the .html is of no relevance to google, its the ? after them that it may count against you.

So you could skip it and do

<?
$cat = "1";
include "./home.php";
?>

Inside a file called category1.php would have exactly the same effect without having to force your server to parse all .html files as PHP.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #3  
Old 03-23-2004, 04:40 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Would doing this effect any variables passed to home.php like affiliate links, etc.?
Reply With Quote
  #4  
Old 03-24-2004, 12:55 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

Technically it shouldn't affect it, all you're doing is including php within php so it should have access to all the variables unless the pages are doing anything non standard when reading the url params.

It's easy enough to test, set up an affilliate link and place a test sale through it and see if it registers it.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #5  
Old 03-24-2004, 08:52 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Will do. Thanks for your feedback.
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 06:03 PM.

   

 
X-Cart forums © 2001-2020