Removing the validation on onepage checkout in Magento -
on magento website have series of customers have no first name / last name in shipping address it's not needed. when try checkout on onepage checkout without firstname/lastname following error:
"please check shipping address information. please enter first name. please enter last name."
is there anyway , disable validation these 2 fields stop error appearing?
note: excluding first / last name attributes not recommended within magento dependent on these attributes within archetecture. if know you're doing , have taken backup of database, try following:
first, need remove required-entry
class on fields within template. backend still validate first / last name data still exists.
secondly, can remove requirement first / last name entry modifying eav_attribute
table. find rows rows attribute_code
being "firstname" , "lastname" , entity_type_id
being "2" (which id of address model attributes). change is_required
value "0".
the backend validation first / last name within address model should no longer exist. not exist if customer updating addresses within 'my account' section.
Comments
Post a Comment