This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
udropship:customization [2010/06/22 18:22] unirgy |
udropship:customization [2010/06/24 23:38] (current) unirgy |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== uDropShip Customizations ====== | ||
| + | ===== Adding a vendor field ===== | ||
| + | |||
| + | See example of initial vendor fields configuration in: | ||
| + | '' | ||
| + | |||
| + | Create a new config file or use your custom module' | ||
| + | |||
| + | For a standalone customization, | ||
| + | |||
| + | <file xml z_custom_fields.xml> | ||
| + | <?xml version=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <!-- If you want to create a new field group, use fieldset (optional): --> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | <!-- Text field, named ' | ||
| + | < | ||
| + | <!-- text label for the field, will be shown to admin and vendor --> | ||
| + | < | ||
| + | <!-- Fieldset to show the field in, see udropship config.xml for default ones --> | ||
| + | < | ||
| + | <!-- Position within the fieldset --> | ||
| + | < | ||
| + | <!-- Default value for the field --> | ||
| + | < | ||
| + | <!-- < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <!-- Dropdown field --> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <!-- Source for the ' | ||
| + | < | ||
| + | < | ||
| + | <!-- Default value for the field --> | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | * Field Notes: | ||
| + | * Fields will be taken automatically from vendor object and serialized into db vendor metafield. | ||
| + | * If you want to save them in a separate field table, create field with this name in udropship_vendor. | ||
| + | * It is prudent to use a prefix for field names to avoid conflict with existing fields | ||
| + | * Possible field types: | ||
| + | * text (default) | ||
| + | * password | ||
| + | * textarea | ||
| + | * select | ||
| + | * multiselect | ||
| + | * image | ||
| + | * date | ||
| + | * datetime | ||
| + | * If no < | ||
| + | * You can create your own combined dropdown source classes by extending this class and overriding '' | ||