[TYPO3-commerce] additional address form fields
Ingo Schmitt
mailinglisten at i-schmitt.de
Thu Nov 29 18:04:15 CET 2007
Hi Heiko,
could you add this to the wiki?
ingo
> Hello,
>
> I just wandet to share how to manage additional address form fields if
> they are needed.
> In our case we also need the fields 'telephone', 'fax', 'customer
> number' and 'gender'.
>
> The TS setup has to get extended by those fields to produce the form
> fields:
>
> plugin.tx_commerce_pi3 {
> billing.sourceFields {
> phone.mandatory = 0
> fax.mandatory = 0
> custnumber.mandatory = 0
> gender.mandatory = 1
> }
> }
>
> If possible we use the field names according to already existing DB
> fields in tt_address table.
> If we need fields not yet existing in the tt_address table we have to
> add them to the table, for example with the kickstarter.
>
> All additional fields are now put at the end of the form which is not
> nice for the 'gender' field since we would expect it to stick in front
> of the name field. Unfortunately I couldn't find a solution yet to sort
> the form fields in the frontend form. Somebody knows a solution?
>
> Next we need to add the labels for our new fields in the TS setup (in
> our case in German):
>
> plugin.tx_commerce_pi3 {
> _LOCAL_LANG.de {
> general_phone = Telefon
> general_fax = Fax
> general_custnumber = Kundennummer
> general_gender = Anrede
> }
>
> Now the new form fields shoud occur with labels in the frontend.
> One has to be carefull with the tt_address fields 'title' and
> 'description' because the form fields are generated correctly BUT the
> labels are not getting parsed correctly. They will be overwritten by the
> following label values for billing or delivery :
>
> plugin.tx_commerce_pi3 {
> _LOCAL_LANG.de {
> billing_title = Rechnungsadresse
> billing_description = Angaben zur Rechnungsadresse
> }
>
> This might be a bug though.
>
> Our new address form field values are getting stored in the DB
> automaticly while checking out.
> Next step is to create additional markers for the email template and to
> substitute them by the form field values.
> That's were I'm just working on...
>
> regards
> Heiko
Mit freundlichen Gruessen
--
Ingo Schmitt mailto:is at marketing-factory.de
Marketing Factory Consulting GmbH http://typo3.marketing-factory.de/
Content Management mit Typo3: Beratung - Schulung - Realisierung
More information about the TYPO3-project-commerce
mailing list