| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
| 
 | 
||||||||||
| X-Cart Home | 
accessing category description within smarty code? | |||
![]()  | 
	
	
		
			 | 	
	
||
| 
		 | 
	Thread Tools | Search this Thread | 
| 
		 
			 
			#1  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 hey guys 
		
	
		
		
		
		
		
	
		
		
		
	i have some smarty code that works - and outputs the category names and their ids and links. Code: 
	
 what i want to do is throw the category description in there as well. i had hoped that throwing in this: Code: 
	
 might do the trick, but apparantly not (it seemed logical). can anyone reveal to me the secret? thanks in advance, murray  | 
|||||||
| 
		 
			 
			#2  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 figured it out -- thought i'd post it here in case anyone was curious. 
		
	
		
		
		
		
			in categories.php, the code read: Code: 
	
 i added the field i needed (description) to the SQL statement like this: Code: 
	
 this then allowed me to use Code: 
	
 in my categories.tpl 
				__________________ 
		
		
		
		
	
		
		
		
	x-cart-Version 4.1.10  | 
|||||||
| 
		 
			 
			#3  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Hello Murray, 
		
	
		
		
		
		
			Nice hint. Another hint. There is a simple way to see the structure of the hash: Code: 
	
 Best regards. 
				__________________ 
		
		
		
		
	
		
		
		
	X-Cart: Gold 4.0.13 OS: Linux (Fedora) PHP: 4.3.10 MySQL: 4.0.22  | 
|||||||
| 
 | 
|||
| 
 
X-Cart forums © 2001-2020
 
 | 
|||