Skip to content

✨ Added optional product-tag-text for amp story shopping tag#37112

Merged
jshamble merged 8 commits intoampproject:mainfrom
jshamble:optprodtagtext
Dec 7, 2021
Merged

✨ Added optional product-tag-text for amp story shopping tag#37112
jshamble merged 8 commits intoampproject:mainfrom
jshamble:optprodtagtext

Conversation

@jshamble
Copy link
Copy Markdown
Contributor

@jshamble jshamble commented Dec 4, 2021

Adds an optional parameter which allows you to use the product tag text instead of the displayed price.
closes #37105

@jshamble jshamble requested a review from coreymasanto December 4, 2021 06:09
@amp-owners-bot amp-owners-bot bot requested a review from mszylkowski December 4, 2021 06:09
@jshamble jshamble requested review from processprocess and removed request for mszylkowski December 4, 2021 06:09
@amp-owners-bot
Copy link
Copy Markdown

amp-owners-bot bot commented Dec 4, 2021

Hey @gmajoulet! These files were changed:

extensions/amp-story-shopping/0.1/amp-story-shopping-tag.css
extensions/amp-story-shopping/0.1/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

@processprocess
Copy link
Copy Markdown
Contributor

Nice! Please update the visual diff test for this.
Please update the name of this PR. We don't currently have anything named optProdTagText.

We need to aim for our PR titles to be understandable.
You and I have context on this but please keep in mind that others do not.

Copy link
Copy Markdown
Contributor

@mszylkowski mszylkowski left a comment

Choose a reason for hiding this comment

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

PTAL at the comment, and fix the title (as Philip said).

@jshamble jshamble changed the title ✨ added optProdTagText ✨ Added optional product-tag-text for amp story shopping tag Dec 6, 2021
Copy link
Copy Markdown
Contributor

@mszylkowski mszylkowski left a comment

Choose a reason for hiding this comment

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

Blocking until you make the $ only display for prices.

@jshamble jshamble requested a review from mszylkowski December 6, 2021 21:08
Copy link
Copy Markdown
Contributor

@mszylkowski mszylkowski left a comment

Choose a reason for hiding this comment

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

My understanding is that the currency config will be added in a later stage, so lgtm

@jshamble jshamble merged commit f7475a0 into ampproject:main Dec 7, 2021
@processprocess
Copy link
Copy Markdown
Contributor

Just a note that it's important to post screenshots/demos when working on front end features.
This PR broke styling.

We need to do our best to not introduce regressions in PRs:
Screen Shot 2021-12-08 at 10 11 37 AM

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] Optional product-tag-text for shopping tag

4 participants