Configuration Problem Address.billing and countries
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Configuration Problem Address.billing and countries
Hi there,
I got the following code snippet
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]
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
}
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
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
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, give us a star
If you like Aimeos, give us a star
Re: Configuration Problem Address.billing and countries
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]
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
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, give us a star
If you like Aimeos, give us a star
Re: Configuration Problem Address.billing and countries
Thank you very much.
I'll give it a try.
[pb]
I'll give it a try.
[pb]
Re: Configuration Problem Address.billing and countries
Hi,
it seems to work partly. Countries are working like a charm. At the moment my configuration looks like this:
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]
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
}
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 (63.41 KiB) Viewed 4624 times
Re: Configuration Problem Address.billing and countries
I've found the "hidden" configuration option but it doesn't do anything
Funny fact: The fields telefax and website aren't disabled anymore.
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
}
Re: Configuration Problem Address.billing and countries
"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, give us a star
If you like Aimeos, give us a star
Re: Configuration Problem Address.billing and countries
Now we found it. The default style for form-item is and only the optional and mandatory classes have
Thanks for helping.
Code: Select all
display: none
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;
}