Skip to content

Commit

Permalink
Merge pull request #471 from Shopify/create-weight-loss-category
Browse files Browse the repository at this point in the history
[HB] Create a category for weight loss
  • Loading branch information
ricardotejedorsanz authored Dec 4, 2024
2 parents 54f0b2f + f35c6bc commit e0735cc
Show file tree
Hide file tree
Showing 9 changed files with 580 additions and 0 deletions.
28 changes: 28 additions & 0 deletions data/categories/hb_health_beauty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@
- hb-1-9-4
- hb-1-9-5
- hb-1-9-6
- hb-1-9-7
attributes:
- dietary_preferences
- id: hb-1-9-1
Expand Down Expand Up @@ -555,6 +556,33 @@
- dietary_preferences
- flavor
- food_supplement_form
- id: hb-1-9-7
name: Weight Loss
children:
- hb-1-9-7-1
- hb-1-9-7-2
- hb-1-9-7-3
attributes: []
- id: hb-1-9-7-1
name: Weight Loss Supplements
children: []
attributes:
- detailed_ingredients
- dietary_preferences
- flavor
- food_supplement_form
- id: hb-1-9-7-2
name: Weight Loss Meal Replacements
children: []
attributes:
- detailed_ingredients
- dietary_preferences
- id: hb-1-9-7-3
name: Weight Loss Detox & Cleanse Products
children: []
attributes:
- detailed_ingredients
- dietary_preferences
- id: hb-1-10
name: Hearing Aids
children:
Expand Down
20 changes: 20 additions & 0 deletions data/integrations/google/2021-09-21/mappings/from_shopify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27877,6 +27877,26 @@ rules:
output:
product_category_id:
- '525'
- input:
product_category_id: hb-1-9-7
output:
product_category_id:
- '2890'
- input:
product_category_id: hb-1-9-7-1
output:
product_category_id:
- '525'
- input:
product_category_id: hb-1-9-7-2
output:
product_category_id:
- '2890'
- input:
product_category_id: hb-1-9-7-3
output:
product_category_id:
- '2890'
- input:
product_category_id: hb-1-10
output:
Expand Down
12 changes: 12 additions & 0 deletions data/localizations/categories/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16727,6 +16727,18 @@ en:
hb-1-9-6-10:
name: CBD Supplements
context: Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements > CBD Supplements
hb-1-9-7:
name: Weight Loss
context: Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss
hb-1-9-7-1:
name: Weight Loss Supplements
context: Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Supplements
hb-1-9-7-2:
name: Weight Loss Meal Replacements
context: Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Meal Replacements
hb-1-9-7-3:
name: Weight Loss Detox & Cleanse Products
context: Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Detox & Cleanse Products
hb-1-10:
name: Hearing Aids
context: Health & Beauty > Health Care > Hearing Aids
Expand Down
188 changes: 188 additions & 0 deletions dist/en/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -331994,6 +331994,10 @@
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-6",
"name": "Vitamins & Supplements"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"name": "Weight Loss"
}
],
"ancestors": [
Expand Down Expand Up @@ -333055,6 +333059,190 @@
}
]
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"level": 3,
"name": "Weight Loss",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss",
"parent_id": "gid://shopify/TaxonomyCategory/hb-1-9",
"attributes": [

],
"children": [
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-3",
"name": "Weight Loss Detox & Cleanse Products"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-2",
"name": "Weight Loss Meal Replacements"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-1",
"name": "Weight Loss Supplements"
}
],
"ancestors": [
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9",
"name": "Fitness & Nutrition"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1",
"name": "Health Care"
},
{
"id": "gid://shopify/TaxonomyCategory/hb",
"name": "Health & Beauty"
}
]
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-3",
"level": 4,
"name": "Weight Loss Detox & Cleanse Products",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Detox & Cleanse Products",
"parent_id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"attributes": [
{
"id": "gid://shopify/TaxonomyAttribute/1570",
"name": "Detailed ingredients",
"handle": "detailed-ingredients",
"description": "Lists specific components used in health and beauty, e.g. Vitamin C, probiotics",
"extended": false
},
{
"id": "gid://shopify/TaxonomyAttribute/1452",
"name": "Dietary preferences",
"handle": "dietary-preferences",
"description": "Helps identify products suitable for specific diets, e.g. vegan, nut free",
"extended": false
}
],
"children": [

],
"ancestors": [
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"name": "Weight Loss"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9",
"name": "Fitness & Nutrition"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1",
"name": "Health Care"
},
{
"id": "gid://shopify/TaxonomyCategory/hb",
"name": "Health & Beauty"
}
]
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-2",
"level": 4,
"name": "Weight Loss Meal Replacements",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Meal Replacements",
"parent_id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"attributes": [
{
"id": "gid://shopify/TaxonomyAttribute/1570",
"name": "Detailed ingredients",
"handle": "detailed-ingredients",
"description": "Lists specific components used in health and beauty, e.g. Vitamin C, probiotics",
"extended": false
},
{
"id": "gid://shopify/TaxonomyAttribute/1452",
"name": "Dietary preferences",
"handle": "dietary-preferences",
"description": "Helps identify products suitable for specific diets, e.g. vegan, nut free",
"extended": false
}
],
"children": [

],
"ancestors": [
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"name": "Weight Loss"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9",
"name": "Fitness & Nutrition"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1",
"name": "Health Care"
},
{
"id": "gid://shopify/TaxonomyCategory/hb",
"name": "Health & Beauty"
}
]
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-1",
"level": 4,
"name": "Weight Loss Supplements",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Supplements",
"parent_id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"attributes": [
{
"id": "gid://shopify/TaxonomyAttribute/1570",
"name": "Detailed ingredients",
"handle": "detailed-ingredients",
"description": "Lists specific components used in health and beauty, e.g. Vitamin C, probiotics",
"extended": false
},
{
"id": "gid://shopify/TaxonomyAttribute/1452",
"name": "Dietary preferences",
"handle": "dietary-preferences",
"description": "Helps identify products suitable for specific diets, e.g. vegan, nut free",
"extended": false
},
{
"id": "gid://shopify/TaxonomyAttribute/1458",
"name": "Flavor",
"handle": "flavor",
"description": "Specifies the taste or flavor of a product, e.g. vanilla, mint",
"extended": false
},
{
"id": "gid://shopify/TaxonomyAttribute/2963",
"name": "Food supplement form",
"handle": "food-supplement-form",
"description": "Specifies the format of a health supplement, such as liquid or tablets",
"extended": true
}
],
"children": [

],
"ancestors": [
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"name": "Weight Loss"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-9",
"name": "Fitness & Nutrition"
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1",
"name": "Health Care"
},
{
"id": "gid://shopify/TaxonomyCategory/hb",
"name": "Health & Beauty"
}
]
},
{
"id": "gid://shopify/TaxonomyCategory/hb-1-10",
"level": 2,
Expand Down
4 changes: 4 additions & 0 deletions dist/en/categories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5576,6 +5576,10 @@ gid://shopify/TaxonomyCategory/hb-1-9-6-6 : Health & Beauty > Health Care
gid://shopify/TaxonomyCategory/hb-1-9-6-7 : Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements > Multivitamin Supplements
gid://shopify/TaxonomyCategory/hb-1-9-6-8 : Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements > Protein Supplements
gid://shopify/TaxonomyCategory/hb-1-9-6-9 : Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements > Single Vitamins
gid://shopify/TaxonomyCategory/hb-1-9-7 : Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss
gid://shopify/TaxonomyCategory/hb-1-9-7-3 : Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Detox & Cleanse Products
gid://shopify/TaxonomyCategory/hb-1-9-7-2 : Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Meal Replacements
gid://shopify/TaxonomyCategory/hb-1-9-7-1 : Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Supplements
gid://shopify/TaxonomyCategory/hb-1-10 : Health & Beauty > Health Care > Hearing Aids
gid://shopify/TaxonomyCategory/hb-1-10-1 : Health & Beauty > Health Care > Hearing Aids > Behind-The-Ear (BTE) Hearing Aids
gid://shopify/TaxonomyCategory/hb-1-10-2 : Health & Beauty > Health Care > Hearing Aids > Body-Worn Hearing Aids
Expand Down
64 changes: 64 additions & 0 deletions dist/en/integrations/all_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -89205,6 +89205,70 @@
]
}
},
{
"input": {
"category": {
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss"
}
},
"output": {
"category": [
{
"id": "2890",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition"
}
]
}
},
{
"input": {
"category": {
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-1",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Supplements"
}
},
"output": {
"category": [
{
"id": "525",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements"
}
]
}
},
{
"input": {
"category": {
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-2",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Meal Replacements"
}
},
"output": {
"category": [
{
"id": "2890",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition"
}
]
}
},
{
"input": {
"category": {
"id": "gid://shopify/TaxonomyCategory/hb-1-9-7-3",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition > Weight Loss > Weight Loss Detox & Cleanse Products"
}
},
"output": {
"category": [
{
"id": "2890",
"full_name": "Health & Beauty > Health Care > Fitness & Nutrition"
}
]
}
},
{
"input": {
"category": {
Expand Down
Loading

0 comments on commit e0735cc

Please sign in to comment.