Error hidding and change mandatory fields
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 8
- Joined: 17 Oct 2022, 14:41
Error hidding and change mandatory fields
I modified the file 'config/shop.php' for hidding some fields but i dont show any change.
Any idea.
Best Regards
Code: Select all
'checkout' => [
'standard' => [
'address' => [
'billing' => [
'mandatory' => [
'order.base.address.firstname',
...
'order.base.address.countryid',
],
'hidden' => [
'order.base.address.salutation',
...
'order.base.address.vatid',
]
],
'delivery' => [
'mandatory' => [
'order.base.address.firstname',
...
'order.base.address.countryid',
],
'hidden' => [
'order.base.address.salutation',
...
'order.base.address.vatid',
]
],
],
],
],
Best Regards
-
- Posts: 8
- Joined: 17 Oct 2022, 14:41
Re: Error hidding and change mandatory fields
Well, continue the testing, this changes affect the form in summary checkout, but not in profile.
how I can change this data globally?
how I can change this data globally?
Re: Error hidding and change mandatory fields
You have to overwrite this file in your own extension because there's no global configuration for that:
https://github.com/aimeos/ai-client-htm ... e/body.php
https://github.com/aimeos/ai-client-htm ... e/body.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 8
- Joined: 17 Oct 2022, 14:41
Re: Error hidding and change mandatory fields
Thanks, I work in that then.
Thanks for Aimeos
Thanks for Aimeos
Re: Error hidding and change mandatory fields
You could validate whether or not to display the fields according to the billing/delivery configuration of the checkout settings:
Code: Select all
<?php if (!in_array('order.base.address.salutation', $this->config('client/html/checkout/standard/address/delivery/hidden') , true)): ?>
<div class="form-item form-group row salutation">
...
</div>
<?php endif; ?>