Given a single data field that contains multiple attributes joined together, Athos Commerce has the ability to extract this into individual fields to be used for in your Field Settings. However, your data entry must follow a consistent pattern. Consider the example below:
CPU:3GHz|RAM:6GB|Cores:4|Case:Micro|Lifestyle:Gaming|Series:Aspire|Form Factor:Tower|CPU Brand:Intel|HD Size:2TB|Memory Speed:DDR4|OS:MacFrom this one data field assignment from your feed, we split each pairing and define a new field based on the first part of the pattern:
- product_specs_cpu => 3GHz
- product_specs_ram => 6GB
- product_specs_cores => 4
- product_specs_lifestyle => Gaming
- product_specs_series => Aspire
- product_specs_form_factor => Tower
- product_specs_cpu_brand => Intel
- product_specs_hd_size => 2TB
- product_specs_memory_speed => DDR4
- product_specs_os => Mac
Tip: You are not required to use Name:Value|Name:Value|Name:Value as the pattern from the example above; you may use any separating characters here as long as your pattern is consistent. For example, this would also be valid:
CPU = 3GHz##RAM = 6GB##Cores = 4##Case = Micro##Lifestyle = GamingTip: To define which attribute names that Athos extracts from this pattern, we can either hardcode the field list definition for you, or you can send us a hosted URL to a TXT file that defines your field names, one name per line: see attached example below. We recommend providing us this TXT file, as you will then have full control of future updates to this definition versus needing Athos Support to modify the hardcoded definition for you.
Comments
0 comments
Article is closed for comments.