Skip to content

v1.2.0

Choose a tag to compare

@nmarquev nmarquev released this 26 Feb 05:56
· 7 commits to main since this release

Changes

  • 4 position options near old price: inline (same line) and block (new line) for both before/after
  • Backward compatibility: Legacy values from v1.0.0 (after_old_price) and v1.1.0 (right_of_old_price) are automatically mapped — no manual config reset needed on upgrade
  • Block position CSS: New .rollpix-discount-badge--block class for new-line display

Position options

Value Description
After old price — same line Inline-flex, badge right of strikethrough price
After old price — new line Badge on its own line below strikethrough price
Before old price — same line Inline-flex, badge left of strikethrough price
Before old price — new line Badge on its own line above strikethrough price
Over image (4 corners) Absolute positioned over product image
Below price block Below the entire price block

Upgrade

composer require rollpix/module-discount-badge:1.2.0
bin/magento cache:flush

No need to re-select position in admin — old values are auto-mapped.