| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Sort order on order_data.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
|
|||||||||
|
|||||||||
![]() 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
|
|||||||
|
|||||||
![]() Is there a way to order it alphabetically also by category?
Thanks Alex!
__________________
4.4.5 - with Customized Smart Template |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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
|
|||||||
|
|||||||
![]() Is there a way to sort by SKU?
__________________
nmartin |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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
|
|||||||
|
|||||||
![]() Perfect, thanks for your help.
__________________
nmartin |
|||||||
|
|||
X-Cart forums © 2001-2020
|