Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Greater flexibility in setting Regular Validity duration for CBSubs plans

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
11 years 4 months ago #228620 by boyjahq
Are there any plans to give us the ability to completely customize the Regular Validity duration for CBSubs plans? For example, instead of the limited items in the current drop down menu, will we ever have the ability to type in a number and select the units (hours/days/weeks/months/years) to determine the duration? So we could have subscriptions that last for 13 months or 15 months or 54 weeks for example?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228635 by krileon
I don't know the future plans of the duration dropdown, but you can already add custom durations but you need to edit an XML file to do it. Below is the file you'll need to edit.

/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/xml/edit.plugin.xml

Next adjust relative_time and validity_base as needed. Use existing values as examples. I've no idea if this will work exactly, but it's worth a try as that's where the duration dropdown pulls its values from.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum