feat(ui): add strikethrough original price display for rebated products

Update Product component to show original price with red strikethrough and reduced opacity above the current price when rebate > 0. Calculate original price by reversing rebate percentage. Adjust layout with relative positioning and z-index for overlay. Ensure rebate prop is passed from ProductList to support this feature.
This commit is contained in:
sebseb7
2025-09-11 06:47:57 +02:00
parent 71fb9bafcd
commit 3f01ca12b4
2 changed files with 42 additions and 14 deletions

View File

@@ -454,7 +454,7 @@ class ProductList extends Component {
}
}}
>
<Product
<Product
id={product.id}
name={product.name}
seoName={product.seoName}
@@ -474,6 +474,7 @@ class ProductList extends Component {
pictureList={product.pictureList}
availableSupplier={product.availableSupplier}
komponenten={product.komponenten}
rebate={product.rebate}
priority={index < 6 ? 'high' : 'auto'}
t={this.props.t}
/>