- Posts: 81
- Thank you received: 0
No display of the phone number on invoice
12 years 5 months ago #152241
by bordia
No display of the phone number on invoice was created by bordia
-- url of the page with the problem -- :
mywebsite.com/mypage
-- HikaShop version -- : latest
-- Joomla version -- : 3.2
Hi,
the phone number should not be shown on the invoice and the delivery note. How can I do that?
best regards
-- HikaShop version -- : latest
-- Joomla version -- : 3.2
Hi,
the phone number should not be shown on the invoice and the delivery note. How can I do that?
best regards
Please Log in or Create an account to join the conversation.
12 years 5 months ago #152267
by Xavier
Replied by Xavier on topic No display of the phone number on invoice
Hi,
You can edit the view "order / show" in the frontend template and "order / form", "order / invoice" in the backend template in order to remove the phone number.
hikashop.com/support/support/documentati...ize-the-display.html
You can edit the view "order / show" in the frontend template and "order / form", "order / invoice" in the backend template in order to remove the phone number.
hikashop.com/support/support/documentati...ize-the-display.html
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153085
by bordia
Replied by bordia on topic No display of the phone number on invoice
Hi Xavier,
can you tell me please call the lines of PHP files since I can not find a phone number in the files.
can you tell me please call the lines of PHP files since I can not find a phone number in the files.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 5 months ago #153087
by Mohamed Thelji
Replied by Mohamed Thelji on topic No display of the phone number on invoice
Hello,
In your case, I think that the solution will be to edit the code of the address_template file of the Order view of your back-end view through "Hikashop->Display->Views", and just remove the good tag.
In your case, I think that the solution will be to edit the code of the address_template file of the Order view of your back-end view through "Hikashop->Display->Views", and just remove the good tag.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153234
by bordia
Replied by bordia on topic No display of the phone number on invoice
Hi Mohamed Thelji,
I want to be the phone number not displayed on the invoice and on the delivery note.
In the backend I need to see the phone number.
I want to be the phone number not displayed on the invoice and on the delivery note.
In the backend I need to see the phone number.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153245
by Xavier
Replied by Xavier on topic No display of the phone number on invoice
Hi,
Thanks to try to replace:
By:
In the view "order / show" in the frontend template.
Thanks to try to replace:
Code:
$html = hikashop_getLayout('address','address_template',$params,$js);
if(!empty($this->element->fields)){
foreach($this->element->fields as $field){
$fieldname = $field->field_namekey;
if(!empty($this->element->billing_address->$fieldname)) $html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->billing_address->$fieldname),$html);
}
}
Code:
$html = hikashop_getLayout('address','address_template',$params,$js);
if(!empty($this->element->fields)){
foreach($this->element->fields as $field){
$fieldname = $field->field_namekey;
if($fieldname == 'address_telephone') continue;
if(!empty($this->element->billing_address->$fieldname)) $html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->billing_address->$fieldname),$html);
}
}
In the view "order / show" in the frontend template.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153371
by bordia
Replied by bordia on topic No display of the phone number on invoice
Hi,
the phone number still appears on the invoice and the delivery note.
the phone number still appears on the invoice and the delivery note.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 5 months ago #153381
by Mohamed Thelji
Replied by Mohamed Thelji on topic No display of the phone number on invoice
Can you check that you edited the code of the "show" file of the "order" view of the GOOD front-end template through "Hikashop->Display->Views" ?
Thanks.
Thanks.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153510
by bordia
Replied by bordia on topic No display of the phone number on invoice
Hi,
yes I have the php file changed from frontend template what I use.
Has the bill a separate php file that must be change to hide the phone number on the invoice and delivery note?
Best regards
yes I have the php file changed from frontend template what I use.
Has the bill a separate php file that must be change to hide the phone number on the invoice and delivery note?
Best regards
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153518
by Xavier
Replied by Xavier on topic No display of the phone number on invoice
Hi,
You are probably talking about the invooice from the backend so the view to edit is "order / invoice" in the backend template still via the menu Display > Views.
You are probably talking about the invooice from the backend so the view to edit is "order / invoice" in the backend template still via the menu Display > Views.
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153675
by bordia
Replied by bordia on topic No display of the phone number on invoice
Please Log in or Create an account to join the conversation.
12 years 5 months ago #153825
by Xavier
Replied by Xavier on topic No display of the phone number on invoice
Hi,
Ok thanks to edit the views "'order / address_template" (backend template) and "address / address_template" (frontend template) and add:
After:
ps: that can be required many times.
Ok thanks to edit the views "'order / address_template" (backend template) and "address / address_template" (frontend template) and add:
Code:
$html = str_replace(JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}'),'',$html);
Code:
$html = hikashop_getLayout('address','address_template',$params,$js);
ps: that can be required many times.
Please Log in or Create an account to join the conversation.
Time to create page: 0.292 seconds