- {ExamProducts[exam]?.name}
+ {ExamProducts[exam]?.displayName}
diff --git a/static/js/src/advantage/credentials/utils/utils.ts b/static/js/src/advantage/credentials/utils/utils.ts
index e8347537422..f755d57c1e9 100644
--- a/static/js/src/advantage/credentials/utils/utils.ts
+++ b/static/js/src/advantage/credentials/utils/utils.ts
@@ -6,8 +6,10 @@ export type Product = {
price?: {
value: number;
currency: string;
+ original?: number;
};
id: string;
marketplace?: UserSubscriptionMarketplace;
metadata: Array<{ key: string; value: string }>;
+ displayName?: string;
};
diff --git a/static/js/src/advantage/subscribe/checkout/components/BuyButton/BuyButton.tsx b/static/js/src/advantage/subscribe/checkout/components/BuyButton/BuyButton.tsx
index ef173e73a2a..be11eefb2f4 100644
--- a/static/js/src/advantage/subscribe/checkout/components/BuyButton/BuyButton.tsx
+++ b/static/js/src/advantage/subscribe/checkout/components/BuyButton/BuyButton.tsx
@@ -315,9 +315,15 @@ const BuyButton = ({ setError, quantity, product, action }: Props) => {
if (request.readyState === 4) {
localStorage.removeItem("shop-checkout-data");
if (product.marketplace == "canonical-cube") {
- location.href = `/credentials/shop/order-thank-you?productName=${encodeURIComponent(
- product.name
- )}&quantity=${quantity}`;
+ if (product.name === "cue-linux-essentials-free") {
+ location.href = `/credentials/shop/order-thank-you?productName=${encodeURIComponent(
+ "CUE.01 Linux"
+ )}&quantity=${quantity}`;
+ } else {
+ location.href = `/credentials/shop/order-thank-you?productName=${encodeURIComponent(
+ product.name
+ )}&quantity=${quantity}`;
+ }
} else if (!window.loginSession) {
const email = userInfo?.customerInfo?.email || values.email || "";
let urlBase = "/pro/subscribe";
diff --git a/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx b/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx
index a03c9167e57..490d5446aec 100644
--- a/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx
+++ b/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx
@@ -55,7 +55,11 @@ function Summary({ quantity, product, action, setError }: Props) {
? "Plan type"
: "Products";
const productName =
- action !== "offer" ? product?.name : product?.name.replace(", ", "
");
+ action !== "offer"
+ ? product?.name === "cue-linux-essentials-free"
+ ? "CUE.01 Linux"
+ : product?.name
+ : product?.name.replace(", ", "
");
const discount =
(product?.price?.value * ((product?.price?.discount ?? 0) / 100)) / 100;
const defaultTotal = (product?.price?.value * quantity) / 100 - discount;
@@ -124,6 +128,7 @@ function Summary({ quantity, product, action, setError }: Props) {
<>
{total == 0 &&
priceData !== undefined &&
+ product?.name !== "cue-linux-essentials-free" &&
"This is because you have likely already paid for this product for the current billing period."}
>