Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Recurring subscription pricing display after coupon test

  • sarrene
  • Topic Author
  • Online
  • Junior Member
  • Junior Member
More
1 day 6 hours ago #179439 by sarrene
Good evening Tuan,I am troubleshooting the pricing display for a recurring Membership Pro plan and wanted to check the intended behavior before making further overrides. My main test plan includes the purchase priced plus the subscription fee.I want to give the first month of subscription free, so I created a coupon to apply to the check out process. Once we can fix the display issue for processing the subscription, then we can begin with the coupon and see if that causes any other issues or not. Before testing a coupon, my custom subscription form correctly displayed: (This is what i need to see displayed without the coupon)
  • Purchase Price: $35.00
  • Subscription Cost: $10.00 / month
  • Due Today: $45.00
After testing a coupon on this recurring plan, the custom recurring pricing display began returning $0.00 for the subscription amount and total due.
  • Purchase Price: $35.00
  • Subscription Cost: $0.00 / month
  • Due Today: $0.00
I have since: (my short list does not include all a/b testing) 
  • Removed the coupon from the plan.
  • Disabled coupon functionality in Membership Pro.
  • Deleted the coupon entirely.
  • Restored the database from a backup taken before the coupon test.
  • Restored the Membership Pro configuration table separately as an additional check.
  • Verified the plan price, setup price, recurring flag, and subscription length are still correct.
  • Tested multiple recurring plans to confirm the issue is not isolated to the Personal plan.
  • Tested with recurring disabled, which restores the expected pricing display.
  • Tested with recurring enabled, which reproduces the
    Code:
    0.00
    recurring amount / total issue.
  • Tested the default Joomla template, my default theme template, and the CoCast child template.
  • Tested the native Membership Pro layout as well as the custom override.
  • Tested different payment gateway enable/disable combinations.
  • Reverted the Payment Terms label change from Recurring back to Monthly to confirm that visual override was not responsible.
  • Restored the pre-coupon Sunday file set.
  • Confirmed the default Membership Pro recurring layout still calculates the underlying recurring amounts correctly.
he default Membership Pro recurring layout does display the first-period amount and the ongoing recurring amount separately, so the recurring pricing values appear to be available. However, it does not display a total amount due before the user clicks Process Subscription.

I attempted to add that total to default_payment_information.php, similar to how the total is displayed for non-recurring subscriptions, but with the recurring plan it returns 0.00 Due Today.

I also tested the recurring subscription example on the Membership Pro demo site and saw the same default behavior there: the first-period and recurring amounts are shown separately, but there is no clear total due before processing.

I had also changed the Payment Terms label in my custom override from Monthly to Recurring for clarity. To rule that out, I reverted that visual override back to the previous Monthly display and retested. The pricing problem remained unchanged, so the label/display change does not appear to be related.

I also confirmed that Display Recurring Payment Amounts is enabled.

My current question is: What is the recommended value/field to use for the actual amount due at signup for a recurring plan?I can see that the recurring calculation uses separate values such as:
    trial_amount
    trial_gross_amount
    regular_amount
    regular_gross_amount
Thank you and best regards,
Sarr

Please Log in or Create an account to join the conversation.

More
19 hours 27 minutes ago #179443 by Tuan Pham Ngoc
Hi Sarr

Without seeing the plan setup details, it's hard for me to know what's wrong. However, if you want to give all users free for first month, I think you should not use coupon. Just setup trial duration and trial amount should work better

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc