Skip to content

Conversation

@jaissica12
Copy link
Contributor

Instructions

  1. PR target branch should be against development
  2. PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
  3. PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary

  • Extended existing product attribute mapping functionality to AddToCart and Checkout event.
  • Add related tests

Testing Plan

  • Was this tested locally? If not, explain why.
  • {explain how this has been tested, and what, if any, additional testing should be done}
Screenshot 2025-11-25 at 2 36 16 PM Screenshot 2025-11-25 at 2 36 42 PM Screenshot 2025-11-25 at 2 37 20 PM

Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)

@jaissica12 jaissica12 requested a review from rmi22186 November 25, 2025 21:25
if (contents && contents.length > 0) {
params['contents'] = contents;
}
var contents = buildProductContents(event.ProductAction.ProductList);
Copy link
Collaborator

Choose a reason for hiding this comment

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

var contents is being redeclared here. best to declar it at the top of the file rather than twice at 234/257

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved contents declaration to the top of the logCommerceEvent function (line 171)

Copy link
Collaborator

@rmi22186 rmi22186 left a comment

Choose a reason for hiding this comment

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

just 1 minor comment

@jaissica12 jaissica12 requested a review from rmi22186 November 26, 2025 14:56
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.

3 participants