You are here:  » Limit number of merchants displayed in [pto prices=""]


Limit number of merchants displayed in [pto prices=""]

Submitted by JustJ on Wed, 2011-08-24 14:08 in

Hi David,

is it possible to set the number of merchants output via shortcode rather than have all of them output at once?

Thanks,

Alex

Submitted by support on Wed, 2011-08-24 16:28

Hi Alex,

The prices are selected by the SQL generated at line 257 of pto_product.php, towards the end you'll find:

ORDER BY price

...simply REPLACE that with, for example;

ORDER BY price LIMIT 3

...to show maximum 3 merchants...

Cheers,
David.