|Relation||myshop-value:label, myshop-value:control, myshop-is:required-field|
The myshop-repeat:customer-fields and myshop-repeat:customer-fields-delivery extension can be used to display all the address related labels and controls on the address page and labels and values on the approval and confirmation pages. For each customer field (as set in the editor) the code within the repeat is displayed. To check if the current field is required or not, themyshop-is:required-field exists. The code within that condition is only displayed when the current customer field is required (fields can be set to be required in the editor). Especially for the address page, it is possible to show the delivery fields only when the user request so by using a radio button control. For more information, see myshop-value:delivery-selection-control.
Example for use on the address page (showing the billing labels and controls):
<table> <tr style="myshop-repeat:customer-fields"> <td> <span style="myshop-value:label"/><span style="myshop-is:required-field">*</span> </td> <td> <span style="myshop-value:control"/> </td> </tr> </table>
Example for use on the approval or confirmation pages (showing the delivery labels and values):
<table> <tr style="myshop-repeat:customer-fields-delivery"> <td> <span style="myshop-value:label"/>: </td> <td> <span style="myshop-value:value"/> </td> </tr> </table>
In order to have more flexibility in the markup of the customer-fields, it is possible to display them separately without the use of this repeat loop. See for more detail about this extension the help page about myshop-value:customer-field.