s2Member® provides limited built-in support for prorated payments. Additional scenarios can be implemented with custom code, but KC s2M Pro-rates provides a safer and easier alternative without site-specific programming.
The plugin supports five calculation modes for prorated upgrades and membership-period extensions, and the modes can be used in different combinations. It works with the free and Pro modification shortcodes generated by the s2Member® payment-button or Pro-Form tools. After you enter your payment plan, the plugin generates its own shortcodes, which replace the standard modification shortcodes on your pages.
Description
The plugin uses s2Member® Modify shortcodes as templates for generating custom shortcodes. Use the generated KC s2M Pro-rates shortcodes instead of the original s2Member® modification shortcodes. Each of the five modes calculates the required payment in a different way.
- By sum: A member pays $35 for one year at Level 1. Six months later, the member upgrades to Level 2, which costs $60. The additional charge is $25. If the same member upgrades from Level 1 to Level 3 at $600, the additional charge is $565.
- By time, without compensation: A member pays $29 per 30-day month for Level 1 and upgrades to Level 2, priced at $49 per month, on day 20. The member is charged $16.30 for the remaining 10 days ($49 / 30 = $1.63 per day; $1.63 x 10 = $16.30). After those 10 days, the next monthly charge is $49.
- By time, with compensation: A member pays $29 per 30-day month for Level 1 and upgrades to Level 2, priced at $49 per month, on day 20. The used portion of the old plan is $19.40 ($29 / 30 = $0.97 per day; $0.97 x 20 = $19.40). The upgrade charge is $39.40: $19.40 for the used portion, plus $49 for a new month starting immediately, minus the previously paid $29. One month later, the next charge is $49.
- Extend and pay later - available only for One Time, with Trial memberships: The current membership period is extended, and the member is charged when the new period begins. For example, a Level 1 member paying $29 per 30-day month extends the membership on day 20. The $29 charge is made after the already-paid period ends.
- Extend and pay now - available only for One Time, No Trial memberships: The current membership period is extended and prepaid. For example, a Level 1 member paying $29 per 30-day month extends the membership on day 20. The member is charged $29 immediately, and the End of Term date is moved one month beyond the end of the already-paid period.
The two extension modes let existing members renew before the current access period ends. Depending on the selected mode, payment is collected either immediately or when the new period begins.
Installation
Install the plugin from its ZIP file in the usual way: open Add New Plugin, upload the ZIP file, and activate it.
The plugin may initially appear as active without being fully operational. A notice at the top of the WordPress admin area will ask you to enter the account details used on my site so that the plugin can validate the license and check for updates. Follow the remaining admin prompts while the required background tasks are completed.
The plugin has no independent front-end output. After activation, confirm that it generates the expected replacement shortcodes. If a requirement is missing, the plugin displays a message explaining what still needs to be completed.
Configuration
Enter your payment plan in the table on the plugin's admin page. Then create the required s2Member® Modification shortcodes. Read the description and examples for each calculation mode carefully. Save each original s2Member® shortcode in the plugin, select its prorating type, and save the settings.
Multi-option s2Member® payment shortcodes require additional preparation:
- Create every payment option as a separate shortcode.
- Combine the options in an s2Member® multi-option shortcode.
- Move attributes that are identical in every option to the main shortcode.
- Keep the following attributes inside every individual option: modify, ra, rr, ta, tp, tt, and ccaps. KC s2M Pro-rates needs these values for its calculations.
- In the plugin settings, paste each original option shortcode into the text field and select Shortcode Text in the Type column.
- Replace the original options in the multi-option s2Member® shortcode with the generated KC s2M Pro-rates shortcodes.
Usage
Use the generated shortcodes instead of the original s2Member® modification shortcodes. You can place them inside s2If shortcodes when necessary. All normal s2Member® shortcode rules still apply.
FAQ
Have a question? Contact me and I will be happy to help.
Screenshots
Admin area
License and download
This product is sold with a Perpetual License and 12 Months of Support. You purchase a license according to the number of allowed domains, not the number of installations. One domain may contain several sites.
The license includes 12 months of updates, bug fixes, training, installation assistance, and usage support. After that period, the plugin will normally continue to work unless major changes to WordPress® or s2Member® require an update. You also receive a lifetime discount on my other products and special pricing for future features or related custom work.
Please read the full explanation of the license.