Ask a Question

Ask a Question
Back to All

Problem with Meal Deal (with Nested Modifiers)

I did the synchronization of meal deal (with nested modifiers)

The synchronization completed correctly, but when I assign it to my menu and preview it on the Deliverec page, it doesn't work properly.

I attach my products payload:

[
  {
    "productType": 1,
    "plu": "HC01",
    "price": 17900,
    "name": "HAPPY COMBO 01",
    "description": "HAPPY COMBO 01",
    "imageUrl": null,
    "deliveryTax": 100,
    "posProductId": "2012008",
    "posCategoryIds": ["COMBOS"],
    "productTags": [17,1000],
    "subProducts": ["2030008","2031008","2032008"],
    "isVariant": 0,
    "isVariantGroup": 0,
    "isCombo": 1,
  },
	{
    "productType": 4,
    "plu": "2032008",
    "price": 0,
    "name": "Selecciona tu BEBIDA",
    "description": "",
    "imageUrl": null,
    "deliveryTax": 0,
    "posProductId": "2032008",
    "posCategoryIds": ["Seleccion"],
    "productTags": [],
    "min": 1,
    "max": 1,
    "subProducts": ["COCAREG"],
    "isVariant": 0,
    "isVariantGroup": 0,
    "isCombo": 0,
  },
  {
    "productType": 4,
    "plu": "2030008",
    "price": 0,
    "name": "Selecciona tu WRAP",
    "description": "",
    "imageUrl": null,
    "deliveryTax": 0,
    "posProductId": "2030008",
    "posCategoryIds": ["Seleccion"],
    "productTags": [],
    "min": 1,
    "max": 1,
    "subProducts": ["WRPJACKH"],
    "isVariant": 0,
    "isVariantGroup": 0,
    "isCombo": 0,
  },
  {
    "productType": 4,
    "plu": "2031008",
    "name": "Selecciona tu GALLETA",
    "description": "",
    "imageUrl": null,
    "deliveryTax": 0,
    "posProductId": "2031008",
    "posCategoryIds": ["Seleccion"],
    "productTags": [],
    "min": 1,
    "max": 1,
    "subProducts": ["GALCHC"],
    "isVariant": 0,
    "isVariantGroup": 0,
    "isCombo": 0,
  },
  {
    "productType": 1,
    "plu": "COCAREG",
    "price": 3200,
    "name": "Coca Cola",
    "description": "",
    "imageUrl": null,
    "deliveryTax": 100,
    "posProductId": "41001",
    "posCategoryIds": [5001],
    "productTags": [17,1000],
    "min": 0,
    "max": 0,
    "isVariant": 0,
    "isVariantGroup": 0,
    "isCombo": 0,
  },
  {
    "productType": 1,
    "plu": "WRPJACKH",
    "price": 14900,
    "name": "WRAP JACK H",
    "description": "",
    "imageUrl": null,
    "deliveryTax": 100,
    "posProductId": "7106108",
    "posCategoryIds": ["WRAPS"],
    "productTags": [17,1000],
    "min": 0,
    "max": 0,
    "subProducts": ["HAPPY-EXTRAS","ADEREZO"],
    "isVariant": 0,
    "isVariantGroup": 0,
    "isCombo": 0,
  },
	// Nested modifiers etc
]

The synchronization is done correctly but when selecting the products in the preview I can select 0 or more than 1, even when I am specifying min = 1 and max = 1

As you can see, I can add to the cart without adding anything.

If I check from the Deliverec platform, I can't see that type of product (type 4)

I can only see and modify them from the main product

and you can see min, max configuration is not correctly

Could you help me with this problem?