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

Adding PHP command in HTML generated pages...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-13-2003, 12:03 AM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Adding PHP command in HTML generated pages...

I have a PHP script that redirects web pages based on country installed on my server. It requires a PHP command be place as the very first line of code, above the first html tag (<?PHP $rv_path="...). I would like to add this to the x-cart html generated catalog pages as well. Can anyone tell me which template I can add this to, and in what format it would be added, so that all x-cart html pages have the command at the very top?
Reply With Quote
  #2  
Old 08-13-2003, 05:29 AM
  kpayne's Avatar 
kpayne kpayne is offline
 

X-Adept
  
Join Date: Dec 2002
Location: Firetanksoftware.com
Posts: 469
 

Default

You can't add PHP to the HTML catalog as it generates .html files which won't get processed as php scripts by your server. If you have a dedicated server, then it's something that can be changed, but would require more than light modification to the HTML catalog generator.

You might consider looking into an apache solution to do this for you (if it's based on languages).

Hope this helps.
__________________
X-cart Featured Products Manager from http://www.firetanksoftware.com - Put your products where you want, how you want.
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 03:51 PM.

   

 
X-Cart forums © 2001-2020