How to Customize the Subscription Status List?

More
12 years 6 months ago #25858 by Rob
I know this can be done, because I did it once before. But it was several months ago and I can't remember how I did it!

There are two things I want to do:

1. "Expired is misspelled and I want to correct it
2. I want to add "Inactive" as an option

I thought that all I had to do was update the en-GB.com_osmembership.ini language file, but that didn't do it. I vaguely remember editing a file that didn't seem directly related to the membership status, but that's all I remember.

Any help would be greatly appreciated!

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

More
12 years 6 months ago #25880 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to Customize the Subscription Status List?
Hi Rob

1. To add new status , you will need to edit the code in the two files below :

- administrator/components/com_osmembership/views/subscribers/view.html.php
- administrator/components/com_osmembership/views/subscriber/view.html.php

Look at the code, you will see the code for status options as follow:
Code:
$options[] = JHTML::_('select.option', -1, JText::_('OSM_ALL')); $options[] = JHTML::_('select.option', 0, JText::_('OSM_PENDING')); $options[] = JHTML::_('select.option', 1, JText::_('OSM_ACTIVE')); $options[] = JHTML::_('select.option', 2, JText::_('OSM_EXPIRED')); $options[] = JHTML::_('select.option', 3, JText::_('OSM_CANCELLED_PENDING')); $options[] = JHTML::_('select.option', 4, JText::_('OSM_CANCELLED_REFUNDED'));

Just add the new status into the $options array


2. To correct the text expired, you can edit it in the two language files below:

language/en-GB/en-GB.com_osmembership.ini
administrator/language/en-GB/en-GB.com_osmembership.ini

Hope this help.

PS: I just released version 1.5.4 of the extension. Maybe you should upgrade to that latest version before doing the modification.

Tuan

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

More
12 years 6 months ago - 12 years 6 months ago #25936 by Rob
Hi Tuan,

That worked great, thanks! But I'm still having a small problem. I have attached all four edited files so you can see how I changed them. The problem is that the status I added is "Inactive", but if I select it for a subscriber and then look at the subscriber list, the status shows as "Cancelled-Refund Pending". Which is the next item on the list after "Inactive" - as if Inactive is being skipped.

Did I do something wrong in the files?

Thanks!







Last edit: 12 years 6 months ago by Rob. Reason: Forgot attachments!

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

More
12 years 6 months ago #26723 by Rohan
Hi,

recently purchased this extension and have to say it is one of the best ones.

Could you confirm if the payment for a subscription is automatically refunded when i updated the status? Or do i have to refund the money to my subscribers from somewhere else?

Thanks,
Rohan

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

More
12 years 6 months ago #26987 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to Customize the Subscription Status List?

Rohan wrote: Hi,

recently purchased this extension and have to say it is one of the best ones.

Could you confirm if the payment for a subscription is automatically refunded when i updated the status? Or do i have to refund the money to my subscribers from somewhere else?

Thanks,
Rohan


Hi Rohan

Unfortunately, it is not possible to process the refund automatically. You will have to refund the money manually to your subscriber !

Tuan

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

More
12 years 6 months ago #27001 by Rob
Hey Tuan,

Have you been able to take a look at these files? I'd really like to figure out what's wrong with the customized status list?

Thanks!

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

More
12 years 6 months ago #27024 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to Customize the Subscription Status List?
Hi Rob

I am sorry. I am too busy these days and could not look at your code. It seems you forgot to edit code in another file administrator/components/com_osembership/views/subscribers/tmpl/default.php. Please look at that file and you should be able to edit the code to make it works properly.

Tuan

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

  • Graham S. Jarvis
  • Offline
  • Premium Member
  • Premium Member
More
4 years 5 months ago - 4 years 5 months ago #142387 by Graham S. Jarvis
Replied by Graham S. Jarvis on topic How to Customize the Subscription Status List? (Bumped)
Hello Tuan,

I'd like to "bump" this topic - to see if there has been any changes since 8 years 3 weeks ago !!! that make changing the Subscription Status List easier to customise?
Adding "cancelled - no refund required" would be useful.
Thanks,
-Graham-

PS: There are Views:870 - so someone must be interested in this ;)
 
Last edit: 4 years 5 months ago by Graham S. Jarvis.

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