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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pcambra’s picture

Status: Active » Needs review
recrit’s picture

thanks. 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...

pcambra’s picture

Status: Needs review » Fixed

Thanks, marking as fixed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.