Comments (9)
Hi @Dudo1985, thank you for reporting! We have fixed the issue that you reported and so you can checkout feature/pricing-amount-fraction-fix branch to check the changes.
from pricing-page.
Hello, @xiahengchen!
I have just checked pricing-amount-fraction-fix
and it's not working as expected: there are no dots for now, but the prices aren't correct, take a look:
PS: And may be we should use dot instead of comma at "Normally ..." text?
from pricing-page.
By the way, don't you think, that we should display price per year, not per month, so users can see the final price instantly without calculations in their heads ;)
Or at least display per month and per year.
from pricing-page.
@iksent the code is intentionally using num.toLocaleString()
to show the prices based on the local numeric format. Some countries use "." for decimal digits separation, but some use ",". That's btw also the reason we failed to fix the bug on the first try. @xiahengchen is already working on the fix.
With regard to your question, it's psychologically easier to commit when seeing smaller numbers rather than showing the annual price, so this practice is known to increase conversion rate. At a later stage, we may introduce a flag for you to choose if you prefer to show the annual prices.
from pricing-page.
+1 for flag and more configurations :)
from pricing-page.
@iksent Please pull the latest changes of feature/pricing-amount-fraction-fix branch and you can see the bug has been fixed. Please let me know if this works for you.
from pricing-page.
Hello, @xiahengchen!
There is the result of the latest fixes:
I have a special JS-function to display the prices correctly. You can try to use it too:
export const toFixedN = (
number: ?number,
fractionDigits: number = 4,
canBeNull: boolean = true,
): string => {
let num = number
num = +num
if (isNaN(num)) {
return '-'
}
if (num === 0) {
return canBeNull ? '0' : '~0'
}
if (num < 1) {
num = num.toFixed(fractionDigits).replace(/\.?0+$/, '')
} else {
num = parseFloat(num.toFixed(fractionDigits))
}
return +num === 0 ? `~${num}` : num.toString()
}
This function works like standard toFixed but also handles small values (<1) correctly.
from pricing-page.
Sorry for the inconvenience @iksent. We fixed the above issue and pushed the changes to the feature/pricing-amount-fraction-fix branch. Please check it and let us know if you still see any issues.
from pricing-page.
Merged to the develop
branch PR #9
from pricing-page.
Related Issues (12)
- Better handling for single plans (but offers multiple site tiers) HOT 2
- Checkout scrolling issue
- Title and Logo aren't styled consistently
- Too big size of production build HOT 6
- Add a new build script for development
- Add readme to master branch so docs are visible on repo landing page HOT 1
- Update the readme to include development workflow
- Filter `freemius_pricing_js_path` expects absolute path, not relative
- Problems with blocks at mobile devices HOT 10
- Option to select products / bundles to view in the pricing page
- Able to check out with hidden prices HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pricing-page.