Is it possible to hide Phone Number with Shipping address?

  • Posts: 198
  • Thank you received: 7
7 years 2 months ago #277305

-- HikaShop version -- : 3.1.1

I want to hide the Phone number on the invoice for the Shipping Address.

How to handle?


Kind regards René

Last edit: 7 years 2 months ago by renem.

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

  • Posts: 198
  • Thank you received: 7
7 years 2 months ago #277353

Got it.

Add a class to Phone number ( Address format: <div class="example"><?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?></div>

So with a little CSS i got it hide in the shipping address.

The following user(s) said Thank You: Jerome

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
7 years 2 months ago #277311

Hi,

If the field is not required, you can edit the view file checkout / show_block_address.php via the menu Display>Views and add some custom code to hide the field based on the situation.
But there is no easy way to do it since an address can be used as shipping and / or billing address.
If for example you create a address for the shipping that doesn't have the phone number, then the phone number will also be missing for the billing address if the customer selects that address for the billing.

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

  • Posts: 198
  • Thank you received: 7
7 years 2 months ago #277378

Hi Nicolas,

I fixed it with some css magic see earlier post.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum