Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
Testing this module, I've found that if you select out some elements from the formatter, it will still display them, so there's no way to display only list price and discounted price, i.e, no matter what options you select.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
commerce_price_savings_formatter-fields_restrict.patch | 3.2 KB | pcambra |
Comments
Comment #1
pcambraComment #2
recrit CreditAttribution: recrit commentedthanks. I traced it back to being the checkboxes saving with a zero value, so I added an array_filter() at the beginning. That way no additional calculations will run if its empty.
http://drupalcode.org/project/commerce_price_savings_formatter.git/commi...
Comment #3
pcambraThanks, marking as fixed!