How can I add features to each plan as seen on the pricing page?
You can set different features, quantities and limitations to each plan easily.
See app/models/sjabloon/plan.rb
. It comes with a “jsonb” field called “features” (it uses the storext gem for this). Add features here any of you plans might have, eg. team_members Integer
. You can update your plan with, eg. Sjabloon::Plan.first.update team_members: 5
.
The method plan_item
in Sjabloon::PlansHelper
tries to be smart about the design for it on your Pricing page.