I have two Memberships set up, a Monthly and a Yearly. I have set the Modification Settings to allow users to modify their membership to change it from a Monthly to a Yearly or a Yearly to a Monthly. I'm using the CRE Secure payment gateway.
I have users who are set to a Monthly Membership who want to upgrade to a Yearly Membership. They log into their account and this is what it looks like:
Membership tab:
Monthly Membership Active - Recurring Sun, 02/19/2012 - 11:00 - $9.00 None Cancel Membership | Change Membership
Order history tab:
101 Sat, 09/17/2011 - 15:15 Monthly Membership Active $$$$$ View Details
So then they go to the Membership tab and click "Change Membership." On the "Change Membership" page they choose the "Yearly Membership" level and click "Submit." Then they receive an "Are you sure you want to change your order to Yearly Membership?" and they click "Confirm." At the conclusion, they are redirected back to the home page.
In the log reports, I see that the payment was successfully processed by ms_cres and ms_core! However, ms_memberships was unable to modify the membership. The following error is given:
- Unable to load the membership plan to modify. Product:
- MsProduct Object
- (
- [order_product_id] => 2518
- [oid] => 101
- [type] => recurring
- [name] => Yearly Membership
- [module] => ms_membership
- [qty] => 1
- [amount] => 99.00000
- [id] => 3
- (
- (
- [ms_core_payment_reminder_days] => 7
- )
- )
- (
- [total_occurrences] => 0
- [main_amount] => 99.00
- [main_length] => 1
- [main_unit] => Y
- [has_trial] =>
- [trial_amount] => 0.00
- [trial_length] => 0
- [trial_unit] => D
- )
- )
- Logged at /home/www/drupal/sites/all/modules/ms_membership/ms_membership.module line 3223
They visit their Account pages and this is what it looks like now:
Membership tab:
Monthly Membership Active - Recurring Thu, 01/24/2013 - 12:14 - $99.00 None Cancel Membership | Change Membership
Order history tab:
101 Sat, 09/17/2011 - 15:15 Yearly Membership Active $$$$$ View Details
So everything worked correctly on the financial side, but the Membership on the Membership tab was not successfully changed from "Monthly Membership" to "Yearly Membership".








Hey Leighton!
The inability for ms_memberships to change a membership plan as described above is probably related to this piece of code in ms_memberships.module:
Somehow "modify_mid" isn't getting properly set...