Repository navigation
v1.2.0
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--blockclass 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:flushNo need to re-select position in admin — old values are auto-mapped.