freemius / pricing-page Goto Github PK
View Code? Open in Web Editor NEWFreemius pricing page v2.0
Home Page: https://freemius.com
License: MIT License
Freemius pricing page v2.0
Home Page: https://freemius.com
License: MIT License
It looks like if plans have different prices, the default price is always 1 site, even if this price is hidden. Here's the pricing page:
When checking out, even if the 3 sites license is selected, it defaults to single site license on checkout:
I believe this is because:
This would allow for more flexibility.
It would be great to integrate the option for defining products. In my case i have only one product without different plans and based on more source code security i will be using add-ons. Therefore it would be great to define up to four products for the pricing page. In my case these would be bundles with the main plugin and different add-ons.
Add information on developing the pricing page (rather than just testing it).
e.g. Show how to use symlinks to dynamically add the dist
folder to the freemius
folder on your local WP site. I think it's important we get as many Freemius partners as possible testing/contributing to the pricing page, so it makes sense to make this as easy as possible.
At the moment there is no comprehensive readme on the master branch so nothing displays for visitors to the repo landing page. Until develop
is merged into master
we should probably update the readme in the mean-time.
The result size of production build's file (freemius-pricing.js) is 2.5Mb.
Why it is so big? This is a size of the average website, but there is only 1 page with several pricing blocks and slider.
I think you should find out why the file is so heavy and try to reduce its' size.
(I am a React-developer, so I know that a lot of React-code can weigh a little in the production build)
Here's my current pricing. I only have 1 product plan but available in different number of sites. My plans are annual only.
When I try out the new pricing page, I'm getting this:
A few things:
For 1 and 2, the pricing can end up like this:
Behavior:
freemius_pricing_js_path
expects a relative path to the freemius-pricing.js
.So given, I have the js file in assets/freemius-pricing/freemius-pricing.js
the following code will not work:
// BAD CODE, WILL NOT WORK
my_fs()->add_filter(
'freemius_pricing_js_path',
function( $default_path ) {
return '/assets/freemius-pricing/freemius-pricing.js';
}
);
But this will
// GOOD CODE
my_fs()->add_filter(
'freemius_pricing_js_path',
function( $default_path ) {
return \plugin_dir_path( __FILE__ )
. 'assets/freemius-pricing/freemius-pricing.js';
}
);
Versions: (*)
Freemius Pricing Page Version:
developFreemius SDK Version:
develop (2.4.2.2)WordPress Version:
5.6PHP Version:
7.4At the moment there's only a production build step which means every time the code is edited you have to manually npm run build
.
To make the workflow more effiecient it would be better to also have a development script that watches files and builds a development version of the pricing page (i.e. code not minified etc. to keep compile time to a minimum).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.