Skip to content

MWPW-201713: Keep promo code on inline prices when unwrapping mas-field#6339

Open
Axelcureno wants to merge 4 commits into
stagefrom
MWPW-201713
Open

MWPW-201713: Keep promo code on inline prices when unwrapping mas-field#6339
Axelcureno wants to merge 4 commits into
stagefrom
MWPW-201713

Conversation

@Axelcureno

@Axelcureno Axelcureno commented Jul 23, 2026

Copy link
Copy Markdown
Member

Resolves https://jira.corp.adobe.com/browse/MWPW-201713

When merch-card-autoblock unwraps a mas-field whose inline content contains a link (marquee price lines with a See terms link), the price spans lose the mas-field ancestor that supplies the promotion code, so they re-resolve at the base price. This stamps data-promotion-code onto each inline price before the unwrap.

Test URLs:

Verified: hero marquee promo line reads US$19.99/mo on Before, US$15.99/mo (with promo code stamped) on After.

@Axelcureno
Axelcureno requested a review from a team as a code owner July 23, 2026 19:57
@aem-code-sync

aem-code-sync Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@Axelcureno

Copy link
Copy Markdown
Member Author

Related MAS PR for the same ticket: adobecom/mas#1076 — matches rich text OSIs when applying promo project codes in the fragment pipeline.

@lasogard

Copy link
Copy Markdown

hello @Blainegunn @TsayAdobe @seanchoi0 @joaquinrivero can u pls review this one expeditiously, we are in dire need of it to be merged for BTS promo validation (among other promo validations) thanky ouuuu @3ch023
and blocking monday go live

@Axelcureno Axelcureno self-assigned this Jul 24, 2026

@Blainegunn Blainegunn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @Axelcureno

@Roycethan Roycethan added verified PR has been E2E tested by a reviewer Ready for Stage labels Jul 24, 2026
# Conflicts:
#	libs/blocks/merch-card-autoblock/merch-card-autoblock.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Stage verified PR has been E2E tested by a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants