Page 1 of 1

Configuration Problem Address.billing and countries

Posted: 29 Jul 2016, 12:26
by velo
Hi there,

I got the following code snippet

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.mandatory {
	0 = order.base.address.salutation
	1 = order.base.address.firstname
	2 = order.base.address.lastname
	3 = order.base.address.address1
	4 = order.base.address.postal
	5 = order.base.address.city
	6 = order.base.address.countryid
	7 = order.base.address.email
}

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.optional {

}

plugin.tx_aimeos.settings.client.html.checkout.standard.address.countries {
	0 = DE
	# Andorra
	1 = AE
}
First Problem, in the frontend are more fields shown then the specified fields in mandatory configuration e.g. telephone and language. I just want to show these 8 specified fields in the frontend.

Second Problem, in my countries dropdown are much more countries (all countries). The only thing that works is, that Germany is on the first place in the dropdown, so the configuration kind of works.
How can I get rid of the other countries?

Thank you in advance
[pb]

Re: Configuration Problem Address.billing and countries

Posted: 01 Aug 2016, 14:29
by aimeos
There are also optional fields configured:
https://aimeos.org/docs/Configuration/C ... g/optional

You can configure the country list as well:
https://aimeos.org/docs/TYPO3/Configure ... ons_states

Re: Configuration Problem Address.billing and countries

Posted: 01 Aug 2016, 14:34
by velo
Hey there,

thank you for the response.
I think everything is configured in the code example above, just scroll down. There is a config for optional (empty) and a configuration for the countries with Germany and Andorra.

Greetings [pb]

Re: Configuration Problem Address.billing and countries

Posted: 03 Aug 2016, 07:38
by aimeos
The configuration was merged with the existing one which is not the desired result. This has been changed in dev-master now. Can you give it a try?

Re: Configuration Problem Address.billing and countries

Posted: 03 Aug 2016, 10:01
by velo
Thank you very much.
I'll give it a try.

[pb]

Re: Configuration Problem Address.billing and countries

Posted: 04 Aug 2016, 07:59
by velo
Hi,

it seems to work partly. Countries are working like a charm. At the moment my configuration looks like this:

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.mandatory {
	0 = order.base.address.salutation
	1 = order.base.address.firstname
	2 = order.base.address.lastname
	3 = order.base.address.address1
	4 = order.base.address.postal
	5 = order.base.address.city
	6 = order.base.address.countryid
}

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.optional {
	0 = order.base.address.email
}

plugin.tx_aimeos.settings.client.html.checkout.standard.address.countries {
	0 = DE
	1 = GB
}
I would expect to see the following fields, marked as mandatory

salutation
firstname
lastname
address1
postal
city
countryid
and email as optional

But, as you can see in the Screenshot, there are more fields.
E.g language and I want to get rid of the disabled (grey) fields

Thanks in advance
[pb]

Re: Configuration Problem Address.billing and countries

Posted: 04 Aug 2016, 08:13
by velo
I've found the "hidden" configuration option but it doesn't do anything

Code: Select all

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.optional {
	0 = order.base.address.email
}

plugin.tx_aimeos.settings.client.html.checkout.standard.address.billing.hidden {
	0  = order.base.address.telefax
	1  = order.base.address.website
}
Funny fact: The fields telefax and website aren't disabled anymore.

Re: Configuration Problem Address.billing and countries

Posted: 05 Aug 2016, 14:04
by aimeos
"mandatory", "optional" and "hidden" are CSS classes that are applied the the fields and "mandatory" fields are first enforced in the frontend via JQuery and later in the backend. Can you have a look if your CSS does still hide elements with the "hidden" class?

Re: Configuration Problem Address.billing and countries

Posted: 08 Aug 2016, 12:00
by velo
Now we found it. The default style for form-item is

Code: Select all

display: none
and only the optional and mandatory classes have

Code: Select all

display: list-item

Code: Select all

.checkout-standard-address .form-list .form-item {
    display: none;
}
.checkout-standard-address .form-list .mandatory, .checkout-standard-address .form-list .optional {
   display: list-item;
}
Thanks for helping.