Skip to content

@W-19143871 Marketing Consent Footer Email Capture component#3671

Closed
mitesh-patel-crm wants to merge 10 commits intodevelopfrom
feature/develop-shopper-consent-marketing-preferences
Closed

@W-19143871 Marketing Consent Footer Email Capture component#3671
mitesh-patel-crm wants to merge 10 commits intodevelopfrom
feature/develop-shopper-consent-marketing-preferences

Conversation

@mitesh-patel-crm
Copy link
Collaborator

@mitesh-patel-crm mitesh-patel-crm commented Feb 18, 2026

REPLACING with PR #3674 to ensure all commits are signed.


This change is to add support for the Marketing Consent feature, which allows capture of shopper consent for marketing communications.

Description

The feature uses the Shopper Consents API to opt shoppers into consent subscriptions configured by an administrator in B2C Commerce.

Requires the EnableConsentWithMarketingCloud Shopper Configurations flag is set (meaning the feature is enabled in ECOM).

SLAS Client requires the scope sfcc.shopper-consents to read consent options, and sfcc.shopper-consents.rw to submit consent (opt-in or opt-out).

As an example, the SubscribeMarketingConsent footer component uses the useMarketingConsent hook for managing consent data and mutations via useEmailSubscription to help manage email subscriptions. This example footer component will not attempt any callouts if the feature is disabled (as indicated by the EnableConsentWithMarketingCloud Shopper Configurations flag).

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Changes

  • (change1)

How to Test-Drive This PR

  • Enable Salesforce Connections in your B2C Commerce instance to connect with a Salesforce Org that has Data Cloud and E360 Engagement Channels enabled.
  • Set up Marketing Consent in B2C Commerce
  • Try email footer component to capture shopper marketing consent.

Checklists

General

  • Changes are covered by test cases
  • CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

mitesh-patel-crm and others added 6 commits November 6, 2025 18:40
feat: react hooks for Shopper Consents v1.1.3. linking with commerce-sdk-isomorphic@4.0.0-nightly-20251031080733.
…ting subscription hooks (#3471)

* footer component updated. button handler added. labels updated.
* handler to query shopper-consents SCAPI using &tags=email_capture, and also to opt-in for all matching subscriptions using the input email address as the contactPointValue.
…-preferences

# Conflicts:
#	packages/commerce-sdk-react/package-lock.json
#	packages/commerce-sdk-react/package.json
#	packages/commerce-sdk-react/src/hooks/types.ts
#	packages/template-retail-react-app/app/hooks/index.js
@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Feb 18, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mitesh-patel-crm mitesh-patel-crm marked this pull request as ready for review February 19, 2026 05:27
@mitesh-patel-crm mitesh-patel-crm requested a review from a team as a code owner February 19, 2026 05:27
@mitesh-patel-crm mitesh-patel-crm force-pushed the feature/develop-shopper-consent-marketing-preferences branch from e97788e to f0a7015 Compare February 19, 2026 06:09
@mitesh-patel-crm mitesh-patel-crm requested review from a team as code owners February 19, 2026 06:09
@mitesh-patel-crm mitesh-patel-crm force-pushed the feature/develop-shopper-consent-marketing-preferences branch from f0a7015 to e97788e Compare February 19, 2026 06:14
@mitesh-patel-crm
Copy link
Collaborator Author

REPLACING with PR #3674 to ensure all commits are signed.
#3674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants