Skip to content

[amp story shopping] Attachment template logic #36735

@processprocess

Description

@processprocess

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions