Forum

Thread tagged as: Question, Suggestions, PayPal

Paypal Shop add-on - How do I add 3 randomly selected products from my shop and...

Hi there,

I'm currently building a shop with the Paypal add-on, on each individual product page I want to display just 3 other products at the bottom of the page, this can be random products that are shown.

How do I go about doing this?

Any help would be much appreciated. Thanks

David Springate

David Springate 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Use perch_shop_custom() to get products. In the options:

'sort' => 'productTitle',
'sort-order' => 'RAND',
'count' => 3,