From 427fd4629a4b3968554aa1dc75368e31b0d78f8d Mon Sep 17 00:00:00 2001 From: jhoffman-ms Date: Tue, 26 May 2026 14:25:30 -0300 Subject: [PATCH 1/3] fix(checkout-summary): usar periodos de facturacion en lugar de meses --- src/i18n/en.js | 14 +++++++------- src/i18n/es.js | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/i18n/en.js b/src/i18n/en.js index f644073dc..7b2b5b9fa 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -606,10 +606,10 @@ other {}}}}}}}}}} chat_plan_label: 'Conversations', chat_plan_title: 'Your conversations plan', chat_plan_type_label: 'Plan Type', - discount_half_yearly: '6 months', - discount_monthly: '1 month', - discount_quarterly: '3 months', - discount_yearly: '12 months', + discount_half_yearly: 'Biannual', + discount_monthly: 'Monthly', + discount_quarterly: 'Quarterly', + discount_yearly: 'Annual', enjoy_doppler_title: 'Enjoy Doppler', enjoying_benefits_doppler_title: 'You can now start enjoying the benefits of your Doppler plans.', go_to_home_link: 'GO TO HOME', @@ -631,7 +631,7 @@ Payment details will be included in the invoice sent to the recipient you have i onsite_plan_label: 'OnSite', onsite_plan_title: 'Your OnSite Plan', onsite_plan_type_label: 'Type of plan', - plan_type: 'Plan Type', + plan_type: 'Details', plan_type_monthly_deliveries: 'Emails by Plan', plan_type_monthly_deliveries_availables: 'Available Emails', plan_type_monthly_deliveries_label: 'By Emails', @@ -651,9 +651,9 @@ Payment details will be included in the invoice sent to the recipient you have i push_notification_plan_label: 'Push Notifications', push_notification_plan_title: 'Your Push Notifications Plan', push_notification_plan_type_label: 'Plan Type', - renewal_type_title: 'Renovation', + renewal_type_title: 'Billing', start_using_new_plan_button: 'Start using your new Plan', - title: `Excellent! You’ve updated your Plan`, + title: `Your purchase has been successful!`, transfer_check_email_with_invoice_message: 'Check your email, and during the next 24 business hours you’ll receive your invoice with all the information to make the payment.', transfer_confirmation_message: 'Once we confirm the payment reception, we’ll tell you by email. You will be able to use your new Plan!', transfer_explore_button: 'Explore', diff --git a/src/i18n/es.js b/src/i18n/es.js index ad0dd08a4..8307f551a 100644 --- a/src/i18n/es.js +++ b/src/i18n/es.js @@ -608,10 +608,10 @@ other {}}}}}}}}}} chat_plan_label: 'Conversaciones', chat_plan_title: 'Tu plan de conversaciones', chat_plan_type_label: 'Tipo de Plan', - discount_half_yearly: '6 meses', - discount_monthly: '1 mes', - discount_quarterly: '3 meses', - discount_yearly: '12 meses', + discount_half_yearly: 'Semestral', + discount_monthly: 'Mensual', + discount_quarterly: 'Trimestral', + discount_yearly: 'Anual', enjoy_doppler_title: 'Disfruta Doppler', enjoying_benefits_doppler_title: 'Ya puedes empezar a disfrutar de los beneficios de tus planes de Doppler.', go_to_home_link: 'IR AL INICIO', @@ -631,10 +631,10 @@ other {}}}}}}}}}} onsite_plan_label: 'OnSite', onsite_plan_title: 'Tu plan de on-site', onsite_plan_type_label: 'Tipo de Plan', - plan_type: 'Tipo de Plan', - plan_type_monthly_deliveries: 'Envíos por Plan', + plan_type: 'Detalle', + plan_type_monthly_deliveries: 'Cantidad de Envíos', plan_type_monthly_deliveries_availables: 'Envíos Disponibles', - plan_type_monthly_deliveries_label: 'Por Envíos', + plan_type_monthly_deliveries_label: 'Plan Envíos', plan_type_monthly_deliveries_monthly_renovation: 'Mensual', plan_type_prepaid: 'Créditos por Plan', plan_type_prepaid_availables: 'Créditos Disponibles', @@ -643,7 +643,7 @@ other {}}}}}}}}}} plan_type_prepaid_promocode: 'Créditos de regalo', plan_type_subscribers: 'Contactos por Plan', plan_type_subscribers_availables: 'Contactos disponibles', - plan_type_subscribers_label: 'Por Contactos', + plan_type_subscribers_label: 'Plan Contactos', purchase_finished_title: 'Compra Finalizada', push_notification_plan_acquired_emails: 'Envíos adquiridos', push_notification_plan_billing_title: 'Renovación', @@ -651,9 +651,9 @@ other {}}}}}}}}}} push_notification_plan_label: 'Notificaciones Push', push_notification_plan_title: 'Tu plan de notificaciones push', push_notification_plan_type_label: 'Tipo de Plan', - renewal_type_title: 'Renovación', + renewal_type_title: 'Facturación', start_using_new_plan_button: 'Comienza a usar tu nuevo Plan', - title: `¡Excelente! Has actualizado tu Plan`, + title: `¡Tu compra ha sido exitosa!`, transfer_check_email_with_invoice_message: 'Revisa tu correo, y dentro de las proximas 24 horas hábiles recibirás la factura con todos los datos para realizar el pago.', transfer_confirmation_message: 'Una vez que confirmemos la recepción del pago te avisaremos por mail. ¡Ya podrás disfrutar de tu nuevo Plan!', transfer_explore_button: 'Explorar', From d4de89011908e4b854ed9c2bbab138d03a7c34ac Mon Sep 17 00:00:00 2001 From: jhoffman-ms Date: Tue, 26 May 2026 16:39:56 -0300 Subject: [PATCH 2/3] fix(checkout-summary): ajustar labels de facturacion y textos en resumen --- .../AddOnPlanInformation/index.js | 2 +- .../CheckoutSummary/CheckoutSummary.js | 49 ++++++++++++++----- src/i18n/en.js | 34 +++++++------ src/i18n/es.js | 30 +++++++----- 4 files changed, 73 insertions(+), 42 deletions(-) diff --git a/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js b/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js index 1b3531347..d857fc3e2 100644 --- a/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js +++ b/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js @@ -46,7 +46,7 @@ export const AddOnPlanInformation = ({ addOnType, quantity, discount }) => { }`, )} -

{thousandSeparatorNumber(intl.defaultLocale, quantity)}

+

{quantity}

  • {discount ? ( diff --git a/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js b/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js index b0e38f436..3d26b180d 100644 --- a/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js +++ b/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js @@ -222,7 +222,7 @@ const PlanMarketingInformation = ({ return ( <> -

    Tu plan de email marketing

    +

    {_(`checkoutProcessSuccess.plan_type_title`)}

    • {_(`checkoutProcessSuccess.plan_type`)} @@ -238,12 +238,6 @@ const PlanMarketingInformation = ({

      {thousandSeparatorNumber(intl.defaultLocale, extraCredits)}

    • ) : null} -
    • - - {_(`checkoutProcessSuccess.plan_type_${planType.replace('-', '_')}_availables`)} - -

      {thousandSeparatorNumber(intl.defaultLocale, remainingCredits)}

      -
    • {planType === PLAN_TYPE.byContact && discount ? ( <> @@ -665,14 +659,34 @@ export const CheckoutSummary = InjectAppServices( ) : buyType && Number(buyType) === BUY_CHAT_PLAN ? ( chatUserPlan !== null && ( + } discount={discount} addOnType={AddOnType.Conversations} /> ) ) : buyType && Number(buyType) === BUY_ONSITE_PLAN && addOnUserPlan !== null ? ( + } discount={discount} addOnType={AddOnType.OnSite} /> @@ -680,7 +694,17 @@ export const CheckoutSummary = InjectAppServices( Number(buyType) === BUY_PUSH_NOTIFICATION_PLAN && addOnUserPlan !== null ? ( + } discount={discount} addOnType={AddOnType.PushNotifications} /> @@ -696,12 +720,12 @@ export const CheckoutSummary = InjectAppServices( ) : null} - {isBuyMarketingPlan && ( + {/* {isBuyMarketingPlan && ( - )} + )} */} {landingsEditorEnabled && (
      @@ -719,7 +743,6 @@ export const CheckoutSummary = InjectAppServices(
      )} - {} ); diff --git a/src/i18n/en.js b/src/i18n/en.js index 7b2b5b9fa..66d4879ef 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -600,11 +600,12 @@ other {}}}}}}}}}} title: `Payment process`, }, checkoutProcessSuccess: { - chat_plan_acquired_conversations: 'Acquired messages', + chat_plan_acquired_conversations: 'Quantity', chat_plan_billing_title: 'Billing', chat_plan_default_billing: 'Monthly', chat_plan_label: 'Conversations', - chat_plan_title: 'Your conversations plan', + chat_plan_quantity_title: '{quantity} messages', + chat_plan_title: 'Summary of your purchase', chat_plan_type_label: 'Plan Type', discount_half_yearly: 'Biannual', discount_monthly: 'Monthly', @@ -613,9 +614,9 @@ other {}}}}}}}}}} enjoy_doppler_title: 'Enjoy Doppler', enjoying_benefits_doppler_title: 'You can now start enjoying the benefits of your Doppler plans.', go_to_home_link: 'GO TO HOME', - landing_billing_title: 'Renovation', - landing_packages_title: 'Packages', - landing_your_landings_pages_plan_title: 'Your Landings Pages plan', + landing_billing_title: 'Billing', + landing_packages_title: 'Quantity', + landing_your_landings_pages_plan_title: 'Summary of your purchase', mercado_pago_check_email_with_invoice_message: ` Within the first 48 business hours, you will receive an email with the payment confirmation then you will be able to start enjoying your new plan. Payment details will be included in the invoice sent to the recipient you have indicated.`, @@ -625,31 +626,34 @@ Payment details will be included in the invoice sent to the recipient you have i mercado_pago_purchase_finished_title: 'Your payment is being processed', mercado_pago_steps_title: 'Be sure to read the following information:', mercado_pago_warning_message: 'We are processing your payment through Mercado Pago, this may take up to 48 business hours.', - onsite_plan_acquired_prints: 'Impressions acquired', + onsite_plan_acquired_prints: 'Quantity', onsite_plan_billing_title: 'Billing', onsite_plan_default_billing: 'Monthly', onsite_plan_label: 'OnSite', - onsite_plan_title: 'Your OnSite Plan', + onsite_plan_quantity_title: '{quantity} impressions', + onsite_plan_title: 'Summary of your purchase', onsite_plan_type_label: 'Type of plan', plan_type: 'Details', - plan_type_monthly_deliveries: 'Emails by Plan', + plan_type_monthly_deliveries: 'Amount of Emails', plan_type_monthly_deliveries_availables: 'Available Emails', - plan_type_monthly_deliveries_label: 'By Emails', + plan_type_monthly_deliveries_label: 'Emails Plan', plan_type_monthly_deliveries_monthly_renovation: 'Monthly', - plan_type_prepaid: 'Credits by Plan', + plan_type_prepaid: 'Amount of Credits', plan_type_prepaid_availables: 'Available Credits', - plan_type_prepaid_label: 'By Credits', + plan_type_prepaid_label: 'Credit Purchase', plan_type_prepaid_no_expiration: 'No expiration', plan_type_prepaid_promocode: 'Gift Credits', - plan_type_subscribers: 'Contacts by Plan', + plan_type_subscribers: 'Amount of Contacts', plan_type_subscribers_availables: 'Available Contacts', - plan_type_subscribers_label: 'By Contacts', + plan_type_subscribers_label: 'Contacts Plan', + plan_type_title: 'Summary of your purchase', purchase_finished_title: 'Purchase Finished', - push_notification_plan_acquired_emails: 'Purchased shipments', + push_notification_plan_acquired_emails: 'Quantity', push_notification_plan_billing_title: 'Billing', push_notification_plan_default_billing: 'Monthly', push_notification_plan_label: 'Push Notifications', - push_notification_plan_title: 'Your Push Notifications Plan', + push_notification_plan_quantity_title: '{quantity} shipments', + push_notification_plan_title: 'Summary of your purchase', push_notification_plan_type_label: 'Plan Type', renewal_type_title: 'Billing', start_using_new_plan_button: 'Start using your new Plan', diff --git a/src/i18n/es.js b/src/i18n/es.js index 8307f551a..5c7f5883e 100644 --- a/src/i18n/es.js +++ b/src/i18n/es.js @@ -602,11 +602,12 @@ other {}}}}}}}}}} title: `Proceso de pago`, }, checkoutProcessSuccess: { - chat_plan_acquired_conversations: 'Mensajes adquiridas', - chat_plan_billing_title: 'Renovación', + chat_plan_acquired_conversations: 'Cantidad', + chat_plan_billing_title: 'Facturación', chat_plan_default_billing: 'Mensual', chat_plan_label: 'Conversaciones', - chat_plan_title: 'Tu plan de conversaciones', + chat_plan_quantity_title: '{quantity} mensajes', + chat_plan_title: 'Resumen de tu compra', chat_plan_type_label: 'Tipo de Plan', discount_half_yearly: 'Semestral', discount_monthly: 'Mensual', @@ -616,8 +617,8 @@ other {}}}}}}}}}} enjoying_benefits_doppler_title: 'Ya puedes empezar a disfrutar de los beneficios de tus planes de Doppler.', go_to_home_link: 'IR AL INICIO', landing_billing_title: 'Facturación', - landing_packages_title: 'Paquetes', - landing_your_landings_pages_plan_title: 'Tu plan de Landings Pages', + landing_packages_title: 'Cantidad', + landing_your_landings_pages_plan_title: 'Resumen de tu compra', mercado_pago_check_email_with_invoice_message: 'Dentro de las próximas 48 horas hábiles recibirás un mail con la confirmación de pago y podrás empezar a disfrutar de tu nuevo plan.', mercado_pago_contact_support: 'Si tienes dudas respecto al estado del pago puedes escribirnos a billing@fromdoppler.com', mercado_pago_error_in_pay: 'En caso de que el cobro sea rechazado te contactaremos para ayudarte a elegir otro medio de pago.', @@ -625,31 +626,34 @@ other {}}}}}}}}}} mercado_pago_purchase_finished_title: 'Tu pago está siendo procesado', mercado_pago_steps_title: 'No dejes de leer la siguiente información:', mercado_pago_warning_message: 'Estamos procesando tu pago a través de Mercado Pago, esto puede demorar hasta 48 horas hábiles.', - onsite_plan_acquired_prints: 'Impresiones adquiridas', - onsite_plan_billing_title: 'Renovación', + onsite_plan_acquired_prints: 'Cantidad', + onsite_plan_billing_title: 'Facturación', onsite_plan_default_billing: 'Mensual', onsite_plan_label: 'OnSite', - onsite_plan_title: 'Tu plan de on-site', + onsite_plan_quantity_title: '{quantity} impresiones', + onsite_plan_title: 'Resumen de tu compra', onsite_plan_type_label: 'Tipo de Plan', plan_type: 'Detalle', plan_type_monthly_deliveries: 'Cantidad de Envíos', plan_type_monthly_deliveries_availables: 'Envíos Disponibles', plan_type_monthly_deliveries_label: 'Plan Envíos', plan_type_monthly_deliveries_monthly_renovation: 'Mensual', - plan_type_prepaid: 'Créditos por Plan', + plan_type_prepaid: 'Cantidad de Créditos', plan_type_prepaid_availables: 'Créditos Disponibles', plan_type_prepaid_label: 'Por Créditos', plan_type_prepaid_no_expiration: 'Sin vencimiento', plan_type_prepaid_promocode: 'Créditos de regalo', - plan_type_subscribers: 'Contactos por Plan', + plan_type_subscribers: 'Cantidad de Contactos', plan_type_subscribers_availables: 'Contactos disponibles', plan_type_subscribers_label: 'Plan Contactos', + plan_type_title: 'Resumen de tu compra', purchase_finished_title: 'Compra Finalizada', - push_notification_plan_acquired_emails: 'Envíos adquiridos', - push_notification_plan_billing_title: 'Renovación', + push_notification_plan_acquired_emails: 'Cantidad', + push_notification_plan_billing_title: 'Facturación', push_notification_plan_default_billing: 'Mensual', push_notification_plan_label: 'Notificaciones Push', - push_notification_plan_title: 'Tu plan de notificaciones push', + push_notification_plan_quantity_title: '{quantity} envíos', + push_notification_plan_title: 'Resumen de tu compra', push_notification_plan_type_label: 'Tipo de Plan', renewal_type_title: 'Facturación', start_using_new_plan_button: 'Comienza a usar tu nuevo Plan', From 82cfa56c42fe20df9dbfaa081de2c5ed2adc01c8 Mon Sep 17 00:00:00 2001 From: jhoffman-ms Date: Wed, 27 May 2026 08:48:40 -0300 Subject: [PATCH 3/3] chore(checkout-summary): remove unused vars after summary refactor --- .../Checkout/CheckoutSummary/AddOnPlanInformation/index.js | 1 - .../Plans/Checkout/CheckoutSummary/CheckoutSummary.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js b/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js index d857fc3e2..63ef28c2f 100644 --- a/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js +++ b/src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js @@ -1,5 +1,4 @@ import { useIntl } from 'react-intl'; -import { thousandSeparatorNumber } from '../../../../../utils'; import { AddOnType } from '../../../../../doppler-types'; export const AddOnPlanInformation = ({ addOnType, quantity, discount }) => { diff --git a/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js b/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js index 3d26b180d..b560d7659 100644 --- a/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js +++ b/src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js @@ -17,7 +17,6 @@ import { exception } from 'react-ga'; import { UnexpectedError } from '../../PlanCalculator/UnexpectedError'; import { ACCOUNT_TYPE, thousandSeparatorNumber } from '../../../../utils'; import { TransferInformation } from './TransferInformation/index'; -import { CheckoutSummaryButton } from './CheckoutSummaryButton'; import { CheckoutSummaryTitle } from './CheckoutSummaryTitle/index'; import { MercadoPagoInformation } from './MercadoPagoInformation'; import { @@ -501,7 +500,6 @@ export const CheckoutSummary = InjectAppServices( hasError, chatUserPlan, addOnUserPlan, - addOnPromotions, }, dispatch, ] = useReducer(checkoutSummaryReducer, INITIAL_STATE_CHECKOUT_SUMMARY); @@ -622,7 +620,6 @@ export const CheckoutSummary = InjectAppServices( } const title = getTitle(paymentMethod, upgradePending); - const isBuyMarketingPlan = buyType && Number(buyType) !== BUY_LANDING_PACK; const landingsEditorEnabled = appSessionRef?.current?.userData?.features?.landingsEditorEnabled; const canBuyOnSitePlan = process.env.REACT_APP_DOPPLER_CAN_BUY_ONSITE_PLAN === 'true';