No display of the phone number on invoice

  • Posts: 81
  • Thank you received: 0
10 years 7 months ago #152241

-- 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.

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #152267

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.

  • Posts: 81
  • Thank you received: 0
10 years 7 months ago #153085

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.

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #153087

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.

  • Posts: 81
  • Thank you received: 0
10 years 7 months ago #153234

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.

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #153245

Hi,

Thanks to try to replace:

									$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:
									$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.

  • Posts: 81
  • Thank you received: 0
10 years 7 months ago #153371

Hi,

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

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

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #153381

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.

  • Posts: 81
  • Thank you received: 0
10 years 7 months ago #153510

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.

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #153518

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.

  • Posts: 81
  • Thank you received: 0
10 years 7 months ago #153675

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.


Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #153825

Hi,

Ok thanks to edit the views "'order / address_template" (backend template) and "address / address_template" (frontend template) and add:

$html = str_replace(JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}'),'',$html);
After:
$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.106 seconds
Powered by Kunena Forum