0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/test/utils/fixtures/themes/price-data-test-theme/index.hbs
Rishabh Garg 36803a4290
🐛 Fixed incorrect @price.currency value in themes (#12987)
closes https://github.com/TryGhost/Ghost/issues/12986
refs 1345268089

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. While the last commit updated the prices to use the settings, the data for currency was still used from non-zero prices instead of the new settings value.

- Updated tests to check price currency
2021-05-27 10:49:35 +05:30

6 lines
243 B
Handlebars

<p class="number">
You can use the price data as a number and currency: {{price currency=@price.currency}}{{@price.monthly}}
</p>
<p class="with-price-helper">
You can pass price data to the price helper: {{price @price.monthly}}
</p>