| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding 10 latest referals section in statistics | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I'm trying to add a 10 latest referals section to my statistics page.
I've copied and pasted the section from referals underneath it as a starting point, but I can't work out what is controlling the order that the referals are listed in. I mean the main referals list lists them in order of number of visits, I simply want to reorder them by last_visited. Any guidance on what I need to change? I can't tell which peice of code controls the order. I've pasted the code for the section below, this creates the new area, but at the moment it still feeds in the same referals data as normal Code:
Thanks Amy
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() I've found it, I had to change the PHP file instead. In case anyone is wondering, this is how I did it (I haven't limited it yet to the latest 10)
display_stats.php I added: Code:
and then changes the references in advanced_statistics.tpl to reference the latest_referrers_array instead of the array previously created. Amy
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|