Skip to content

✨amp-story-shopping Set active product in store service for product tag.#37103

Merged
processprocess merged 22 commits intoampproject:mainfrom
jshamble:setActiveProduct
Dec 22, 2021
Merged

✨amp-story-shopping Set active product in store service for product tag.#37103
processprocess merged 22 commits intoampproject:mainfrom
jshamble:setActiveProduct

Conversation

@jshamble
Copy link
Copy Markdown
Contributor

@jshamble jshamble commented Dec 3, 2021

Adds the ability to set the active product in the store service when a shopping tag is clicked.

closes #37013

@amp-owners-bot
Copy link
Copy Markdown

amp-owners-bot bot commented Dec 3, 2021

Hey @gmajoulet! These files were changed:

extensions/amp-story-shopping/0.1/amp-story-shopping-tag.js
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-tag.js
extensions/amp-story/1.0/amp-story-store-service.js

Hey @newmuis! These files were changed:

extensions/amp-story/1.0/amp-story-store-service.js

@jshamble jshamble requested review from coreymasanto and processprocess and removed request for processprocess December 3, 2021 04:07
Copy link
Copy Markdown
Contributor

@processprocess processprocess left a comment

Choose a reason for hiding this comment

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

Nice work!

I left some comments on how we can remove the storeService.get and how it's beneficial to set activeProduct to the entire product data.

Don't forget to update the typeDef to include activeProduct!

Also now that I'm thinking about it, it might make more sense to name it activeProductData.

@jshamble jshamble removed the request for review from processprocess December 14, 2021 00:59
@jshamble jshamble dismissed processprocess’s stale review December 14, 2021 23:45

processprocess is OOO and gmajoulet will be taking his place until he gets back

@processprocess processprocess merged commit 5d28265 into ampproject:main Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[amp story shopping] Set active product data in store service

5 participants