Our Add On packages extension allows you to sell access to individual pages or posts, or sell a la carte items for a flat fee.
This recipe will allow you to set a specific checkout level to use when a non-member selects to purchase one of your Add Ons. Previously, the plugin simply included logic to select the “first least expensive membership” level assigned to the post.
Code Recipe #1: Choose Most Expensive Level
Instead of defaulting to the least expensive, this recipe will select the highest price level assigned to the post.
Copy and paste the selected code recipe into a helper PMPro Customizations plugin.
Code Recipe #2: Choose a Specific Level
This recipe allows you to set a specific level ID for use with the Addon package purchase. The code will check first that the specific level ID is an allowed ID for that Addon package.
Copy and paste the selected code recipe into a helper PMPro Customizations plugin. Note that the ID of your desired level must be updated in two places in this recipe.
Free Course: Membership Site Development—The Basics
Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.