Address box info

  • Posts: 1100
  • Thank you received: 12
  • Hikashop Business
2 weeks 14 hours ago #367571

-- HikaShop version -- : 6.0.0
-- Joomla version -- : 5.3.1
-- PHP version -- : 8.3

Hi!

When a user selects invoice instead of receipt, is it possible in the address box to display only the company name and not the user's name?

I have added a radio button 1. Invoice 2. Receipt
and when you click on Invoice you have to fill 3 more text fields.

Thank you

Attachments:

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

  • Posts: 83997
  • Thank you received: 13611
  • MODERATOR
2 weeks 9 hours ago #367573

Hi,

You need to edit the "address format" setting under the Checkout tab of the HikaShop configuration:
www.hikashop.com/support/documentation/5...ml#checkout_shipping
There, you need to change the tags so that they are displayed dynamically with a bit of PHP code.
Something like that:

<?php
$address = $this->params->get('address');
if($address->xxx == 'yyy') {
 echo '{zzz}';
}
?>
where xxx is the column name of the field where the user can select between the choices, yyy is the "value" of the choice for which you want to display the other field, and zzz the column name of the other field you want to be displayed in such a case.

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.054 seconds
Powered by Kunena Forum