Skip to content

Commit 45e3da6

Browse files
committed
Fix: Update total price calculation and adjust pricing for 500 learners
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 2c3c119 commit 45e3da6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Pricing/PricingAddons/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, enterprisePlan })
8383

8484
const enterpriseUsersCost = (isYearly ? enterprisePlan.yearlyprice : enterprisePlan.monthlyprice) * (enterpriseUsers > 0 ? enterpriseUsers : 1);
8585

86-
setTotalPrice(baseTotal + subAddOnTotal + enterpriseUsersCost);
86+
setTotalPrice((baseTotal * 12) + subAddOnTotal + enterpriseUsersCost);
8787
} else {
8888
setTotalPrice(0);
8989
}
@@ -145,10 +145,10 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, enterprisePlan })
145145
);
146146

147147
if (matchingPlanLink) {
148-
const enterpriseUserText = enterpriseUsers > 0 ? ` and ${enterpriseUsers} enterprise user${enterpriseUsers > 1 ? "s" : ""}` : "";
148+
const enterpriseUserSeats = enterpriseUsers > 0 ? ` and ${enterpriseUsers} enterprise user${enterpriseUsers > 1 ? "s" : ""}` : "";
149149
return {
150150
link: matchingPlanLink.link,
151-
name: `Subscribe (${currentLearnerCount} learners${targetSubAddonName ? " " + targetSubAddonName : ""}${enterpriseUserText})`
151+
name: `Subscribe (${currentLearnerCount} learners${targetSubAddonName ? " " + targetSubAddonName : ""}${enterpriseUserSeats})`
152152
};
153153
}
154154

@@ -447,7 +447,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, enterprisePlan })
447447
})) || [];
448448
})()}
449449
/>
450-
<Box sx={{ display: "flex", my: 8, justifyContent: "space-between" }}>
450+
<Box sx={{ display: "flex", mt: 2, mb: 2, justifyContent: "space-between" }}>
451451
<Typography variant="body2" sx={{ fontStyle: "italic", color: "text.secondary", fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }}>
452452
Looking for a plan larger than 2,500 learners? Great! <a href="/company/contact">Let us know</a>.
453453
</Typography>

src/components/Pricing/PricingAddons/pricingData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const getAddOns = (theme) => [
6363
unitLabelSingular: "learner",
6464
pricing: [
6565
{ learners: 250, monthlyPerUser: 1.29, yearlyPerUser: 1.05, currency: "$" },
66-
{ learners: 500, monthlyPerUser: 0.80, yearlyPerUser: 0.67, currency: "$" },
66+
{ learners: 500, monthlyPerUser: 0.84, yearlyPerUser: 0.67, currency: "$" },
6767
{ learners: 1000, monthlyPerUser: 0.49, yearlyPerUser: 0.49, currency: "$" },
6868
{ learners: 2500, monthlyPerUser: 0.44, yearlyPerUser: 0.44, currency: "$" },
6969
],

0 commit comments

Comments
 (0)