1
1
{%- layout none -%}
2
2
{%- paginate collection .products by 1000 -%}
3
3
{%- liquid
4
- # TODO: Shoe Size
5
4
# TODO: Richer item_name
6
- # TODO: Set item style name
7
5
assign brand_name = 'Manitobah'
8
6
assign update_delete = 'Update'
9
7
assign footwear_size_system = 'US Footwear Size System'
10
- assign footwear_size_class = 'Alpha '
8
+ assign footwear_size_class = 'Numeric '
11
9
assign currency_code = cart .currency .iso_code
12
10
-%}
13
11
TemplateType=fptcustom Version=2024.0502 Category=shoes TemplateSignature=U0xJUFBFUixTQU5EQUwsVEVDSE5JQ0FMX1NQT1JUX1NIT0UsU0hPRVMsQk9PVCxTSE9FX0FDQ0VTU09SWSxIQU5EQkFH settings=attributeRow=3&contentLanguageTag=en_CA&dataRow=4&feedType=113&headerLanguageTag=en_CA&isEdit=false&isProcessingSummary=false&labelRow=2&primaryMarketplaceId=amzn1.mp.o.A2EUQ1WTGCTBG2&reportProvenance=false&templateIdentifier=c01ab600-e6d4-4292-98c7-16e1da48eeac×tamp=2024-05-02T00%3A39%3A50.822Z " Use ENGLISH to fill in this template. DO NOT modify or delete the coloured header rows. To expand all optional columns, click the ""2"" button on the top left." Images Variation Discovery Product Enrichment Dimensions Fulfillment Compliance Offer
@@ -16,8 +14,9 @@ feed_product_type item_sku brand_name update_delete item_name product_descriptio
16
14
{%- comment -%}Need this here to add a line break{% endcomment %}
17
15
{%- for product in collection .products -%}
18
16
{%- liquid
19
- assign item_name = product .title | replace: ',' ,'' | remove: '"' | remove: "'" | remove: "," | strip_html | strip
20
- assign brand_name = product .vendor
17
+ assign model_name = product .title | replace: ',' ,'' | remove: '"' | remove: "'" | remove: "," | strip_html | strip
18
+ assign item_name = model_name
19
+ # assign brand_name = product.vendor
21
20
22
21
# Description
23
22
assign product_description = product .description | strip_html | strip_newlines | escape | remove: "," | truncate: 2000
@@ -44,20 +43,53 @@ feed_product_type item_sku brand_name update_delete item_name product_descriptio
44
43
endcase
45
44
46
45
# Clear product id type for Parent nodes
46
+ assign external_product_id = ''
47
47
assign external_product_id_type = ''
48
48
49
49
# Parent's Item SKU
50
50
assign item_sku = product .first_available_variant .sku | slice: 0 , 5
51
51
assign parent_child = 'parent'
52
52
assign parent_sku = ''
53
- assign relationship_type = 'Variation '
53
+ assign relationship_type = ''
54
54
assign variation_theme = 'color-size'
55
+
56
+ # Parent's Image
57
+ assign main_image_url = product .featured_image | image_url: width: 2000 | prepend: "https:"
58
+
59
+ # Parent's Recommended Browse Node
60
+ for option in product .options
61
+ if option == 'Size'
62
+ assign footwear_size = product .first_available_variant .options [forloop.index0]
63
+ endif
64
+ endfor
65
+ assign recommended_browse_nodes = 7141124011
66
+ if footwear_size contains 'Ladies'
67
+ case feed_product_type
68
+ when 'boot'
69
+ assign recommended_browse_nodes = 679380011
70
+ when 'slipper'
71
+ assign recommended_browse_nodes = 679433011
72
+ when 'shoes'
73
+ assign recommended_browse_nodes = 679337011
74
+ endcase
75
+ elsif footwear_size contains 'Mens'
76
+ case feed_product_type
77
+ when 'boot'
78
+ assign recommended_browse_nodes = 5658904011
79
+ when 'slipper'
80
+ assign recommended_browse_nodes = 679324011
81
+ when 'shoes'
82
+ assign recommended_browse_nodes = 679313011
83
+ endcase
84
+ endif
85
+ assign footwear_size = ''
86
+
55
87
-%}
56
88
{%- if product .variants .size > 1 -%}
57
89
{{ feed_product_type }} {{ item_sku }} {{ brand_name }} {{ update_delete }} {{ item_name }} {{ product_description }} {{ external_product_id }} {{ recommended_browse_nodes }} {{ external_product_id_type }} {{ model_number }} {{ sole_material }} {{heel_type}} {{item_type}} {{model_name}} {{part_number}} {{manufacturer}} {{heel_height_unit_of_measure}} {{ heel_height_string }} {{ footwear_size_system }} {{footwear_age_group}} {{footwear_gender}} {{footwear_size_class}} {{footwear_width}} {{footwear_size}} {{footwear_to_size}} {{footwear_gender_unisex}} {{footwear_width_unisex}} {{footwear_size_unisex}} {{footwear_to_size_unisex}} {{standard_price}} {{quantity_available}} {{outer_material_type}} {{model_year}} {{heel_height}} {{closure_type}} {{care_instructions}} {{target_gender}} {{age_range_description}} {{main_image_url}} {{other_image_url1}} {{other_image_url2}} {{other_image_url3}} {{other_image_url4}} {{other_image_url5}} {{other_image_url6}} {{other_image_url7}} {{other_image_url8}} {{swatch_image_url}} {{parent_child}} {{parent_sku}} {{relationship_type}} {{variation_theme}} {{style_name}} {{bullet_point1}} {{bullet_point2}} {{bullet_point3}} {{bullet_point4}} {{bullet_point5}} {{generic_keywords}} {{toe_style}} {{arch_type}} {{department_name1}} {{department_name2}} {{department_name3}} {{department_name4}} {{department_name5}} {{department_name6}} {{department_name7}} {{department_name8}} {{department_name9}} {{department_name10}} {{color_name}} {{color_map}} {{material_type}} {{fur_description}} {{pattern_type}} {{water_resistance_level}} {{lifestyle1}} {{lifestyle2}} {{lifestyle3}} {{lifestyle4}} {{lifestyle5}} {{special_features1}} {{special_features2}} {{special_features3}} {{special_features4}} {{special_features5}} {{item_type_name}} {{manufacturer_contact_information}} {{lining_description}} {{league_name}} {{lifecycle_supply_type1}} {{lifecycle_supply_type2}} {{lifecycle_supply_type3}} {{lifecycle_supply_type4}} {{lifecycle_supply_type5}} {{item_booking_date}} {{minimum_circumference_unit_of_measure}} {{seasons}} {{collection_name}} {{target_audience_keywords1}} {{target_audience_keywords2}} {{target_audience_keywords3}} {{target_audience_keywords4}} {{target_audience_keywords5}} {{pronation_correction}} {{special_size_type}} {{shaft_style_type}} {{catalog_number}} {{style_keywords}} {{team_name}} {{minimum_circumference}} {{is_stain_resistant}} {{country_as_labeled}} {{platinum_keywords1}} {{platinum_keywords2}} {{platinum_keywords3}} {{platinum_keywords4}} {{platinum_keywords5}} {{size_name}} {{shaft_circumference}} {{shaft_circumference_unit_of_measure}} {{is_autographed}} {{athlete}} {{weave_type}} {{shoulder_strap_drop}} {{shoulder_strap_drop_unit_of_measure}} {{occasion_type}} {{sport_type1}} {{sport_type2}} {{frame_material_type}} {{fit_type}} {{theme_theme}} {{included_components}} {{pattern_name}} {{subject_character}} {{duration_unit_of_measure}} {{duration}} {{flash_point_unit_of_measure}} {{has_builtin_light}} {{shaft_diameter}} {{shoe_safety_code_iso_20345}} {{surface_recommendation}} {{insole_type}} {{cleat_description}} {{cleat_material_type}} {{strap_type}} {{sub_brand_name}} {{shaft_diameter_unit_of_measure}} {{shoe_dimension_unit_of_measure}} {{legal_compliance_certification_certifying_authority_name}} {{legal_compliance_certification_geographic_jurisdiction}} {{opacity_unit_of_measure}} {{size_info_display_name}} {{sleeve_type}} {{fabric_wash}} {{height_map}} {{size_map}} {{liquid_volume}} {{liquid_volume_unit_of_measure}} {{item_display_width}} {{item_display_height_unit_of_measure}} {{item_display_width_unit_of_measure}} {{item_display_height}} {{maximum_circumference}} {{shoe_width}} {{maximum_circumference_unit_of_measure}} {{website_shipping_weight}} {{website_shipping_weight_unit_of_measure}} {{shaft_height}} {{platform_height}} {{item_length_unit_of_measure}} {{item_length}} {{item_width}} {{item_height}} {{shaft_height_unit_of_measure}} {{item_width_unit_of_measure}} {{item_height_unit_of_measure}} {{shoe_width_unit_of_measure}} {{capacity_unit_of_measure}} {{display_size}} {{display_size_unit_of_measure}} {{capacity}} {{fulfillment_center_id}} {{package_height}} {{package_width}} {{package_length}} {{package_length_unit_of_measure}} {{package_weight}} {{package_weight_unit_of_measure}} {{package_height_unit_of_measure}} {{package_width_unit_of_measure}} {{regulation_type1}} {{regulation_type2}} {{regulation_type3}} {{regulation_type4}} {{regulation_type5}} {{regulatory_compliance_certification_value1}} {{regulatory_compliance_certification_value2}} {{regulatory_compliance_certification_value3}} {{regulatory_compliance_certification_value4}} {{regulatory_compliance_certification_value5}} {{cpsia_cautionary_statement1}} {{cpsia_cautionary_statement2}} {{cpsia_cautionary_statement3}} {{cpsia_cautionary_statement4}} {{country_of_origin}} {{item_weight_unit_of_measure}} {{item_weight}} {{batteries_required}} {{are_batteries_included}} {{battery_cell_composition}} {{battery_type1}} {{battery_type2}} {{battery_type3}} {{number_of_batteries1}} {{number_of_batteries2}} {{number_of_batteries3}} {{battery_weight}} {{battery_weight_unit_of_measure}} {{number_of_lithium_metal_cells}} {{number_of_lithium_ion_cells}} {{lithium_battery_packaging}} {{lithium_battery_energy_content}} {{lithium_battery_energy_content_unit_of_measure}} {{lithium_battery_weight}} {{lithium_battery_weight_unit_of_measure}} {{supplier_declared_dg_hz_regulation1}} {{supplier_declared_dg_hz_regulation2}} {{supplier_declared_dg_hz_regulation3}} {{supplier_declared_dg_hz_regulation4}} {{supplier_declared_dg_hz_regulation5}} {{hazmat_united_nations_regulatory_id}} {{safety_data_sheet_url}} {{item_volume}} {{item_volume_unit_of_measure}} {{contains_liquid_contents}} {{legal_compliance_certification_expiration_date}} {{flash_point}} {{warranty_description}} {{legal_compliance_certification_date_of_issue}} {{external_testing_certification}} {{supplier_declared_material_regulation1}} {{supplier_declared_material_regulation2}} {{supplier_declared_material_regulation3}} {{legal_compliance_certification_metadata}} {{legal_compliance_certification_value}} {{ghs_classification_class1}} {{ghs_classification_class2}} {{ghs_classification_class3}} {{legal_disclaimer_description}} {{safety_warning}} {{fabric_type}} {{import_designation}} {{cpsia_cautionary_description}} {{legal_compliance_certification_regulatory_organization_name}} {{legal_compliance_certification_status}} {{list_price}} {{currency_code}} {{product_tax_code}} {{fulfillment_latency}} {{merchant_release_date}} {{restock_date}} {{sale_price}} {{sale_from_date}} {{sale_end_date}} {{offering_can_be_gift_messaged}} {{offering_can_be_giftwrapped}} {{map_price}} {{offering_end_date}} {{max_order_quantity}} {{merchant_shipping_group_name}} {{offering_start_date}} {{condition_type}} {{condition_note}} {{number_of_items}} {{product_site_launch_date}} {{max_aggregate_ship_quantity}} {{item_package_quantity}} {{is_discontinued_by_manufacturer}}
58
90
{%- endif -%}
59
91
{%- liquid
60
-
92
+
61
93
# Parent SKU
62
94
assign parent_sku = item_sku
63
95
assign parent_child = 'child'
@@ -71,12 +103,14 @@ feed_product_type item_sku brand_name update_delete item_name product_descriptio
71
103
{%- for variant in product .variants -%}
72
104
{%- liquid
73
105
106
+ # Reset values
74
107
assign item_sku = variant .sku
75
108
assign external_product_id = variant .barcode
76
- assign footwear_width = 'Medium '
109
+ assign footwear_width = ''
77
110
assign footwear_size = ''
78
111
assign color_name = ''
79
112
assign color_map = ''
113
+
80
114
# TODO: on sale logic
81
115
# assign sale_price = variant.price | money_without_currency
82
116
assign standard_price = variant .price | money_without_currency
@@ -90,44 +124,54 @@ feed_product_type item_sku brand_name update_delete item_name product_descriptio
90
124
if option == 'Color' or option == 'Colour'
91
125
assign color_name = variant .options [forloop.index0]
92
126
elsif option == 'Size'
93
- assign footwear_size = variant .options [forloop.index0]
127
+ assign variantSizes = variant .options [forloop.index0] | split: ' '
94
128
endif
95
129
endfor
96
130
97
- assign footwear_gender = 'unisex'
98
- assign target_gender = 'unisex'
99
- if footwear_size contains 'Ladies'
131
+ # Footwear size and gender values
132
+ assign footwear_gender_unisex = ''
133
+ assign footwear_size_unisex = ''
134
+ assign footwear_size = ''
135
+ assign target_gender = ''
136
+
137
+ assign footwear_size = variantSizes [1]
138
+
139
+ if variantSizes .first == 'Ladies'
100
140
assign footwear_gender = 'Women'
101
141
assign target_gender = 'Female'
102
- elsif footwear_size contains 'Mens'
142
+
143
+ if variantSizes .size > 2
144
+ assign footwear_gender_unisex = 'Men'
145
+ assign target_gender = 'Unisex'
146
+ assign footwear_size_unisex = variantSizes [4]
147
+ endif
148
+ elsif variantSizes .first == 'Mens'
103
149
assign footwear_gender = 'Men'
104
150
assign target_gender = 'Male'
105
151
endif
106
152
107
-
108
-
109
153
# Recommended Browse Nodes
110
154
assign recommended_browse_nodes = 7141124011
111
155
case feed_product_type
112
156
when 'boot'
113
- case target_gender
114
- when 'Female '
157
+ case footwear_gender
158
+ when 'Women '
115
159
assign recommended_browse_nodes = 679380011
116
- when 'Male '
160
+ when 'Men '
117
161
assign recommended_browse_nodes = 5658904011
118
162
endcase
119
163
when 'slipper'
120
- case target_gender
121
- when 'Female '
164
+ case footwear_gender
165
+ when 'Women '
122
166
assign recommended_browse_nodes = 679433011
123
- when 'Male '
167
+ when 'Men '
124
168
assign recommended_browse_nodes = 679324011
125
169
endcase
126
170
when 'shoes'
127
- case target_gender
128
- when 'Female '
171
+ case footwear_gender
172
+ when 'Women '
129
173
assign recommended_browse_nodes = 679337011
130
- when 'Male '
174
+ when 'Men '
131
175
assign recommended_browse_nodes = 679313011
132
176
endcase
133
177
endcase
@@ -137,6 +181,7 @@ feed_product_type item_sku brand_name update_delete item_name product_descriptio
137
181
assign model_number = variant .sku
138
182
assign outer_material_type = 'leather'
139
183
184
+ # Main Variant Image
140
185
if variant .image
141
186
assign main_image_url = variant .image | image_url: width: 2000 | prepend: "https:"
142
187
else
0 commit comments