• Resolved ahrayah144

    (@ahrayah144)


    Hi,

    My site uses BBPress and WooCommerce. The plugin works as it should if you actually go to the /forums/users/ID/edit page. And yes they do show up on the BBPress topics as expected such as “Location” field.

    However for some reason the “custom fields” i created will not show on /my-account/?form=registration (The detault woocommerce registration page)

    I’ve made all front end links to /wp-login.php/ go via the woocommerce system instead.

    Is there a functions.php code i can use to get the plugin to show the custom fields upon user registration on the woocommerce side?

    I can’t use the wp-login.php due to the fact that using WooCommerce allows me to capture customer billing info etc. Unless i am missing something

    I also use LiteSpeed cache on a shared server as advised by my own server host. Does a better job than W3TC but i don’t know if that’s of any relevance. Purgin caches does nothing to show these fields no matter the times i logging and log out.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Robin W

    (@robin-w)

    Let me take a look, and I’ll come back soon

    • This reply was modified 2 months ago by Robin W.
    Plugin Author Robin W

    (@robin-w)

    ok, so woocommerce has its own registration system, and without considerable work, I cannot be sure whether this will work, but try

    add_action( 'woocommerce_register_form' , 'bbp_profile_information_registration') ;
        Put this in your child theme's function file - 
    
        ie wp-content/themes/%your-theme-name%/functions.php 
    
        where %your-theme-name% is the name of your theme
    
            or use
            https://en-gb.www.ads-software.com/plugins/code-snippets/

    If that works, great, let me know

    If it doesn’t – again let me know and if I get a chance I’ll take a quick look, but suspect i may not be able to help

    Thread Starter ahrayah144

    (@ahrayah144)

    Hey,
    Thanks for replying and I appreciate your brains on this ? – Half of my BBpress plugins come from you especially the StylePack , absolute swiss knife!

    Hmmm your code snippet did nothing sadly.

    Though , i noticed a new bug ….

    If you have WooCommerce installed , then it means
    WP-Login.php?Registration = Will not show the fields
    /Account/?Registration = Will not snow the fields

    So it seems the WP Registration system is handled by Woocommerce (except again, the WP registration form does not let me capture customer billing data, hence forth its not really my concern and any wp-login.php calls get forwarded to /Account/ anyway so WooCommerce handles any registrations or logins directly

    I’ve not understood how woocommerce registration is any different from WordPress, but i can “hook” custom messages to woocommerce registration page like:

    php add action woocommerce_register_form_end , customname1
    - customname1 'echo some html text' , do something else
    End action etc..


    Some snippet i copied online to allow me to output custom text at the end of the registration form of woocommerce

    Hope this helps!

    Plugin Author Robin W

    (@robin-w)

    ok, I don’t use woocommerce, so I have no knowledge of it.

    I’ve just added it to my test site – how/where do I set up a registration page?

    Thread Starter ahrayah144

    (@ahrayah144)

    Hi Robin.

    In wordpress allow wordpress built registration as usual first. (should be in settings-general or “reading/discussion”

    Step 2… If you head here:
    wp-admin/admin.php?page=wc-settings&tab=account

    And follow this image.


    Thread Starter ahrayah144

    (@ahrayah144)

    Forgot to say that if Woocommerce was installed with default-end points , then access the public URL via

    example.com/my-account/ (which shows both login & registration forms)

    Or

    example.com/my-account/?form=registration (just the registration form shows)

    Regards

    Plugin Author Robin W

    (@robin-w)

    ok, I’ve been playing with this off and on since last post, and I’ve worked out how to do it.

    But I’ll need to do some fresh code and integrate it into the plugin – give me a day or 2 to do this

    Thread Starter ahrayah144

    (@ahrayah144)

    Thanks Robin, looking forward to it!

    Regards ??

    Plugin Author Robin W

    (@robin-w)

    ok, try version 2.1.5 just released.

    in the settings page you should see options for adding the fields to your woocommerce registration

    Please give me feedback

    Thread Starter ahrayah144

    (@ahrayah144)

    IT WORKED!! ?????

    WOW!

    THANK YOU FOR THIS ??

    I will mark this as resolved , but knowing Woocommerce , they update their plugins almost every single week! – So i pray they do NOT mess the registration element of it lol.

    Regards

    Plugin Author Robin W

    (@robin-w)

    no problem !!

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.