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


Thread tagged as: Question

Sort by Price, Using a Comma effects listing

How can I make my filter recognise that £1,234 is more money the £456. Currently my filter sees my prices which have a comma as small numbers.

This is my current code:

perch_content_custom('Products', array(
'template' => 'shop/product_listing.html',
'category' => 'boiler-type',

My product template for price is:

<h3 class="price">£<perch:content id="extra1" type="text" label="Buy from £" required="true" order="9" size="s" /><small> plus VAT</small></h3>
James Tedder

James Tedder 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Store the numbers as numbers: 1234 and 456 and format them when you output them.