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
Output lowest variant price in product listing template
Has anyone any idea how I might go about displaying just the lowest variant price for a product in a product listing template?
I'm thinking of having "prices from" in the product listings, followed by the lowest of any variant prices associated with that product. (If there aren't variant prices then the product price is used instead.)
I can't seem to get my head around how to drill down into the array that contains the variant prices.
I'm only at planning stage so have nothing to post other than my diagnostics.
Many thanks in advance for any pointers.
Perch Runway: 3.0.5, PHP: 7.0.15, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO Server OS: Darwin, apache2handler Installed apps: content (3.0.5), assets (3.0.5), categories (3.0.5), perch_shop_orders (1.2), perch_shop_products (1.2), perch_shop (1.2), perch_members (1.6.1), perch_mailchimp (3.1) App runtimes: <?php $apps_list = [ 'perch_mailchimp', 'perch_members', 'perch_shop', ]; PERCH_LOGINPATH: /perch PERCH_PATH: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch PERCH_CORE: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/core PERCH_RESFILEPATH: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk/perch/resources Image manipulation: GD PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7 Resource folder writeable: Yes HTTP_HOST: dev.ellipress.co.uk DOCUMENT_ROOT: /Users/ellimondo/Dropbox/Sites/ellipress/dev.ellipress.co.uk REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Want to reply to this thread?Login with Perch