diff --git a/blocks/plans-quote/summary-quote.js b/blocks/plans-quote/summary-quote.js index 4d382e4..6022bee 100644 --- a/blocks/plans-quote/summary-quote.js +++ b/blocks/plans-quote/summary-quote.js @@ -16,7 +16,7 @@ import { import { isCanada } from '../../scripts/lib-franklin.js'; import { trackGTMEvent } from '../../scripts/lib-analytics.js'; import { getConfigValue } from '../../scripts/configs.js'; -import { getIsMultiPet } from './costco-promo.js'; +import { getIsMultiPet, isCostcoFigo } from './costco-promo.js'; export default async function decorateSummaryQuote(block, apiBaseUrl) { // initialize form based on results from the previous step @@ -266,8 +266,13 @@ export default async function decorateSummaryQuote(block, apiBaseUrl) { function getAutoRenewTet(itemId) { if (itemId === 'Annual Plan-DOGS' || itemId === 'Annual Plan-CATS') { + if (!isCostcoFigo) { + return jsx` + Your Annual Membership will automatically renew on your renewal date which is one year from today. The renewal rate is currently $19.95, plus applicable taxes (price is subject to change). + `; + } return jsx` - Your Annual Membership will automatically renew on your renewal date which is one year from today. The renewal rate is currently $19.95, plus applicable taxes (price is subject to change). + Your Annual Membership will automatically renew on your renewal date which is one year from today. The renewal rate is currently $0 (price is subject to change). `; } @@ -313,7 +318,7 @@ export default async function decorateSummaryQuote(block, apiBaseUrl) {
${pet.petName}
$${selectedProduct.salesPrice}
-
${getSelectedProductAdditionalInfo(selectedProduct.itemId).priceComment}
+
${!isCostcoFigo ? getSelectedProductAdditionalInfo(selectedProduct.itemId).priceComment : getSelectedProductAdditionalInfo(selectedProduct.itemId).priceCommentPromo}
diff --git a/scripts/24petwatch-utils.js b/scripts/24petwatch-utils.js index be5d85f..a13b891 100644 --- a/scripts/24petwatch-utils.js +++ b/scripts/24petwatch-utils.js @@ -126,12 +126,14 @@ export function getSelectedProductAdditionalInfo(itemId) { 'Annual Plan-DOGS': { name: 'Annual Protection Membership', priceComment: 'for the first year $19.95/year thereafter', + priceCommentPromo: 'for the first year $0/year thereafter', pageLink: PET_PLANS_ANNUAL_URL, fragmentLink: '/lost-pet-protection/fragments/annual-info', }, 'Annual Plan-CATS': { name: 'Annual Protection Membership', priceComment: 'for the first year $19.95/year thereafter', + priceCommentPromo: 'for the first year $0/year thereafter', pageLink: PET_PLANS_ANNUAL_URL, fragmentLink: '/lost-pet-protection/fragments/annual-info', },