Showing attribute in feed

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105699
    Pat Brook
    Guest

    I want to have in my custom XML a “size” attibute set like:
    1

    The size is saved as a Woocommerce Product attribute.
    I can get this Product attribute with [alg_product_list_attribute name=”inhoud”]

    But if I use it like:
    1

    It does not generate the value (it generates: 1)

    How to set an XML attribute with an Product Attribute?

    • This topic was modified 1 year, 6 months ago by Omar Dabbas.
    #105700
    Pat Brook
    Guest

    The XML in my question was not correctly saved…. It should be:

    I want to have in my custom XML a “size” attribute set like:
    <bottles size=”[alg_product_list_attribute name=”inhoud”]”>1</bottles>

    The size is saved as a Woocommerce Product attribute.
    I can get this Product attribute with [alg_product_list_attribute name=”inhoud”]

    But if I use it like:
    <bottles size=&quot;[alg_product_list_attribute name=”inhoud”]&quot;>1</bottles>

    It does not generate the attribute value..

    How to set an XML attribute with an Product Attribute?

    #105701
    WPWhale
    Moderator

    Hi Pat,

    I think you just need to use this instead:

    &lt;bottles size="[alg_product_list_attribute name='inhoud']">1</bottles>

    Omar

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.