145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

Hello,

Do you know a way to get a numeration/ranking (1., 2., 3.,...) for the products in the shop list. So there should always be a number before the title – on the shop page and the category shop page.

My default sorting is “sort by average rating”, so it would make sense that there is a ranking.

Thank you

280 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PrimaThemes says

average rating is based on customer review. are you sure to use it as renumeration/ranking here?

145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

yes, there should be a number 1 product, number 2, etc.

280 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PrimaThemes says

Would you mind to elaborate more about this product “numbering”? And what is the purpose? I just to get better understanding in your goal for doing this.

Remember that rating is not integer, so you will get decimal number, 4.236 for example. And it is controlled by customer review, so you don’t have many control on this number.

145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

No, the numbering has nothing to do with the average rating. I just want a ranking for the products

So
1. Product number one (which has the most rating points) ...
description text

2. Product number two (which has the second most rating points …
description text

The only thing that I need is a FOR/WHILE loop that counts from 1 to X

The problem: I don’t really know where in the code I should put the loop and how to code it, so that it continues on page 2 with place 11/12… and on page 3 with 21/22/...

280 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PrimaThemes says

That is not difficult to do, but I am online from iPad now, can’t play with the code. :D let’s see if I can share something tomorrow.

145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

Thank you, that would be great. I know how to do it with blog posts (with the standard loop), but the woocommerce code is too complex for me.

145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

Anyone got a tip?

145 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Austria
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
LovelessDesign says

found a solution thanks.

by
by
by
by
by
by