[RESOLVED]Countries total do not match toylines total on collection page.

Started by Wajo357, April 10, 2013, 04:35:05 PM

previous topic - next topic
Go Down

Wajo357

April 10, 2013, 04:35:05 PM Last Edit: April 14, 2013, 04:19:35 PM by shmax
http://shmax.com/view_collection/1/853?sort=date_collected

Countries total: 4752
Toylines: 4509

Shouldn't they be the same?
<a href="http://www.shmax.com/img/sigs/signature.swf?user_id=853" target="_blank" class="new_win">http://www.shmax.com/img/sigs/signature.swf?user_id=853</a>

shmax


http://shmax.com/view_collection/1/853?sort=date_collected

Countries total: 4752
Toylines: 4509

Shouldn't they be the same?


They should, yes. I've poked at that issue a few times and wasn't able to come up with a quick fix, but I'll try again. Thanks much.

Wajo357

is it possible that some products are listed under multiple countries and therefore count as more than 1?
<a href="http://www.shmax.com/img/sigs/signature.swf?user_id=853" target="_blank" class="new_win">http://www.shmax.com/img/sigs/signature.swf?user_id=853</a>

engledogg

That's likely it.  I'm betting the European items are partly responsible.

As something like http://shmax.com/product_details/3281/aquablast will show up as Germany, France, and the Netherlands.

http://shmax.com/view_collection/1/853?sort=date_collected&country=2

99 vs 152.

MIKE
engledogg
Dumba$$ that used to buy everything...not so much anymore.

shmax

Yes, that's exactly what it is, but the query is quite complex and so far I haven't figured out where to put the grouping clause.

shmax

#5
April 11, 2013, 09:19:29 AM Last Edit: April 11, 2013, 12:41:50 PM by shmax
I think I may have fixed the problem. How does it look now?

Wajo357


I think I may have fixed the problem. How does it look now?


The grand totals are the same, but if someone would add up the individual regions/countries, they would see that the sum of the regions/countries don't match the total you put up there.
<a href="http://www.shmax.com/img/sigs/signature.swf?user_id=853" target="_blank" class="new_win">http://www.shmax.com/img/sigs/signature.swf?user_id=853</a>

shmax



I think I may have fixed the problem. How does it look now?


The grand totals are the same, but if someone would add up the individual regions/countries, they would see that the sum of the regions/countries don't match the total you put up there.


No, they won't sum up, and they can't sum up if you don't want to consider repeats.

Wajo357

understood. Another approach is to just leave out the collection count from countries all together.




I think I may have fixed the problem. How does it look now?


The grand totals are the same, but if someone would add up the individual regions/countries, they would see that the sum of the regions/countries don't match the total you put up there.


No, they won't sum up, and they can't sum up if you don't want to consider repeats.
<a href="http://www.shmax.com/img/sigs/signature.swf?user_id=853" target="_blank" class="new_win">http://www.shmax.com/img/sigs/signature.swf?user_id=853</a>

Go Up