Skip to content

Commit

Permalink
SF: cart: display distinct message for applied free transport and pay…
Browse files Browse the repository at this point in the history
…ment promo code
  • Loading branch information
vitek-rostislav committed Dec 17, 2024
1 parent c6e5ed0 commit 095688a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions storefront/components/Blocks/PromoCode/PromoCodeInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RemoveIcon } from 'components/Basic/Icon/RemoveIcon';
import { LabelLink } from 'components/Basic/LabelLink/LabelLink';
import { TIDs } from 'cypress/tids';
import { TypePromoCode } from 'graphql/types';
import { TypePromoCode, TypePromoCodeTypeEnum } from 'graphql/types';
import useTranslation from 'next-translate/useTranslation';

type PromoCodeInfoProps = {
Expand All @@ -22,9 +22,11 @@ export const PromoCodeInfo: FC<PromoCodeInfoProps> = ({ onRemovePromoCodeCallbac
</LabelLink>
</div>
<p className="text-textDisabled ">
{t(
'The discount was applied to all non-discounted items to which the promotion applies according to the rules.',
)}
{promoCode.type === TypePromoCodeTypeEnum.FreeTransportPayment
? t('The discount was applied to the order transport and payment.')
: t(
'The discount was applied to all non-discounted items to which the promotion applies according to the rules.',
)}
</p>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions storefront/public/locales/cs/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@
"The amount of discounts": "Výše slevy",
"The current password is incorrect": "Současné heslo je nesprávné",
"The discount was applied to all non-discounted items to which the promotion applies according to the rules.": "Sleva byla uplatněna na všechny již neslevněné položky na které se akce vztahuje podle pravidel.",
"The discount was applied to the order transport and payment.": "Sleva byla aplikována na dopravu a platbu v objednávce",
"The feedback reporting tool has been successfully activated for you": "Nástroj pro hlášení zpětné vazby vám byl úspěšně aktivován",
"The feedback tool has been successfully deactivated for you": "Nástroj pro hlášení zpětné vazby vám byl úspěšně deaktivován",
"The item has been added to your wishlist.": "Produkt byl přidán do vašich oblíbených produktů.",
Expand Down
1 change: 1 addition & 0 deletions storefront/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@
"The amount of discounts": "The amount of discounts",
"The current password is incorrect": "The current password is incorrect",
"The discount was applied to all non-discounted items to which the promotion applies according to the rules.": "The discount was applied to all non-discounted items to which the promotion applies according to the rules.",
"The discount was applied to the order transport and payment.": "The discount was applied to the order transport and payment.",
"The feedback reporting tool has been successfully activated for you": "The feedback reporting tool has been successfully activated for you",
"The feedback tool has been successfully deactivated for you": "The feedback tool has been successfully deactivated for you",
"The item has been added to your wishlist.": "The item has been added to your wishlist.",
Expand Down
1 change: 1 addition & 0 deletions storefront/public/locales/sk/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@
"The amount of discounts": "Výška zľavy",
"The current password is incorrect": "Súčasné heslo je nesprávne",
"The discount was applied to all non-discounted items to which the promotion applies according to the rules.": "Zľava bola uplatnená na všetky už nezľavnené položky na ktoré sa akcia vzťahuje podľa pravidiel.",
"The discount was applied to the order transport and payment.": "Zľava bola uplatnená na dopravu a platbu objednávky.",
"The feedback reporting tool has been successfully activated for you": "Nástroj na nahlasovanie spätnej väzby bol pre vás úspešne aktivovaný",
"The feedback tool has been successfully deactivated for you": "Nástroj spätnej väzby bol pre vás úspešne deaktivovaný",
"The item has been added to your wishlist.": "Produkt bol pridaný do vašich obľúbených produktov.",
Expand Down

0 comments on commit 095688a

Please sign in to comment.