Closed (duplicate)
Project:
Drupal Commerce Extra Price Formatters
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 May 2012 at 22:21 UTC
Updated:
16 Feb 2015 at 13:43 UTC
Jump to comment: Most recent
Comments
Comment #1
kevster commentedWe have the same issue, currently we are trying to sort products in category views by lowest price first using (Referenced Product) Commerce Product: Discounted Price:amount (asc) but we also have products that are not discounted e.g. only have one original price, have tried many variants without success.
A product without a discount effectively has a null discount value - the sort comes out with products with original price first e.g. http://www.tapsandshowers.com/product-categories/basin-taps and then discounted price products in order.
One solution is to set all the non discounted prods to have a discount value the same as the orig but I dont see this as a very elegant solution.
Any help appreciated.
Comment #2
andyf commentedHi, I found this issue while trying to do the same thing for products on sale via Commerce Sale Price. I've managed to get something working now and just thought I'd post a link to a sandbox module that explains the situation (hopefully) clearly and provides something workable (if not final).
HTH
Comment #3
czigor commentedSee #1020050: Allow Views to sort / filter based on pre-calculated prices.