[TYPO3-commerce] Adding field "fax" in address management
Dirk Borchers
dirk.borchers at gmx.de
Fri May 11 09:57:46 CEST 2007
In article
<mailman.1.1178694896.6351.typo3-project-commerce at lists.netfielders.de>,
Dirk Borchers <dirk.borchers at gmx.de> wrote:
> Hello,
>
> I need to add the field "fax" in the user management. I added
> ###LABEL_FAX### and ###FAX### to the templates - but this does not work.
> I only get the strings - not the field or input type. How can I add this
> field?
>
> Greets,
> Dirk
So this is the how to:
1.static/setup
- in "plugin.tx_commerce_pi3" description for "sourceFields {" add the
line "fax.mandatory = 1" (or 0 if is not a mandatory field)
- the same for "plugin.tx_commerce_pi4"
2. pi3/locallang.xml
add <label index="general_fax">Fax</label> at your language description
3. pi4/locallang.xml
add <label index="label_fax">Fax:</label> at your language description
4. template_checkout_01.html
<!--###ADDRESS_EDIT_FORM###-->
add <strong>###LABEL_FAX###</strong> ###FIELD_FAX###<br />
<!--###ADDRESS_LIST###-->
add
<tr><td
align="right"><strong>###LABEL_FAX###</strong></td><td>###FAX###</td></tr
>
5. template_adminmail.html
add Fax: ###FAX###
6. adressmanagement_01.html
<!--###ADDRESS_EDIT_FORM###-->
add
<tr><td class="bezeichnung">###LABEL_FAX###</td><td
class="feld">###FIELD_FAX###</td></tr>
Don't forget to clear the cache!
That's it!
Have a nice weekend,
Dirk
More information about the TYPO3-project-commerce
mailing list