Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[amp story shopping] Attachment template logic #36735

Closed
processprocess opened this issue Nov 3, 2021 · 1 comment
Closed

[amp story shopping] Attachment template logic #36735

processprocess opened this issue Nov 3, 2021 · 1 comment

Comments

@processprocess
Copy link
Contributor

processprocess commented Nov 3, 2021

Description

The attachment opening is triggered by clicking the CTA (built into the cta logic already) or a product tag (new logic implemented in #36734).

Upon opening:

  1. If there is an activeProduct in the store service or only one product on the page, render the PDP.
  2. If activeProduct is null, render PLP.

Upon closing (closing logic is built into the pageAttachment already):
Clear the activeProduct field in the store service.
Screen Shot 2021-11-03 at 12 16 04 PM

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

No branches or pull requests

1 participant