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
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.