- Posts: 19
- Thank you received: 0
General Question in respect of the amount of subscriptions
- Sven Kutz
- Topic Author
- Offline
- New Member
Less
More
2 years 7 months ago #146207
by Sven Kutz
General Question in respect of the amount of subscriptions was created 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
2 years 7 months ago #146208
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic General Question in respect of the amount of subscriptions
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
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
Less
More
- Posts: 19
- Thank you received: 0
2 years 7 months ago #146216
by Sven Kutz
Replied by Sven Kutz on topic General Question in respect of the amount of subscriptions
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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
2 years 7 months ago #146232
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic General Question in respect of the amount of subscriptions
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
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
Less
More
- Posts: 19
- Thank you received: 0
2 years 6 months ago #146728
by Sven Kutz
Replied by Sven Kutz on topic General Question in respect of the amount of subscriptions
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
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.
- Ahmad Arshad
- Offline
- Premium Member
Less
More
- Posts: 81
- Thank you received: 0
2 years 6 months ago #146730
by Ahmad Arshad
Replied by Ahmad Arshad on topic General Question in respect of the amount of subscriptions
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
/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.
- Ahmad Arshad
- Offline
- Premium Member
Less
More
- Posts: 81
- Thank you received: 0
2 years 6 months ago #146731
by Ahmad Arshad
Replied by Ahmad Arshad on topic General Question in respect of the amount of subscriptions
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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
2 years 6 months ago #146740
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic General Question in respect of the amount of subscriptions
Hello Ahmad
No, it only counted for that category only, not including children events
Regards,
Tuan
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
Less
More
- Posts: 19
- Thank you received: 0
2 years 6 months ago #146754
by Sven Kutz
Replied by Sven Kutz on topic General Question in respect of the amount of subscriptions
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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
2 years 6 months ago #146761
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic General Question in respect of the amount of subscriptions
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
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.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.