Configuration Problem Address.billing and countries

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Configuration Problem Address.billing and countries

Post by velo » 29 Jul 2016, 12:26

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]

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

Re: Configuration Problem Address.billing and countries

Post by aimeos » 01 Aug 2016, 14:29

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

velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Re: Configuration Problem Address.billing and countries

Post by velo » 01 Aug 2016, 14:34

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]

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

Re: Configuration Problem Address.billing and countries

Post by aimeos » 03 Aug 2016, 07:38

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

velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Re: Configuration Problem Address.billing and countries

Post by velo » 03 Aug 2016, 10:01

Thank you very much.
I'll give it a try.

[pb]

velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Re: Configuration Problem Address.billing and countries

Post by velo » 04 Aug 2016, 07:59

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]
Attachments
Bildschirmfoto 2016-08-04 um 09.58.24.png
Bildschirmfoto 2016-08-04 um 09.58.24.png (63.41 KiB) Viewed 4413 times

velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Re: Configuration Problem Address.billing and countries

Post by velo » 04 Aug 2016, 08:13

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.

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

Re: Configuration Problem Address.billing and countries

Post by aimeos » 05 Aug 2016, 14:04

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

velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Re: Configuration Problem Address.billing and countries

Post by velo » 08 Aug 2016, 12:00

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.

Post Reply