Hi all, I finished removing telephone field from admin customer_form now im trying to remove field from admin/view/template/sale/order/add
Can anyone offer any help. Much appreciated. Thanks in advance.
Can anyone offer any help. Much appreciated. Thanks in advance.
Last edited by sdd on Mon Mar 01, 2021 10:40 pm, edited 1 time in total.
I would not suggest that since the telephone field is still mandatory most of the time by payment service providers.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
As Straightlight said - it is not the best idea - not just because of that
However you could try something like this to ‘get around it’
admin/view/template/sale/order_form.twig
@ line 100 find
and before it add
Say add your store number instead - something like that
However you could try something like this to ‘get around it’
admin/view/template/sale/order_form.twig
@ line 100 find
Code: Select all
<input type="text" name="telephone" value="{{ telephone }}" id="input-telephone" class="form-control" />
Code: Select all
{% if telephone %} {% else %}{% set telephone = "123456" %}{% endif %}
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Or, to simply move the input near the <form location of that order area and switch the input text to input hidden .
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 194 guests