Remove Contact First and Last Name in Cart

We get a lot of requests on how to remove the first and last name from the contact information when a user is checkout out for the first time. To do this we need to complete two steps: 1. Hide the two rows of first and last name in the layout file. 2. Remove the check for these values in the javascript file.



1. Hide the first and last name rows: I like to add the code ‘style=”display:none”‘ for each row. This is to make sure we do not mess with the core functionality, but complete what we want on the display side. The file we are editing is her: wp-content/plugins/wp-easycart-data/design/layout/{my layout}/ec_cart_contact_information.php



2. Remove the javascript that requires the first and last name in the contact information section. This file is available here: wp-content/plugins/wp-easycart-data/design/theme/{my theme}/ec_cart_page/ec_cart_page.js.



Now your users can checkout without providing another first and last name for their account information.