- Posts: 1195
- Thank you received: 13
Address box info
1 year 5 months ago #367571
by verzevoul
Address box info was created by verzevoul
-- 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
-- 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
Please Log in or Create an account to join the conversation.
1 year 5 months ago #367573
by nicolas
Replied by nicolas on topic Address box info
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:
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.
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:
Code:
<?php
$address = $this->params->get('address');
if($address->xxx == 'yyy') {
echo '{zzz}';
}
?>
The following user(s) said Thank You: verzevoul
Please Log in or Create an account to join the conversation.
Time to create page: 0.046 seconds