Post by mrblond » Fri Nov 17, 2017 7:01 pm

How to hide/remove the telephone field in Checkout>Billing Details>Your Personal Details?

Active Member

Posts

Joined
Fri Oct 13, 2017 4:43 pm

Post by straightlight » Fri Nov 17, 2017 8:36 pm

This extension may provide what you need: https://www.opencart.com/index.php?rout ... n_id=21931 . However, it may require small adjustments for v3.x releases.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by avarahvahin » Sat Nov 18, 2017 2:39 pm

You can do it manually using below steps:
1. from theme template file, catalog/view/theme/yourtheme/template/checkout/register.twig, hide/remove telephone field.
2. From controller file, catalog/controller/checkout/register.php, remove line $json['error']['telephone'] = $this->language->get('error_telephone');
You can use the extension to remove telephone field validation, https://www.opencart.com/index.php?rout ... n_id=32474

Thanks,
Avarah Vahin

View All My Extensions


Newbie

Posts

Joined
Sat Nov 18, 2017 2:22 pm

Who is online

Users browsing this forum: No registered users and 30 guests