• Resolved TATAR

    (@tatar)


    Hello. I want to add a custom field such as phone number and national number to the profile editor after the city field and zip code. How do I do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter TATAR

    (@tatar)

    				<p id="edd_profile_billing_address_idcard_wrap">
    					<label for="edd_address_idcard"><?php esc_html_e( '????? ???', 'kiwimarket' ); ?></label>
    					<input name="edd_address_idcard" id="edd_address_idcard" class="text edd-input  required" type="text" value="<?php echo esc_attr( $address['idcard'] ); ?>" />
    				</p>
    
    				<p id="edd_profile_billing_address_phone_wrap">
    					<label for="edd_address_phone"><?php esc_html_e( '????? ????', 'kiwimarket' ); ?></label>
    					<input name="edd_address_phone" id="edd_address_phone" class="text edd-input  required" type="tel" pattern="^[\d -]+" value="<?php echo esc_attr( $address['phone'] ); ?>" />
    				</p>

    I added this code. But it does not work and the data is not stored

    Plugin Support Mihai Joldis

    (@misulicus)

    Hey @tatar

    Please take a look at this article https://docs.easydigitaldownloads.com/article/953-custom-checkout-fields as a guide on how to create custom fields for the checkout page.

    In a similar way, you can add them to the profile page but you need to find the correct hooks to use and also you need functions to run that save the data.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add custom field to profile editor’ is closed to new replies.