Telephone disabled in checkout
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!
Telephone disabled in checkout
Aimeos: 2022.10
I am having an issue with the configuration in the checkout fields. So my client.php config within my custom theme (tried also shop.php) is as follows:
Correct fields are displayed, as expected. However, the telephone field is disabled:
https://github.com/aimeos/ai-client-htm ... d.php#L125
This is where I was able to pinpoint the issue to the lines above, the wrong config is returned it seems, and the weirdest part is that hidden fields are returned correctly.
would return false
would return
Is there something wrong with my config?
I am having an issue with the configuration in the checkout fields. So my client.php config within my custom theme (tried also shop.php) is as follows:
Code: Select all
'html' => [
'checkout' => [
'standard' => [
'address' => [
'billing' => [
'hidden' => [
'order.base.address.salutation',
'order.base.address.title',
'order.base.address.address3',
'order.base.address.languageid',
'order.base.address.telefax',
'order.base.address.website',
'order.base.address.birthday',
'order.base.address.address2',
],
'mandatory ' => [
'order.base.address.firstname',
'order.base.address.lastname',
'order.base.address.address1',
'order.base.address.telephone',
'order.base.address.email',
],
'optional ' => [
'order.base.address.company',
'order.base.address.vatid',
'order.base.address.postal',
'order.base.address.city',
'order.base.address.state',
'order.base.address.countryid',
]
],
],
],
],
]
Code: Select all
<input class="form-control" type="tel" id="address-billing-telephone-2" name="ca_billing_2[order.base.address.telephone]" value="" placeholder="+1 123 456 7890" disabled="">
This is where I was able to pinpoint the issue to the lines above, the wrong config is returned it seems, and the weirdest part is that hidden fields are returned correctly.
Code: Select all
$view->config( 'client/html/checkout/standard/address/billing/mandatory', false )
Code: Select all
$view->config( 'client/html/checkout/standard/address/billing/hidden', false )
Code: Select all
array:8 [▼ // vendor\aimeos\ai-client-html\src\Client\Html\Checkout\Standard\Address\Billing\Standard.php:128
0 => "order.base.address.salutation"
1 => "order.base.address.title"
2 => "order.base.address.address3"
3 => "order.base.address.languageid"
4 => "order.base.address.telefax"
5 => "order.base.address.website"
6 => "order.base.address.birthday"
7 => "order.base.address.address2"
]
Re: Telephone disabled in checkout
Seems like the default values are used for mandatory and optional fields. Possible issues are:
- Cached Laravel config (run "php artisan optimize:clear" to refresh)
- APC Cache is enabled in ./config/shop.php
- Cached Laravel config (run "php artisan optimize:clear" to refresh)
- APC Cache is enabled in ./config/shop.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
Re: Telephone disabled in checkout
- clearing cache did not resolve the issue
- APC is disabled in all settings:
- APC is disabled in all settings:
Code: Select all
'apc_enabled' => false, // enable for maximum performance if APCu is available
Re: Telephone disabled in checkout
Then, the configuration might be at the wrong place.
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
Re: Telephone disabled in checkout
A space was the cause of the issue.