| 
 | ||||||||||
|  | Shopping cart software Solutions for online shops and malls | |||||||||
|  |  |  | ||||||||
| X-Cart Home |  FAQ |  Forum rules |  Calendar |  Mark Forums Read |  User manuals |  Login | 
|  | 
| Sort order on order_data.tpl | |||
|  |  | ||
|  | Thread Tools | Search this Thread | 
| 
			 
			#1  
			
			
			
			
		 | |||||||
| 
 | |||||||
|  Sort order on order_data.tpl I'd like to sort my products alphabetically in the invoice that gets emailed out  Is this possible in 4.1.8? I am looking at order_data.tpl Thanks | |||||||
| 
			 
			#2  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|  Re: Sort order on order_data.tpl Yes, but you should modify the "include/func/func.order.php" script "func_order_data" function. Replace this code fragment: PHP Code: 
		with this one: PHP Code: 
		Note: the products sort order will be changed in all the places where this function is used. 
				__________________ Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful  Click here to learn how to apply patches X-Cart Extensions | |||||||||
| 
			 
			#3  
			
			
			
			
		 | |||||||
| 
 | |||||||
|  Re: Sort order on order_data.tpl Is there a way to order it alphabetically also by category? Thanks Alex! 
				__________________ 4.4.5 - with Customized Smart Template | |||||||
| 
			 
			#4  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|  Re: Sort order on order_data.tpl Yes, you should alter the same function and change the SQL query. I suppose it will slow down the query, depending on the category number in the store. 
				__________________ Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful  Click here to learn how to apply patches X-Cart Extensions | |||||||||
| 
			 
			#5  
			
			
			
			
		 | |||||||
| 
 | |||||||
|  Re: Sort order on order_data.tpl Is there a way to sort by SKU? 
				__________________ nmartin | |||||||
| 
			 
			#6  
			
			
			
			
		 | |||||||||
| 
 | |||||||||
|  Re: Sort order on order_data.tpl Yes, sure. You should change the order by statement in SQL to productcode: PHP Code: 
		
				__________________ Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful  Click here to learn how to apply patches X-Cart Extensions | |||||||||
| 
			 
			#7  
			
			
			
			
		 | |||||||
| 
 | |||||||
|  Re: Sort order on order_data.tpl Perfect, thanks for your help. 
				__________________ nmartin | |||||||
|  |  | 
| Thread Tools | Search this Thread | 
| 
 | 
 | 
|  | |||
| 
X-Cart forums © 2001-2020
 | |||