Required Product Fields in Swift

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.

 

There are six required Product group fields. These are located in Settings -> Ecommerce -> Product catalog -> Product group fields.

Product Group Fields
Field Name System Name Template Tag Field Type
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. 

There is one Product field that is required for Swift. It is located in Settings -> Ecommerce -> Product catalog -> Product fields.
 

Product Fields
Field Name System Name Template Tag Field Type
Campaign Campaign Campaign List box

When the Field type "List box" is chosen, the "Display as" dropdown menu apears. 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