Telephone disabled in checkout

Help for integrating the Laravel package
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!
snicto
Posts: 37
Joined: 12 Oct 2022, 14:00

Telephone disabled in checkout

Post by snicto » 27 Nov 2022, 00:17

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:

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',
						]
					],
				],
			],
		],
]
Correct fields are displayed, as expected. However, the telephone field is disabled:

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="">
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.

Code: Select all

$view->config( 'client/html/checkout/standard/address/billing/mandatory', false )
would return false

Code: Select all

$view->config( 'client/html/checkout/standard/address/billing/hidden', false )
would return

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"
]
Is there something wrong with my config?

User avatar
aimeos
Administrator
Posts: 7871
Joined: 01 Jan 1970, 00:00

Re: Telephone disabled in checkout

Post by aimeos » 28 Nov 2022, 08:29

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

snicto
Posts: 37
Joined: 12 Oct 2022, 14:00

Re: Telephone disabled in checkout

Post by snicto » 28 Nov 2022, 14:32

- clearing cache did not resolve the issue
- APC is disabled in all settings:

Code: Select all

'apc_enabled' => false, // enable for maximum performance if APCu is available

User avatar
aimeos
Administrator
Posts: 7871
Joined: 01 Jan 1970, 00:00

Re: Telephone disabled in checkout

Post by aimeos » 28 Nov 2022, 14:42

Then, the configuration might be at the wrong place.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

snicto
Posts: 37
Joined: 12 Oct 2022, 14:00

Re: Telephone disabled in checkout

Post by snicto » 28 Nov 2022, 16:53

A space was the cause of the issue.

Post Reply