You can replace your site’s default Wix Pricing Plans page with your own customized version. This enables you to modify or extend the page’s functionality to suit your precise business needs.
To integrate the page into your site’s pricing plans flow and implement its functionality, you need to add code to the page and use Velo APIs.
Your code has to do several things:
To create a custom Pricing Plans page, do one of the following:
Add elements to the page to create your business’s customized design and functionality, such as text, buttons, and images.
At a minimum, these elements must:
getAppPageData()
function to get the plans object associated with the page, and the getPricingPageOptions()
function to get the options set for the current Plans & Pricing page.For example:
Depending on the functionality you’re developing, implement any business logic that your customized page requires. For example, define all the items in the repeater, such as text and buttons.
Add an event handler to the page’s action button so that it navigates to the next page in the flow, which is typically your site’s Checkout. Use the navigateToCheckout()
function and pass the checkout options together with the ID of the plan to buy. The repeater displays plans on the page.
For example:
Your custom page can now display the pricing plan’s data and direct site visitors to the next page in the flow.
To receive a populated page data object using wixWindowFrontend.getAppPageData()
when testing your code, do the following: