Код для выгрузки XML для opencart 2.3
Требования https://rozetka.com.ua/sellerinfo/pricelist/
Нужен код для формирования xml прайса
Код вот такого формата
{{date}}
Мой магазин
Идентификатор магазина
{% for category in categories%}
{{category.id}}
{% if category.parentId %}
{{category.parentId}}
{% endif %}
{{category.name}}
{% endfor %}
{% for offer in offers%}
{{offer.id}}
{{offer.url}}
{{offer.price}}
В наличии
12 месяцев, от производителя
12 месяцев
{% if offer.oldprice %}{{offer.oldprice}}{% endif %}
{{offer.categoryId}}
{{offer.code}}
{{offer.code}}
{{offer.name}}
{{offer.description}}
{{offer.vendor}}
{% for image in offer.image %}
{{image}}
{% endfor %}
{% for attribute in offer.attributes %}
{{attribute.value}}
{% endfor %}
{% endfor %}