Hook To Modify Customer Registration Form?

HomeSupportImage StoreHook To Modify Customer Registration Form?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #57130
    jcharris
    Participant

    I see there is a hook to add new customer fields to the database. Good!

    However, is there a hook to also modify the existing customer-edit.php form that I’m not seeing (ie. add input fields to the form?) OR is there a hook to -replace- customer-edit.php with my own form and not break the core code?

    TIA,

    —JC

    #57149
    Xpark Media
    Keymaster

    @jcharris,

    you can add additional values using the ims_cutomer_data_row hook.

    if you want to complete rewrite the form use ims_include_{file_name}

    #59142
    jcharris
    Participant

    Thanks.

    Now…. I’m coming from Drupal where hooks are quite different. Can you -please- pretty please flesh out your example for “use ims_include_{file_name}”

    I’m clearly not getting how one passes the dir and filename parameters. The doc doesn’t seem to be a working example, is it?

    TIA,

    —JC

    #70223
    Xpark Media
    Keymaster

    No, is not a working example, try this. Change the path to the full path of your file.

    
    function ims_change_customer_edit_file( $file, $dir ) {
    	return "full/path/to/new/file.php";
    }
    add_filter('ims_include_customer-edit', 'ims_change_customer_edit_file', 10, 2); 
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.