Disabled telephone field in checkout address

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
vovakurylo
Posts: 5
Joined: 26 Nov 2019, 16:04

Disabled telephone field in checkout address

Post by vovakurylo » 26 Nov 2019, 16:08

Hi, I have a question:
in which way should I enable telephone field so it can be editable and displayed with other items on billing address section at checkout summary?

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

Re: Disabled telephone field in checkout address

Post by aimeos » 26 Nov 2019, 20:51

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

vovakurylo
Posts: 5
Joined: 26 Nov 2019, 16:04

Re: Disabled telephone field in checkout address

Post by vovakurylo » 27 Nov 2019, 09:29

Still no field, am i doing something wrong?

Code: Select all

'client' => [
		'html' => [
		    'checkout' => [
		      'standard' => [
		          'address' => [
		              'billing' => [
		                  'optional' => array(
		                      0 => 'order.base.address.telephone'
                          )
                      ]
                  ]
              ]
            ],
            ...
This didn't work too

Code: Select all

'optional' => [
		                      0 => 'order.base.address.telephone'
                          ]
                          

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

Re: Disabled telephone field in checkout address

Post by aimeos » 28 Nov 2019, 09:33

Can you post your complete configuration (without credentials)?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

vovakurylo
Posts: 5
Joined: 26 Nov 2019, 16:04

Re: Disabled telephone field in checkout address

Post by vovakurylo » 28 Nov 2019, 16:37

shop.php

Code: Select all

<?php

return [

	'apc_enabled' => false, // enable for maximum performance if APCu is availalbe
	'apc_prefix' => 'laravel:', // prefix for caching config and translation in APCu
	'pcntl_max' => 4, // maximum number of parallel command line processes when starting jobs

	'routes' => [
		// Docs: https://aimeos.org/docs/Laravel/Custom_routes
		// Multi-sites: https://aimeos.org/docs/Laravel/Configure_multiple_shops
		// 'admin' => ['prefix' => 'admin', 'middleware' => ['web']],
		// 'jqadm' => ['prefix' => 'admin/{site}/jqadm', 'middleware' => ['web', 'auth']],
		// 'jsonadm' => ['prefix' => 'admin/{site}/jsonadm', 'middleware' => ['web', 'auth']],
		// 'jsonapi' => ['prefix' => 'jsonapi', 'middleware' => ['web', 'api']],
		// 'account' => ['prefix' => 'myaccount', 'middleware' => ['web', 'auth']],
		// 'default' => ['prefix' => 'shop', 'middleware' => ['web']],
		// 'update' => [],
	],


    'page' => [
        // Docs: https://aimeos.org/docs/Laravel/Adapt_pages
        // Hint: catalog/filter is also available as single 'catalog/tree', 'catalog/search', 'catalog/attribute'
        'account-index' => [ 'account/profile','account/subscription','account/history','account/favorite','account/watch','basket/mini','catalog/session' ],
        'basket-index' => [ 'basket/bulk', 'basket/standard','basket/related' ],
        'catalog-count' => [ 'catalog/count' ],
        'catalog-detail' => [ 'basket/mini','catalog/stage','catalog/detail','catalog/session' ,'catalog/tree'],
        'catalog-list' => [ 'basket/mini','catalog/filter','catalog/lists', 'catalog/tree', 'catalog/search', 'catalog/attribute' ],
        'catalog-stock' => [ 'catalog/stock' ],
        'catalog-suggest' => [ 'catalog/suggest' ],
        'catalog-tree' => [ 'basket/mini','catalog/filter','catalog/stage','catalog/lists', 'catalog/tree', 'catalog/attribute', 'catalog/search' ],
        'checkout-confirm' => [ 'checkout/confirm' ],
        'checkout-index' => [ 'checkout/standard' ],
        'checkout-update' => [ 'checkout/update' ],
    ],


	/*
	'resource' => [
		'db' => [
			'adapter' => config('database.connections.mysql.driver', 'mysql'),
			'host' => config('database.connections.mysql.host', '127.0.0.1'),
			'port' => config('database.connections.mysql.port', '3306'),
			'socket' => config('database.connections.mysql.unix_socket', ''),
			'database' => config('database.connections.mysql.database', 'forge'),
			'username' => config('database.connections.mysql.username', 'forge'),
			'password' => config('database.connections.mysql.password', ''),
			'stmt' => ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8mb4'; SET SESSION sql_mode='ANSI'"],
			'limit' => 3, // maximum number of concurrent database connections
			'defaultTableOptions' => [
					'charset' => config('database.connections.mysql.charset'),
					'collate' => config('database.connections.mysql.collation'),
			],
		],
	],
	*/

	'admin' => [],

	'client' => [
		'html' => [
		    'checkout' => [
		      'standard' => [
		          'address' => [
		              'billing' => [
		                  'optional' => [
		                      0 => 'order.base.address.telephone'
                          ]
                      ]
                  ]
              ]
            ],
			'basket' => [
				'cache' => [
					// 'enable' => false, // Disable basket content caching for development
				],
			],
			'common' => [
				'template' => [
					// 'baseurl' => public_path( 'packages/aimeos/shop/themes/elegance' ),
				],
			],
		],
	],

	'controller' => [
	],

	'i18n' => [
	],

	'madmin' => [
		'cache' => [
			'manager' => [
			    'name' => 'None', // Disable caching for development
			],
		],
		'log' => [
			'manager' => [
				'standard' => [
					// 'loglevel' => 7, // Enable debug logging into madmin_log table
				],
			],
		],
	],

	'mshop' => [
	],


	'command' => [
	],

	'frontend' => [
	],

	'backend' => [
	],

    'client' => [
        'html' => [
            'catalog' => [
                'lists' => [
                    'size' => 30
                ],
            ],

        ],
    ],

];

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

Re: Disabled telephone field in checkout address

Post by aimeos » 28 Nov 2019, 17:35

You are overwriting the "client" part later in your config file!
Also, your wrong brackets render these settings useless:

Code: Select all

			'basket' => [
				'cache' => [
					// 'enable' => false, // Disable basket content caching for development
				],
			],
			'common' => [
				'template' => [
					// 'baseurl' => public_path( 'packages/aimeos/shop/themes/elegance' ),
				],
			],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

vovakurylo
Posts: 5
Joined: 26 Nov 2019, 16:04

Re: Disabled telephone field in checkout address

Post by vovakurylo » 29 Nov 2019, 11:36

Oh, i forgot about that, now it's working, thanks :)

ay-men
Posts: 1
Joined: 05 Feb 2020, 13:50

Re: Disabled telephone field in checkout address

Post by ay-men » 05 Feb 2020, 13:59

please vovakurylo can you post your right configuration

Post Reply