Site icon Hip-Hop Website Design and Development

Can I add checkout fields already on the product web page in order that the client can add this info and later be retrieved at checkout?

I am attempting to make some woocommerce checkout fields accessible on the product web page, corresponding to: First Title, Final Title, Phone and E-mail.

What I would like is that when the client fills in these fields on the woocommerce product web page, this info will already be included within the checkout in order that it quickens the filling of different billing info.

What I’ve finished to this point is to manually add the fields to the file …/woocommerce/single-product/easy.php

    <label>Full Title</label></br>
<enter kind="text" id="billing_first_name" placeholder="Enter your full name"></enter></br>

<label>E mail</label></br>
<enter kind="text" id="cpf" placeholder="Enter your email"></enter></br>

<label>Cellphone</label></br>
<enter kind="text" id="tel" placeholder="A contact phone number"></enter></br></br>

<button kind="submit" identify="add-to-cart" worth="<?php echo esc_attr( $product->get_id() ); ?>" class="single_add_to_cart_button button alt"><?php echo esc_html ( $product->single_add_to_cart_text() ); ?></button>

Not if that may be one of the simplest ways to do it… However once I fill within the information and click on on the button: add to cart

I do not retrieve the values ​​within the fields on the cheout web page