I'm using the onlinestatistics plugin (great plugin!) and have a question regarding the display of percentages. I have altered the layout so that the percentage is displayed alongside the coloured bar as a number. It seems to be displaying to the maximum number of decimal places allowed. How would I configure plugins/ordersStatistics/ordersStatistics.php to only display each figure to 2 decimal places?
Hope someone can help me out, thanks in advance guys
Mark
» Quick.Cart v2.x
retrox
2007-04-27 15:21
Sorry guys, my bad!
I am of course talking about the Order Statistics plugin NOT the online statistics!
Sorry for the confusion :-)
retrox
2007-04-27 15:34
In addition to my above request, would it also be possible to display the product's Category as an extra column in the table?
merci
2007-04-30 14:23
retrox - we have updated ordersStatistics to version 1.1 which is compatible with Quick.Cart v 2.x and there percentages display as you wanted. Please download this version from http://www.opensolution.org/download/?sDir=Quick.Cart/plugins (ordersStatistics_v1.1.zip)
If it is about displaying product's category as extra column - it isn't so easy. I can't give you ready solution. If you want we can do this for you. Contact us via email.
retrox
2007-04-30 17:01
Many thanks for the prompt reply. I have downloaded the latest version and as you rightly pointed out percentages are displayed to two decimal places.
I have another question which you may be able to help me with. I have added another column which shows the actual number of requests for a particular item - this is working great. What I'd also like to do is include on the page somewhere the total number of requests (which I believe is $nTotal in the code). Am I right in saying that this cannot be echoed out as the tpl file will not handle the php? If so how would you go about printing the number held within $nTotal to display the total number of requests?
With regards to the addition of another column for product category, I'll have a word with the client and see if this is something that they would want. If so then I will do as you requested and contact you via email.
Many thanks for your help so far!
Hope to hear from you soon
merci
2007-05-02 10:02
retrox - yes, you are right in saying that $nTotal is responsible for total number of requests. Befor you will be able to display it in your tpl you have to make this variable global.