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

variable in include file

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-12-2010, 03:41 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default variable in include file

I wouldlike to inclue a file for each cat, and was wondering if ther eis a way to include $current_category.categoryid in the include statment?

{include file="$current_category.categoryid.tpl"}

or something similar?
__________________
xcart 5.1.2
Reply With Quote
  #2  
Old 11-12-2010, 05:39 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: variable in include file

Code:
{include file="`$current_category.categoryid`.tpl"}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 11-12-2010, 05:40 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: variable in include file

thx! works like a charm!
__________________
xcart 5.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:52 PM.

   

 
X-Cart forums © 2001-2020