We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Sort products by a custom field in PayPal Shop app
I would like to be able to sort the products in the PayPal Shop by a new custom field.
I'm adding the field to the product.html and product_in_list.html templates as follows:
<perch:shop id="productOrdering" type="text" label="Order to display (1=top of page)" />
Then I'm calling this up in a page as follows:
<?php perch_shop_custom(array( 'template'=>'shop/product_in_list.html', 'sort'=>'productOrdering', 'sort-order'=>'ASC' )); ?>
That returns no products at all. But if I sort by one of the standard fields eg productPrice, this works fine.
Is it possible to sort products by a custom field?
Want to reply to this thread?Login with Perch