By Andrew Neighbour on Tuesday, 10 April 2018
Posted in General Issues
Likes 0
Views 794
Votes 0
When a user chooses to subscribe, they select a plan and are directed to a page with the plan details, and on the right, a login section and below that the registration section where they input their selected username and password.

Our potential subscribers will not have previously subscribed, so they do not have user credentials. Thus the login section on this page is redundant and confusing to the new subscriber.

Can the page be edited to remove that login section?

Thanks,
Andrew
Hello Andrew,

Yes, you can remove login option from Payplans login/register plan page.

Go to root/components/com_payplans/templates/default/plan/default_login.php, here find below mentioned code near line no. 21

<div class="pp-login">
<form action="<?php echo $uri; ?>" method="post" name="site<?php echo $this->getName(); ?>Form">
<fieldset class="form-vertical">
<legend><h4><?php echo XiText::_('COM_PAYPLANS_LOGIN_HEADING'); ?></h4></legend>
<div class="control-group">
<div class="control-label"><?php echo XiText::_('COM_PAYPLANS_LOGIN_USERNAME');?></div>
<div class="controls"><input type="text" size="20" name="payplansLoginUsername" class="placeholder required"/>
</div>
</div>

<div class="control-group">
<div class="control-label"><?php echo XiText::_('COM_PAYPLANS_LOGIN_PASSWORD');?></div>
<div class="controls"><input type="password" size="20" name="payplansLoginPassword" class="placeholder required"/></div>
</div>

<div class="control-group">
<div class="controls offset8">
<button type="submit" class="btn" id="payplansLoginSubmit" name="payplansLoginSubmit" value="1"><i class="icon-user"></i><?php echo XiText::_('COM_PAYPLANS_LOGIN_BUTTON'); ?></button>
</div>
</div>

<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="task" value="login"/>
<input type="hidden" name="plan_id" id="payplans_subscription_plan" value="<?php echo $plan->getId();?>" />
</fieldset>
</form>
</div>


Remove this code from here.

Update me if still you have any issue.
·
Tuesday, 10 April 2018 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Manish - yes that helped, but it looks like a class statement in the removed login code must have determined column spacing. Now the registration block is up against the plan description block (see screenshot) - any way to correct that?

And, will this need to be re-edited with any future updates of PayPlans?

Many thanks,
Andrew
·
Tuesday, 10 April 2018 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
OOPS - now it is not possible to login on the front end. Under Members Only there is a login option that uses the EasyBlog "System Login" menu type.

This no longer works!!!

Help!!

Thanks,
Andrew
·
Tuesday, 10 April 2018 23:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Follow up - on further testing, it does allow for the user to be logged in, but EasyBlog menu items under the Members Only menu item do not recognize that the user is logged in, i.e. EB items with Registered access do not appear. So removing the code has done more than just remove the form from that registration page...

Andrew
·
Tuesday, 10 April 2018 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

The alignment issue is coming because you have removed one extra div. see attached screen shot.
I have fixed this issue at your site , please check this.

# And, will this need to be re-edited with any future updates of PayPlans?
Always take backup of your changes before upgrading.

Regarding this : https://stackideas.com/forums/payplans-registration-page#reply-406535
About login issue you mentioned in last post, it's related to below mentioned forum then it seems this is resolved.
https://stackideas.com/forums/login-issue-3

So removing the code has done more than just remove the form from that registration page...
Removing login section from plan login/registration page only remove login section, no other things will get affected by this..

Correct me if i misunderstood this issue, explain in details, so i'll be able to check this..
Update me.
·
Wednesday, 11 April 2018 01:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Manisha

Everything is working great now. The login problem is resolved. I'm guessing that the error I was trying to articulate was a caching problem, as it seems to be fine now.
Thanks for your help!
Andrew
·
Wednesday, 11 April 2018 04:47
·
0 Likes
·
0 Votes
·
0 Comments
·
It sounds good that your issue is resolved now.
·
Wednesday, 11 April 2018 10:39
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post