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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fixed incorrect @price data in themes #12985

Merged
merged 1 commit into from May 26, 2021

Conversation

rishabhgrg
Copy link
Contributor

closes #12980
closes https://github.com/TryGhost/Team/issues/730

As part of changes in 4.6, the default price ids for monthly/yearly prices are stored in new settings - members_monthly_price_id, members_yearly_price_id - which are used to determine current active prices for the site from list of all existing prices. The @price helper was incorrectly still relying on the old logic for active monthly/yearly price using the first active price with matching nickname, and resulted in showing incorrect price data on the theme.

@rishabhgrg rishabhgrg changed the title 馃悰 Fixed incorrect @price data in themes 馃悰 Fixed incorrect @price data in themes May 26, 2021
closes TryGhost#12980
closes https://github.com/TryGhost/Team/issues/730

As part of changes in 4.6, the default price ids for monthly/yearly prices are stored in new settings - `members_monthly_price_id`, `members_yearly_price_id` - which are used to determine current active prices for the site from list of all existing prices. The `@price` helper was incorrectly still relying on the old logic for active monthly/yearly price using the first active price with matching nickname, and resulted in showing incorrect price data on the theme.

- Updated tests to check price data using settings value
@rishabhgrg rishabhgrg merged commit 1345268 into TryGhost:main May 26, 2021
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.

The price change is not updated for the helper {{price @price.monthly}} and {{price @price.yearly}}
1 participant