X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Order Counter on Admin Orders List (https://forum.x-cart.com/showthread.php?t=65214)

dpcompany 10-29-2012 07:37 AM

Order Counter on Admin Orders List
 
I am looking for some coding help from my fellow X-Carters. I am trying to incorporate a feature that on the surface doesn't seem very advanced, however my PHP skills are lacking. Basically I was wanting to be able to add a column to the "main/orders_list.tpl" that is a visual indication as to whether or not that particular customer has ordered before. I am trying to reference the {{COUNT_ORDERS}} function that counts orders to determine this, but I cannot find its values in any database.

Any help would be extremely appreciated.

Thank you all for your contributions to this forum, you have no idea how much threads in these forums have helped me the past few years in customizing the product we all love and love to hate, X-Cart.

Michael

Pyro 10-29-2012 08:05 AM

Re: Order Counter on Admin Orders List
 
In 4.5.2+ there is a column that already counts the number of orders per user on admin/users.php?mode=search .

I do not know which version this feature was added (it may be in your version).


If it is not in your version, you may want to download the most recent version and use that as a guide.

cflsystems 10-30-2012 02:39 PM

Re: Order Counter on Admin Orders List
 
You will have to modify the corresponding php file and query the db for orders for each order/customer then add that to each order in the array so you can call it in the template


All times are GMT -8. The time now is 10:54 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.