[TYPO3-commerce] Adding telephone field to commerce

Franz Koch typo.removeformessage at fx-graefix.de
Sun Oct 7 13:22:31 CEST 2007


Hi Karsten,

> Now that the phone field is no longer distributed with the commerce 
> templates I cannot be disturbed about it not working. :)
> 
> But I need to have customer's addresses contain a phone field. So just 
> adding markers for TELEPHONE and putting this into TS
>  plugin.tx_commerce_pi4.formFields.telephone.mandatory = 1
> didn't do the trick.
> 
> So, who knows how to add new fields to the address management forms in 
> pi4 and put the phone also in mails, etc.?

note that the fieldname should be 'phone' instead of 'telephone' 
(depending on your setup) and that you also have to add the field to pi3 
(checkout) in order to get them rendered in the checkout process as well 
the emails.

---
plugin.tx_commerce_pi3 {
	billing.sourceFields {
		phone.mandatory = 1
	}
	delivery.sourceFields {
		phone.mandatory = 1
	}
}
---

This is untested - but should work.

--
Kind regards,
Franz Koch


More information about the TYPO3-project-commerce mailing list