Files
kupshop/bundles/KupShop/FeedGeneratorBundle/Resources/exampleConfiguration.json
2025-08-02 16:30:27 +02:00

166 lines
4.2 KiB
JSON

{
"beginning": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<catalog>",
"end": "</catalog>",
"nodes": [
{
"type": "element",
"nodes": [
{
"type": "element",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "name"
},
{
"type": "condition",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "' ' + color"
}
],
"value": "color"
},
{
"type": "condition",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "' ' + data.something"
}
],
"value": "data.something"
}
],
"value": "title"
},
{
"type": "condition",
"nodes": [
{
"type": "element",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "ucfirst(color)"
}
],
"value": "color"
}
],
"value": "color in ['green', 'blue']"
},
{
"type": "element",
"nodes": [
{
"type": "attribute",
"nodes": [
{
"type": "value",
"nodes": [],
"value": "cs"
}
],
"value": "lang"
},
{
"type": "condition",
"nodes": [
{
"type": "attribute",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "color"
}
],
"value": "colorattribute"
}
],
"value": "color"
},
{
"type": "expression",
"nodes": [],
"value": "name"
}
],
"value": "someelement"
},
{
"type": "condition",
"nodes": [
{
"type": "element",
"nodes": [
{
"type": "cycle",
"nodes": [
{
"type": "element",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "param"
}
],
"value": "repeated_element"
}
],
"value": "parameters/param",
"accessName": "param"
}
],
"value": "params"
}
],
"value": "parameters.param"
},
{
"type": "cycle",
"nodes": [
{
"type": "condition",
"nodes": [
{
"type": "element",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "delivery.name"
}
],
"value": "delivery_name"
},
{
"type": "element",
"nodes": [
{
"type": "expression",
"nodes": [],
"value": "delivery.price"
}
],
"value": "delivery_price"
}
],
"value": "delivery.price >= 5.1"
}
],
"value": "/items/deliveries/delivery",
"accessName": "delivery"
}
],
"value": "product"
}
]
}