Skip to content

Commit 2dfe9e4

Browse files
authored
Merge pull request #2884 from FromDoppler/update-summary-page
fix(checkout-summary): unificar textos y labels del resumen de compra
2 parents 87361d7 + 82cfa56 commit 2dfe9e4

4 files changed

Lines changed: 90 additions & 63 deletions

File tree

src/components/Plans/Checkout/CheckoutSummary/AddOnPlanInformation/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useIntl } from 'react-intl';
2-
import { thousandSeparatorNumber } from '../../../../../utils';
32
import { AddOnType } from '../../../../../doppler-types';
43

54
export const AddOnPlanInformation = ({ addOnType, quantity, discount }) => {
@@ -46,7 +45,7 @@ export const AddOnPlanInformation = ({ addOnType, quantity, discount }) => {
4645
}`,
4746
)}
4847
</span>
49-
<h3>{thousandSeparatorNumber(intl.defaultLocale, quantity)}</h3>
48+
<h3>{quantity}</h3>
5049
</li>
5150
<li>
5251
{discount ? (

src/components/Plans/Checkout/CheckoutSummary/CheckoutSummary.js

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { exception } from 'react-ga';
1717
import { UnexpectedError } from '../../PlanCalculator/UnexpectedError';
1818
import { ACCOUNT_TYPE, thousandSeparatorNumber } from '../../../../utils';
1919
import { TransferInformation } from './TransferInformation/index';
20-
import { CheckoutSummaryButton } from './CheckoutSummaryButton';
2120
import { CheckoutSummaryTitle } from './CheckoutSummaryTitle/index';
2221
import { MercadoPagoInformation } from './MercadoPagoInformation';
2322
import {
@@ -222,7 +221,7 @@ const PlanMarketingInformation = ({
222221

223222
return (
224223
<>
225-
<h4 className="dp-tit-plan-purchased">Tu plan de email marketing</h4>
224+
<h4 className="dp-tit-plan-purchased">{_(`checkoutProcessSuccess.plan_type_title`)}</h4>
226225
<ul className="dp-purchase-summary-list">
227226
<li>
228227
<span>{_(`checkoutProcessSuccess.plan_type`)}</span>
@@ -238,12 +237,6 @@ const PlanMarketingInformation = ({
238237
<h3>{thousandSeparatorNumber(intl.defaultLocale, extraCredits)}</h3>
239238
</li>
240239
) : null}
241-
<li>
242-
<span>
243-
{_(`checkoutProcessSuccess.plan_type_${planType.replace('-', '_')}_availables`)}
244-
</span>
245-
<h3>{thousandSeparatorNumber(intl.defaultLocale, remainingCredits)}</h3>
246-
</li>
247240
<li>
248241
{planType === PLAN_TYPE.byContact && discount ? (
249242
<>
@@ -507,7 +500,6 @@ export const CheckoutSummary = InjectAppServices(
507500
hasError,
508501
chatUserPlan,
509502
addOnUserPlan,
510-
addOnPromotions,
511503
},
512504
dispatch,
513505
] = useReducer(checkoutSummaryReducer, INITIAL_STATE_CHECKOUT_SUMMARY);
@@ -628,7 +620,6 @@ export const CheckoutSummary = InjectAppServices(
628620
}
629621

630622
const title = getTitle(paymentMethod, upgradePending);
631-
const isBuyMarketingPlan = buyType && Number(buyType) !== BUY_LANDING_PACK;
632623
const landingsEditorEnabled = appSessionRef?.current?.userData?.features?.landingsEditorEnabled;
633624

634625
const canBuyOnSitePlan = process.env.REACT_APP_DOPPLER_CAN_BUY_ONSITE_PLAN === 'true';
@@ -665,22 +656,52 @@ export const CheckoutSummary = InjectAppServices(
665656
) : buyType && Number(buyType) === BUY_CHAT_PLAN ? (
666657
chatUserPlan !== null && (
667658
<AddOnPlanInformation
668-
quantity={addOnUserPlan.quantity}
659+
quantity={
660+
<FormattedMessage
661+
id={'checkoutProcessSuccess.chat_plan_quantity_title'}
662+
values={{
663+
quantity: thousandSeparatorNumber(
664+
intl.defaultLocale,
665+
addOnUserPlan.quantity,
666+
),
667+
}}
668+
/>
669+
}
669670
discount={discount}
670671
addOnType={AddOnType.Conversations}
671672
/>
672673
)
673674
) : buyType && Number(buyType) === BUY_ONSITE_PLAN && addOnUserPlan !== null ? (
674675
<AddOnPlanInformation
675-
quantity={addOnUserPlan.quantity}
676+
quantity={
677+
<FormattedMessage
678+
id={'checkoutProcessSuccess.onsite_plan_quantity_title'}
679+
values={{
680+
quantity: thousandSeparatorNumber(
681+
intl.defaultLocale,
682+
addOnUserPlan.quantity,
683+
),
684+
}}
685+
/>
686+
}
676687
discount={discount}
677688
addOnType={AddOnType.OnSite}
678689
/>
679690
) : buyType &&
680691
Number(buyType) === BUY_PUSH_NOTIFICATION_PLAN &&
681692
addOnUserPlan !== null ? (
682693
<AddOnPlanInformation
683-
quantity={addOnUserPlan.quantity}
694+
quantity={
695+
<FormattedMessage
696+
id={'checkoutProcessSuccess.push_notification_plan_quantity_title'}
697+
values={{
698+
quantity: thousandSeparatorNumber(
699+
intl.defaultLocale,
700+
addOnUserPlan.quantity,
701+
),
702+
}}
703+
/>
704+
}
684705
discount={discount}
685706
addOnType={AddOnType.PushNotifications}
686707
/>
@@ -696,12 +717,12 @@ export const CheckoutSummary = InjectAppServices(
696717
<MercadoPagoInformation upgradePending={upgradePending} />
697718
) : null}
698719

699-
{isBuyMarketingPlan && (
720+
{/* {isBuyMarketingPlan && (
700721
<CheckoutSummaryButton
701722
paymentMethod={paymentMethod}
702723
upgradePending={upgradePending}
703724
/>
704-
)}
725+
)} */}
705726
</div>
706727
{landingsEditorEnabled && (
707728
<div className="col-sm-4 m-b-24">
@@ -719,7 +740,6 @@ export const CheckoutSummary = InjectAppServices(
719740
</div>
720741
)}
721742
</div>
722-
{<ModalPromoAddons addOnPromotions={addOnPromotions} />}
723743
</section>
724744
</>
725745
);

src/i18n/en.js

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -600,22 +600,23 @@ other {}}}}}}}}}}
600600
title: `Payment process`,
601601
},
602602
checkoutProcessSuccess: {
603-
chat_plan_acquired_conversations: 'Acquired messages',
603+
chat_plan_acquired_conversations: 'Quantity',
604604
chat_plan_billing_title: 'Billing',
605605
chat_plan_default_billing: 'Monthly',
606606
chat_plan_label: 'Conversations',
607-
chat_plan_title: 'Your conversations plan',
607+
chat_plan_quantity_title: '{quantity} messages',
608+
chat_plan_title: 'Summary of your purchase',
608609
chat_plan_type_label: 'Plan Type',
609-
discount_half_yearly: '6 months',
610-
discount_monthly: '1 month',
611-
discount_quarterly: '3 months',
612-
discount_yearly: '12 months',
610+
discount_half_yearly: 'Biannual',
611+
discount_monthly: 'Monthly',
612+
discount_quarterly: 'Quarterly',
613+
discount_yearly: 'Annual',
613614
enjoy_doppler_title: 'Enjoy Doppler',
614615
enjoying_benefits_doppler_title: 'You can now start enjoying the benefits of your Doppler plans.',
615616
go_to_home_link: 'GO TO HOME',
616-
landing_billing_title: 'Renovation',
617-
landing_packages_title: 'Packages',
618-
landing_your_landings_pages_plan_title: 'Your Landings Pages plan',
617+
landing_billing_title: 'Billing',
618+
landing_packages_title: 'Quantity',
619+
landing_your_landings_pages_plan_title: 'Summary of your purchase',
619620
mercado_pago_check_email_with_invoice_message: `
620621
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.
621622
Payment details will be included in the invoice sent to the recipient you have indicated.`,
@@ -625,35 +626,38 @@ Payment details will be included in the invoice sent to the recipient you have i
625626
mercado_pago_purchase_finished_title: 'Your payment is being processed',
626627
mercado_pago_steps_title: 'Be sure to read the following information:',
627628
mercado_pago_warning_message: 'We are processing your payment through Mercado Pago, this may take up to 48 business hours.',
628-
onsite_plan_acquired_prints: 'Impressions acquired',
629+
onsite_plan_acquired_prints: 'Quantity',
629630
onsite_plan_billing_title: 'Billing',
630631
onsite_plan_default_billing: 'Monthly',
631632
onsite_plan_label: 'OnSite',
632-
onsite_plan_title: 'Your OnSite Plan',
633+
onsite_plan_quantity_title: '{quantity} impressions',
634+
onsite_plan_title: 'Summary of your purchase',
633635
onsite_plan_type_label: 'Type of plan',
634-
plan_type: 'Plan Type',
635-
plan_type_monthly_deliveries: 'Emails by Plan',
636+
plan_type: 'Details',
637+
plan_type_monthly_deliveries: 'Amount of Emails',
636638
plan_type_monthly_deliveries_availables: 'Available Emails',
637-
plan_type_monthly_deliveries_label: 'By Emails',
639+
plan_type_monthly_deliveries_label: 'Emails Plan',
638640
plan_type_monthly_deliveries_monthly_renovation: 'Monthly',
639-
plan_type_prepaid: 'Credits by Plan',
641+
plan_type_prepaid: 'Amount of Credits',
640642
plan_type_prepaid_availables: 'Available Credits',
641-
plan_type_prepaid_label: 'By Credits',
643+
plan_type_prepaid_label: 'Credit Purchase',
642644
plan_type_prepaid_no_expiration: 'No expiration',
643645
plan_type_prepaid_promocode: 'Gift Credits',
644-
plan_type_subscribers: 'Contacts by Plan',
646+
plan_type_subscribers: 'Amount of Contacts',
645647
plan_type_subscribers_availables: 'Available Contacts',
646-
plan_type_subscribers_label: 'By Contacts',
648+
plan_type_subscribers_label: 'Contacts Plan',
649+
plan_type_title: 'Summary of your purchase',
647650
purchase_finished_title: 'Purchase Finished',
648-
push_notification_plan_acquired_emails: 'Purchased shipments',
651+
push_notification_plan_acquired_emails: 'Quantity',
649652
push_notification_plan_billing_title: 'Billing',
650653
push_notification_plan_default_billing: 'Monthly',
651654
push_notification_plan_label: 'Push Notifications',
652-
push_notification_plan_title: 'Your Push Notifications Plan',
655+
push_notification_plan_quantity_title: '{quantity} shipments',
656+
push_notification_plan_title: 'Summary of your purchase',
653657
push_notification_plan_type_label: 'Plan Type',
654-
renewal_type_title: 'Renovation',
658+
renewal_type_title: 'Billing',
655659
start_using_new_plan_button: 'Start using your new Plan',
656-
title: `Excellent! You’ve updated your Plan`,
660+
title: `Your purchase has been successful!`,
657661
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.',
658662
transfer_confirmation_message: 'Once we confirm the payment reception, we’ll tell you by email. You will be able to use your new Plan!',
659663
transfer_explore_button: 'Explore',

src/i18n/es.js

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -602,58 +602,62 @@ other {}}}}}}}}}}
602602
title: `Proceso de pago`,
603603
},
604604
checkoutProcessSuccess: {
605-
chat_plan_acquired_conversations: 'Mensajes adquiridas',
606-
chat_plan_billing_title: 'Renovación',
605+
chat_plan_acquired_conversations: 'Cantidad',
606+
chat_plan_billing_title: 'Facturación',
607607
chat_plan_default_billing: 'Mensual',
608608
chat_plan_label: 'Conversaciones',
609-
chat_plan_title: 'Tu plan de conversaciones',
609+
chat_plan_quantity_title: '{quantity} mensajes',
610+
chat_plan_title: 'Resumen de tu compra',
610611
chat_plan_type_label: 'Tipo de Plan',
611-
discount_half_yearly: '6 meses',
612-
discount_monthly: '1 mes',
613-
discount_quarterly: '3 meses',
614-
discount_yearly: '12 meses',
612+
discount_half_yearly: 'Semestral',
613+
discount_monthly: 'Mensual',
614+
discount_quarterly: 'Trimestral',
615+
discount_yearly: 'Anual',
615616
enjoy_doppler_title: 'Disfruta Doppler',
616617
enjoying_benefits_doppler_title: 'Ya puedes empezar a disfrutar de los beneficios de tus planes de Doppler.',
617618
go_to_home_link: 'IR AL INICIO',
618619
landing_billing_title: 'Facturación',
619-
landing_packages_title: 'Paquetes',
620-
landing_your_landings_pages_plan_title: 'Tu plan de Landings Pages',
620+
landing_packages_title: 'Cantidad',
621+
landing_your_landings_pages_plan_title: 'Resumen de tu compra',
621622
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.',
622623
mercado_pago_contact_support: 'Si tienes dudas respecto al estado del pago puedes escribirnos a <Bold>billing@fromdoppler.com</Bold>',
623624
mercado_pago_error_in_pay: 'En caso de que el cobro sea rechazado te contactaremos para ayudarte a elegir otro medio de pago.',
624625
mercado_pago_pay_the_invoice_message: 'La factura con el detalle de pago será enviada al destinatario que hayas indicado.',
625626
mercado_pago_purchase_finished_title: 'Tu pago está siendo procesado',
626627
mercado_pago_steps_title: 'No dejes de leer la siguiente información:',
627628
mercado_pago_warning_message: 'Estamos procesando tu pago a través de Mercado Pago, esto puede demorar hasta 48 horas hábiles.',
628-
onsite_plan_acquired_prints: 'Impresiones adquiridas',
629-
onsite_plan_billing_title: 'Renovación',
629+
onsite_plan_acquired_prints: 'Cantidad',
630+
onsite_plan_billing_title: 'Facturación',
630631
onsite_plan_default_billing: 'Mensual',
631632
onsite_plan_label: 'OnSite',
632-
onsite_plan_title: 'Tu plan de on-site',
633+
onsite_plan_quantity_title: '{quantity} impresiones',
634+
onsite_plan_title: 'Resumen de tu compra',
633635
onsite_plan_type_label: 'Tipo de Plan',
634-
plan_type: 'Tipo de Plan',
635-
plan_type_monthly_deliveries: 'Envíos por Plan',
636+
plan_type: 'Detalle',
637+
plan_type_monthly_deliveries: 'Cantidad de Envíos',
636638
plan_type_monthly_deliveries_availables: 'Envíos Disponibles',
637-
plan_type_monthly_deliveries_label: 'Por Envíos',
639+
plan_type_monthly_deliveries_label: 'Plan Envíos',
638640
plan_type_monthly_deliveries_monthly_renovation: 'Mensual',
639-
plan_type_prepaid: 'Créditos por Plan',
641+
plan_type_prepaid: 'Cantidad de Créditos',
640642
plan_type_prepaid_availables: 'Créditos Disponibles',
641643
plan_type_prepaid_label: 'Por Créditos',
642644
plan_type_prepaid_no_expiration: 'Sin vencimiento',
643645
plan_type_prepaid_promocode: 'Créditos de regalo',
644-
plan_type_subscribers: 'Contactos por Plan',
646+
plan_type_subscribers: 'Cantidad de Contactos',
645647
plan_type_subscribers_availables: 'Contactos disponibles',
646-
plan_type_subscribers_label: 'Por Contactos',
648+
plan_type_subscribers_label: 'Plan Contactos',
649+
plan_type_title: 'Resumen de tu compra',
647650
purchase_finished_title: 'Compra Finalizada',
648-
push_notification_plan_acquired_emails: 'Envíos adquiridos',
649-
push_notification_plan_billing_title: 'Renovación',
651+
push_notification_plan_acquired_emails: 'Cantidad',
652+
push_notification_plan_billing_title: 'Facturación',
650653
push_notification_plan_default_billing: 'Mensual',
651654
push_notification_plan_label: 'Notificaciones Push',
652-
push_notification_plan_title: 'Tu plan de notificaciones push',
655+
push_notification_plan_quantity_title: '{quantity} envíos',
656+
push_notification_plan_title: 'Resumen de tu compra',
653657
push_notification_plan_type_label: 'Tipo de Plan',
654-
renewal_type_title: 'Renovación',
658+
renewal_type_title: 'Facturación',
655659
start_using_new_plan_button: 'Comienza a usar tu nuevo Plan',
656-
title: Excelente! Has actualizado tu Plan`,
660+
title: Tu compra ha sido exitosa!`,
657661
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.',
658662
transfer_confirmation_message: 'Una vez que confirmemos la recepción del pago te avisaremos por mail. ¡Ya podrás disfrutar de tu nuevo Plan!',
659663
transfer_explore_button: 'Explorar',

0 commit comments

Comments
 (0)