Home Forums Academy Instructions on how to make your Register page and My Profile Pages better!

Instructions on how to make your Register page and My Profile Pages better!

  • Fitspo

    Hey everyone,

    I have been making a few customizations to the Academy theme and wanted to share those with you. One is to include the Facebook login with the “Register” form instead of with just the “Sign In” form on the “Registration” page.
    The other is to include the WooCommerce “My Account” and “Change Password” capabilities into the “My Profile” page to give the user a more robust profile/dashboard.

    1. Facebook Login:

    Include the Following code onto line 42 of the file named:
    wp-content/themes/academy/template-register.php

    <?php if(ThemexFacebook::isActive()) { ?>
    		<a href="<?php echo home_url('?facebook_login=1'); ?>" title="<?php _e('Sign in with Facebook','academy'); ?>" class="button facebook-button left">
    			<span class="button-icon facebook"></span>
    		</a>
    		<?php } ?>

    This code is safe to use and is tested…its actually just the code for the regular Facebook Login copy/pasted to the bottom of the “Register Form”.

    2. Making the “My Profile” page an actual dashboard where users can not only update their profile but change password and check their order history.

    Add this code to line 91 of the file named:
    /wp-content/themes/academy/template-profile.php

    <a href="/my-account" class="button small primary">My Account</a>
    	<a href="/change-password" class="button small primary">Change Password</a>

    Note: This should only be done if you are using WooCommerce. WooCommerce automaticcally creates these pages. If you are not using WooCommerce this will just create two buttons that lead nowhere…

    Hope this helps someone out there!

    ihor Staff

    Please sign in or register to view replies from the support staff.

    quanto

    Hi Fitspo,

    Can I have a look at your website to see the implemented changes? Thanks!

    Fitspo

    Sure!

    You can see the Facebook Login at http://fitspoacademy.com/register/

    In order to see the buttons on the “My Profile” page, you will have to register and then take a look at that page.

    let me know what you think!

    KrishnaPG

    Perhaps this should be pinned and not lost. Useful for all.

    I have one question though: how do you tackle the problem of “view order” having a link to “product” page and not the actual “course page” in the orders?

    The problem is: product page has “add to cart” button (even though user already purchased that particular course), where as the actual “course page” will have “unsubscribe” button. The workflow of “add to cart” from the product page is different, than the regular “course checkout”

    ihor Staff

    Please sign in or register to view replies from the support staff.

    rahy

    @fitspo,

    Does your button still work with the WooCommerce 2.1?
    The new WC doesn’t have the change-password template anymore.

    I tried to use the endpoint (/myaccount/edit-account) to get the change name and password page. The problem is when saving, the refresh goes to /myaccount/ (of WC) page instead of /profile/user (of Academy) page.

    Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.