In Swift there are a few different fields that are required for the solution to function properly. Beneath will follow a list of the fields needed.
Product group fields
There are six required Product group fields. These are located in Settings -> Products -> Attributes -> Groups
| Product Group Fields | |||
|---|---|---|---|
| Field Name | System Name | Template Tag | Type name |
| Selected Group for Product Group List* | SelectedGroup | SelectedGroup | Checkbox |
| Product Group Navigation Image | ProductGroupNavigationImage | ProductGroupNavigationImage | File Manager |
| Product group promotion image | ProductGroupPromotionImage | ProductGroupPromotionImage | File Manager |
| Product group promotion description | ProductGroupPromotionDescription | ProductGroupPromotionDescription | Text (50) |
| Product group promotion link label | ProductGroupPromotionLinkLabel | ProductGroupPromotionLinkLabel | Text (20) |
| Product group promotion link | ProductGroupPromotionLink | ProductGroupPromotionLink | Link |
*For this Product group field you should add the description: "Enable this, if you want to render the group in the Product Group List, on the product list pages." to help ease the understanding of the field.
Product fields
There is one Product field that is required for Swift. It is located in Settings -> Products -> Products -> Global custom fields.
| Product Fields | |||
|---|---|---|---|
| Field Name | System Name | Template Tag | Type name |
| Campaign | Campaign | Campaign | List box |
When the Type name "List box" is chosen, the "Display as" dropdown menu appears in the Options tab. Choose "Checkboxlist" in the dropdown.
The campaign product field is essential for the Ecommerce badges as the different campaigns are created in this field. You can read our documentation about those here.