Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules: Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#3114 by velo
29 Jul 2016, 12:26
Hi there,

I got the following code snippet
Code: Select allplugin.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]
#3127 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]
#3159 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 allplugin.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 645 times
#3160 by velo
04 Aug 2016, 08:13
I've found the "hidden" configuration option but it doesn't do anything
Code: Select allplugin.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.
#3167 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?
#3179 by velo
08 Aug 2016, 12:00
Now we found it. The default style for form-item is
Code: Select alldisplay: none
and only the optional and mandatory classes have
Code: Select alldisplay: 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.