General Question in respect of the amount of subscriptions

  • Sven Kutz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #146207 by Sven Kutz
Hi there,

Is it possible to make sure that a user with a specific email address who already have bought a subscription is unable to subscribe any other plan as long the already bought subscription has not expired yet?

Thanks

Sven
 

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

More
2 years 7 months ago #146208 by Tuan Pham Ngoc
Hi Sven

That will only be applied to that special user? Or to all users? Why we need to check again email address, not his Joomla User ID ?

Tuan

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

  • Sven Kutz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #146216 by Sven Kutz
Hi Tuan,

My question refers to all users, not only a special user. No user should be able to buy 2 subscriptions.

So actually yes, a check of email address is required:

e. G.

if user with email address x does already have a subscription plan, then do not alllow to sign for another plan unless the already existing plan has been expired.

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

More
2 years 7 months ago #146232 by Tuan Pham Ngoc
Hello Sven

Maybe you can try this setup:

1. Create a category. In the category setting, set Exclusive Plans to Yes

2. Put all your plans inside that category

Then try again. It should work for your need

Regards,

Tuan

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

  • Sven Kutz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #146728 by Sven Kutz
Hi Tuan,

Hope I can come back to this one again.

Is there any option to hide email field or to make it readonly.

The email field is prepopulating the email address of the logged in user which is correct, but the user is able to change email address. I would like to avoid this one.

Thanks

Sven

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

More
2 years 6 months ago #146730 by Ahmad Arshad
Sven, I struggled with this as well. The way I solved this was by editing the following file

/components/com_users/forms/profile.xml

and adding readonly = "true" attribute to it

<field
name="email1"
type="email"
label="COM_USERS_PROFILE_EMAIL1_LABEL"
filter="string"
required="true"
size="30"
unique="true"
validate="email"
validDomains="com_users.domains"
autocomplete="email"
readonly="true"
/>

Unfortunately what this means is that you have to edit the file every time Joomla updates its version. I have not been able to override this file otherwise. Would love to hear what Tuan suggests

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

More
2 years 6 months ago #146731 by Ahmad Arshad
Tuan,

Does this apply to subcategories as well... So for example, if i have an exclusive category A, do categories B, C, D which are children to it, also be exclusive?

Thanks

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

More
2 years 6 months ago #146740 by Tuan Pham Ngoc
Hello Ahmad

No, it only counted for that category only, not including children events

Regards,

Tuan

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

  • Sven Kutz
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago #146754 by Sven Kutz
Hi Tuan,

I assume you haven't realised my previous question before Ahmad's question.

Can you please have a look to this?

@ Ahmad, thanks for your reply, but this solution doesn't meet my needs, as I need a solutions which does still work after Joomla updates.

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

More
2 years 6 months ago #146761 by Tuan Pham Ngoc
Hi Sven

For your question, try to edit the email field, set Show On Subscription Form parameter to No and it should be hidden on the form

Regards,

Tuan

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