Skip to main content

No display of the phone number on invoice

More
12 years 5 months ago #152241 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

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #152267 by Xavier
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

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153085 by bordia
Hi Xavier,

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.

More
12 years 5 months ago #153087 by Mohamed Thelji
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.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153234 by bordia
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.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153245 by Xavier
Hi,

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); } }
By:
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.

More
12 years 5 months ago #153371 by bordia
Hi,

the phone number still appears on the invoice and the delivery note.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153381 by Mohamed Thelji
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.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153510 by bordia
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

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153518 by Xavier
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.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153675 by bordia
Hi,

the phone number does not appear on the billing address. But I do not get displayed the word phone. In the picture is shown what I would not have been displayed.


Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #153825 by Xavier
Hi,

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);
After:
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
Powered by Kunena Forum