chore(GrowTentKonfigurator): adjust bundle discount rates
Reduce discount for 5+ items from 24% to 22% and for 7+ items from 36% to 28%. Update calculation logic and UI display to reflect new rates.
This commit is contained in:
@@ -520,8 +520,8 @@ class GrowTentKonfigurator extends Component {
|
||||
// Apply bundle discount
|
||||
let discountPercentage = 0;
|
||||
if (itemCount >= 3) discountPercentage = 15; // 15% for 3+ items
|
||||
if (itemCount >= 5) discountPercentage = 24; // 24% for 5+ items
|
||||
if (itemCount >= 7) discountPercentage = 36; // 36% for 7+ items
|
||||
if (itemCount >= 5) discountPercentage = 22; // 22% for 5+ items
|
||||
if (itemCount >= 7) discountPercentage = 28; // 28% for 7+ items
|
||||
|
||||
const discountedTotal = total * (1 - discountPercentage / 100);
|
||||
this.setState({ totalPrice: discountedTotal });
|
||||
@@ -597,8 +597,8 @@ class GrowTentKonfigurator extends Component {
|
||||
// Progressive discount based on number of selected items
|
||||
let discountPercentage = 0;
|
||||
if (itemCount >= 3) discountPercentage = 15; // 15% for 3+ items
|
||||
if (itemCount >= 5) discountPercentage = 24; // 24% for 5+ items
|
||||
if (itemCount >= 7) discountPercentage = 36; // 36% for 7+ items
|
||||
if (itemCount >= 5) discountPercentage = 22; // 22% for 5+ items
|
||||
if (itemCount >= 7) discountPercentage = 28; // 28% for 7+ items
|
||||
|
||||
const savings = originalTotal * (discountPercentage / 100);
|
||||
|
||||
@@ -1288,7 +1288,7 @@ class GrowTentKonfigurator extends Component {
|
||||
</Box>
|
||||
<Box sx={{ textAlign: 'center' }}>
|
||||
<Typography variant="h6" sx={{ color: '#ed6c02', fontWeight: 'bold' }}>
|
||||
24%
|
||||
22%
|
||||
</Typography>
|
||||
<Typography variant="body2">
|
||||
{/* Note: Translation key would be: product.discount.from5Products */}
|
||||
@@ -1297,7 +1297,7 @@ class GrowTentKonfigurator extends Component {
|
||||
</Box>
|
||||
<Box sx={{ textAlign: 'center' }}>
|
||||
<Typography variant="h6" sx={{ color: '#d32f2f', fontWeight: 'bold' }}>
|
||||
36%
|
||||
28%
|
||||
</Typography>
|
||||
<Typography variant="body2">
|
||||
{/* Note: Translation key would be: product.discount.from7Products */}
|
||||
|
||||
Reference in New Issue
Block a user