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 |
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. |
Re: Sort order on order_data.tpl
Is there a way to order it alphabetically also by category?
Thanks Alex! |
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. |
Re: Sort order on order_data.tpl
Is there a way to sort by SKU?
|
Re: Sort order on order_data.tpl
Yes, sure. You should change the order by statement in SQL to productcode:
PHP Code:
|
Re: Sort order on order_data.tpl
Perfect, thanks for your help.
|
All times are GMT -8. The time now is 04:35 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.