This topic has 10 replies, 2 voices, and was last updated 8 years, 11 months ago ago by Jack Richardson
Hi,
I would like to edit/add/remove lines in the Checkout- and Registration page
I know I need to edit et-registration.php but I don’t know how to do it. What lines do I use?
For the Checkout page I don’t know which file to edit and how to do it.
Can you please help me?
Kind regards
Gwenny
Hello,
Please specify what lines exactly you want to remove.
Best regards,
Jack Richardson.
Hi Jack,
On the registration page I would like to add:
Name (Naam)
Adress (Adres)
Postcode (Postcode)
City (Woonplaats)
Telephone (Telefoonnummer)
On the checkout page I’ve managed to edit a few things with woocommerce field editor but still there is a field with “Adress 2” which I cannot remove or edit and that field needs to be “City” (Woonplaats)
Kind regards,
Gwenny
Hello,
To remove some fields on Checkout page you can refer to this article:
http://www.wpmayor.com/how-to-remove-the-billing-details-from-woocommerce-checkout/
To add more fields in registration form you need edit the file et-registration.php and add the needed fields according to examples as other fields are added, i.e.
<p class="form-row form-row-first">
<label><?php _e( "Enter your name", ETHEME_DOMAIN ) ?> <span class="required">*</span></label>
<input type="text" name="name" class="text" value="" />
</p>
Best regards,
Jack Richardson.
Hi Jack,
There is still an extra field “adress2” showing on checkout page, can’t seem to remove that.
Can you please help?
Happy Xmas by the way!
Kind regards,
Gwenny
Hello,
I’ve added the code in wp-content/themes/idstore/functions.php as described here http://www.wpmayor.com/how-to-remove-the-billing-details-from-woocommerce-checkout/ :
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_address_2']);
return $fields;
}
Merry Christmas!
Best regards,
Jack Richardson.
Hi Jack,
Thank you!
I noticed that on the login page and also on the register page?, the buttons “forgot password” and “signin” overlap. I think it’s because the Dutch translation is a bit too long for the buttons.
Can you fix that?
Kind regards,
Gwenny
Hello,
I’ve added the css code in your custom.css file:
form.login .lost_password {
left: 0 !important;
}
Please check it now.
Best regards,
Jack Richardson.
Hi Jacj,
Thank you! You are a great help!
Kind regards,
Gwenny
Hello,
You are welcome!
Best regards,
Jack Richardson.
The issue related to '‘Checkout and Registration page’' has been successfully resolved, and the topic is now closed for further responses