• Resolved tdutkowski

    (@tdutkowski)


    Hello,

    I’m trying to create custom feed with code.
    In the feed i need

    <p id="Ahmad Tea">

    <name>Ahmad Tea Ltd</name>

    <address>

    <countryCode>GB</countryCode>

    <street>Winchester Road</street>

    <postalCode>SO16 0YW</postalCode>

    <city>Southampton</city>

    </address>

    <contact>

    <email>[email protected]</email>

    <phoneNumber>+44 23 8074 0000</phoneNumber>

    </contact>

    </p>

    But when p element has id or any other sign it’s generate an error AttValue: ” or ‘ expected

    When i add sumple <p> it is working fine.

    Any idea how to add id to element?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mansary

    (@mansary)

    Hi @tdutkowski

    Could you please share the full custom tempalte 2 code which we can use on our end to replicate the issue?

    Thank you,

    Thread Starter tdutkowski

    (@tdutkowski)

    <?xml version="1.0" encoding="utf-8" ?>
    <offers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1">
    {{each product start}}
    <o id="{id}" url="{link}" price="{current_price}" avail="{wf_dattribute_dostepnosc}" stock="{wf_cattr__stock}" basket="{wf_dattribute_custom_basket}">
    <cat><![CDATA[{yoast_primary_category}]]></cat>
    <name><![CDATA[{title}]]></name>
    <imgs>
    <main url="{image}"/>
    <i url="{image_1}"/>
    <i url="{image_2}"/>
    <i url="{image_3}"/>
    </imgs>
    <desc><![CDATA[{short_description}]]></desc>
    <attrs>
    <a name="Marka"><![CDATA[{wf_taxo_pwb-brand}]]></a>
    <a name="EAN"><![CDATA[{wf_cattr__alg_ean}]]></a>
    <a name="Producent odpowiedzialny"><![CDATA[{wf_taxo_pwb-brand}]]></a>
    <a name="Podmiot odpowiedzialny"><![CDATA[{wf_taxo_pwb-brand}]]></a>
    </attrs>
    </o>
    {{each product end}}
    <responsibleProducers>
    <p id=Ahmad Tea>
    <name>Ahmad Tea Ltd</name>
    <address>
    <countryCode>GB</countryCode>
    <street>Winchester Road</street>
    <postalCode>SO16 0YW</postalCode>
    <city>Southampton</city>
    </address>
    <contact>
    <email>[email protected]</email>
    <phoneNumber>+44 23 8074 0000</phoneNumber>
    </contact>
    </p>
    </responsibleProducers>
    </offers>
    Plugin Support mansary

    (@mansary)

    Hi @tdutkowski

    Sorry! this template can’t be used to generate the feed.

    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom feed with id’ is closed to new replies.