- Posts: 195
- Thank you received: 26
New customer only Membership Plan
- Chris Jarvis
- Topic Author
- Offline
- Elite Member
-
Less
More
8 years 3 weeks ago #96820
by Chris Jarvis
New customer only Membership Plan was created by Chris Jarvis
Is there a way to hide the Existing User Login part of ONLY 1 subscription plan please?
We are attending a conference where we want to offer a 3 free month membership trial to ONLY NEW users.
We have set up the plan but on the registration form we can see the Existing User Login Here part and don't want that on this occasion. We want it on all the other plans that we offer though
I notice there is this choice in the overall Configuration of Membership Pro but wanted to only hide it from 1 membership type.
If this can happen we are all set as I notice if I type an existing email address in the registration form it tells me I already exist.
I have already set this free trial membership to not let it renew and this blocks that part great.
any help would be really appreciated thanks
We are attending a conference where we want to offer a 3 free month membership trial to ONLY NEW users.
We have set up the plan but on the registration form we can see the Existing User Login Here part and don't want that on this occasion. We want it on all the other plans that we offer though
I notice there is this choice in the overall Configuration of Membership Pro but wanted to only hide it from 1 membership type.
If this can happen we are all set as I notice if I type an existing email address in the registration form it tells me I already exist.
I have already set this free trial membership to not let it renew and this blocks that part great.
any help would be really appreciated thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 3 weeks ago #96838
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic New customer only Membership Plan
For that, you will have to customize the code, Membership Pro doesn't have a setting allow you to hide that part for one plan only
The file need to be modified would be components/com_osmembership/view/register/tmpl/default_login.php
Someone with PHP programming can help with this modification
Regards,
Tuan
The file need to be modified would be components/com_osmembership/view/register/tmpl/default_login.php
Someone with PHP programming can help with this modification
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
8 years 3 weeks ago #96840
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic New customer only Membership Plan
I haven't tried but I think change the code in line 20 to the below code would work:
Of course 100 need to be replaced with the plan you want to hide that part
Regards,
Tuan
Code:
if (!$this->userId && $this->config->show_login_box_on_subscribe_page && $this->plan_id != 100)
Of course 100 need to be replaced with the plan you want to hide that part
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Chris Jarvis
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 195
- Thank you received: 26
7 years 11 months ago #98350
by Chris Jarvis
Replied by Chris Jarvis on topic New customer only Membership Plan
Hi Tuan
Thanks for the advice on this but it doesn't seem to have any effect. I added the extra code to the line 20 you directed me to but both Login options remain. Our plan is number 8 in this case but it had no effect at all.
It still showed Existing User Login option for this plan.
Is the plan_id part the table column name as I could only see an id field for our plans, not plan_id?
I did try changing it to id != 8 but it didn't do anything either.
Thanks
Chris
Thanks for the advice on this but it doesn't seem to have any effect. I added the extra code to the line 20 you directed me to but both Login options remain. Our plan is number 8 in this case but it had no effect at all.
It still showed Existing User Login option for this plan.
Is the plan_id part the table column name as I could only see an id field for our plans, not plan_id?
I did try changing it to id != 8 but it didn't do anything either.
Thanks
Chris
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 11 months ago #98399
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic New customer only Membership Plan
Hello Chris
The code should be $this->plan->id, not $this->plan_id as I wrote. It was a typo. So please try again
Tuan
The code should be $this->plan->id, not $this->plan_id as I wrote. It was a typo. So please try again
Tuan
Please Log in or Create an account to join the conversation.
- Chris Jarvis
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 195
- Thank you received: 26
7 years 11 months ago #98410
by Chris Jarvis
Replied by Chris Jarvis on topic New customer only Membership Plan
That's got it working perfectly thanks Tuan
It looks exactly as we wanted it to now and the timing couldn't have been better as our conference starts in the morning.
So happy and as always - thanks for the great support
Chris
It looks exactly as we wanted it to now and the timing couldn't have been better as our conference starts in the morning.
So happy and as always - thanks for the great support
Chris
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 11 months ago #98436
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic New customer only Membership Plan
OK Chris. Thanks for the update
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 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.