Viewing 15 replies - 1 through 15 (of 17 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Need to be inside PHP tags for that snippet.

    echo '<a href="' . get_permalink( woocommerce_get_page_id( 'myaccount' ) ) . '?action=register"> register </a>';

    woocommerce_get_page_id is deprecated, and there is a better function to use anyways. Try this instead:

    echo '<a href="' . wc_get_page_permalink( 'myaccount' ) . '?action=register"> register </a>';
    Thread Starter sammzand

    (@sammzand)

    Thanks for the reply i did it.

    I did it within php tags and the link got visible.But,when I landed again in my form-register.php in my account page to get a single registration form it says

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2560 bytes) in ..public_html/wp-content/plugins/woocommerce/templates/myaccount/form-register.php on line 62

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter sammzand

    (@sammzand)

    I did all.But still same results.

    1.I added in wp-config.php

    define(‘WP_MEMORY_LIMIT’, ‘256M’);

    2. I created a php.ini in wp-admin and added

    memory_limit = 256M ;

    Now it shows this

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1920 bytes) in ..public_html/wp-content/plugins/woocommerce/templates/myaccount/form-register.php on line 48

    Jesse Pearson (a11n)

    (@jessepearson)

    Automattic Happiness Engineer

    Did you add the snippets to template overrides in your theme, or did you add them into the templates in WooCommerce itself? The templates should be overridden as outlined here:

    https://docs.woocommerce.com/document/template-structure/

    The memory issue appears to be something that is happening due to the customizations you are adding. If the issue still exists in your custom theme, and you are not able to resolve the issue, you may need to contact a developer for assistance.

    Hello
    since few days i can not add any new products in my shop, because i cant write the text. Also the short description is not possible.
    Please help.
    If i go to a product i added before ia also cant see the text i wrote anymore but in the shop the text is still present.
    Thank you for any help Manuela

    Thread Starter sammzand

    (@sammzand)

    I have created form-register.php in the same folder where you have form-login.php in templates/my account

    I have followed the main article properly.

    I need some help from woocommerce guys!

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Hi maguco, your issue is very unrelated to this topic. Please open up your own support thread per the forum rules rather than hijacking this one.

    @sammzand,

    I have created form-register.php in the same folder where you have form-login.php in templates/my account

    Inside the WooCommerce folder or inside your theme? You shouldn’t be adding it to the plugin directly. Please see the link Jesse posted above.

    I have followed the main article properly. I need some help from woocommerce guys!

    This forum is for technical support with the WooCommerce core plugin, and I can’t help everybody with customizations and custom code. If you need help with a customization, you may need to hire a developer:

    http://jobs.wordpress.net/
    https://codeable.io/
    https://woocommerce.com/experts/?project-scope%5B0%5D=1819

    Thread Starter sammzand

    (@sammzand)

    It seems the main article from where I got this solution is incorrect.

    @jesse,@Caleb

    So,what is the solution of making a single registration page in woocommerce?

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    This forum is for technical support with the WooCommerce core plugin, and I can’t help everybody with customizations and custom code. If you need help with a customization, you may need to hire a developer:

    http://jobs.wordpress.net/
    https://codeable.io/
    https://woocommerce.com/experts/?project-scope%5B0%5D=1819

    Thread Starter sammzand

    (@sammzand)

    I have already 22 plugins running in my store..I contacted a developer but he wants to add one plugin to do this simple task.I don’t want to crash my site with excess plugins.

    Kindly provide a simple solution.

    Presenty,I have form-register.php in woocommerce/templates/my account folder.

    I have asked my host to increase server memory limit and it is done upto 256M.But,still no luck.

    I think it is creating infinite loop and exhausting unnecessary memory.

    Thread Starter sammzand

    (@sammzand)

    @mike

    Can you put some light?

    Thread Starter sammzand

    (@sammzand)

    Any help?

    Thread Starter sammzand

    (@sammzand)

    Is there no solution for this issue?

    Dears,

    I applied the method described here. I have a separate form-register.php file in my child theme. However, when I click on the register link I created as described above; I get a blank page (with my header).

    I also added the following code to my child theme functions.php

    /*// Separete Login form and registration form */
    add_action(‘woocommerce_before_customer_login_form’,’load_registration_form’, 2);
    function load_registration_form(){
    if(isset($_GET[‘action’])==’register’){
    woocommerce_get_template( ‘myaccount/form-registration.php’ );
    }
    }

    Did I miss anyting? Can you help me please? I’m starting with wordpress and php!

    Thank you,
    Younes M.

    • This reply was modified 7 years, 2 months ago by ymeknassi.
Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘separate login registration page’ is closed to new replies.