PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost Bug Reports (http://www.photopost.com/forum/reviewpost-bug-reports/)
-   -   Number of Products (http://www.photopost.com/forum/reviewpost-bug-reports/126347-number-products.html)

tj2653 July 31st, 2006 01:02 PM

Number of Products
 
If a user submits a product and it needs to be moderated, the count of products reflects it even if it hasn't been approved as of yet. Any way to fix this?

Chuck S August 1st, 2006 08:36 AM

The stats simply show the correct total products number whether approved or not.

tj2653 August 28th, 2006 01:04 PM

Quote:

Originally Posted by Chuck S (Post 1166946)
The stats simply show the correct total products number whether approved or not.

Is there an easy way to change this so it only counts the approved products? Many of my users are getting confused when a category shows that there is 1 product, but click only to see none (since the 1 is in the approval queue). I'm guessing I would add something like:

WHERE approved=1

to the mySQL call, but I'm not sure where the count is being done.

Thanks,
Cary

Chuck S August 28th, 2006 05:03 PM

Yes exactly you add something like that to the call and it would be in the pp-inc.php file or index.php file if your running an older version in the function get_statscache

tj2653 August 28th, 2006 06:35 PM

Quote:

Originally Posted by Chuck S (Post 1169883)
Yes exactly you add something like that to the call and it would be in the pp-inc.php file or index.php file if your running an older version in the function get_statscache

I tried:

Code:

Content visible to verified customers only.
to function get_statscache, but it didn't seem to do anything. I have caching off, so I don't think that matters. Any ideas?

Chuck S August 28th, 2006 07:00 PM

That would make a difference for sure as long as your reloading the cache

tj2653 August 30th, 2006 08:42 PM

Quote:

Originally Posted by Chuck S (Post 1169917)
That would make a difference for sure as long as your reloading the cache

I'm looking to have the number of approved products in the category listings -- that code just seems to change the total approved products statistics at the bottom of the page.

Chuck S August 30th, 2006 08:50 PM

edit your catrow function in pp-inc.php

tj2653 August 31st, 2006 09:05 AM

Quote:

Originally Posted by Chuck S (Post 1170124)
edit your catrow function in pp-inc.php

Hmm...not sure where I should be looking in it. It's not a mySQL call is it?

Chuck S August 31st, 2006 09:28 AM

Yes its the mysql query update_catcache however there is no specific way to do this since the number of products are pulled from the categories table.


All times are GMT -5. The time now is 06:50 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97