Full Product description in feed – Shortcode request

Top WooCommerce & WordPress Plugins Forums Product XML Feeds for WooCommerce Full Product description in feed – Shortcode request

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #105577
    blankValdemir
    Guest

    Hello!

    I need to make a feed, where it has specific fields, all shortcodes meet me, minus 1. I need to insert the whole description of the product and not just the short description. How can I do it? Is there any specific shortcode for this?

    thankful

    Valdemir

    • This topic was modified 10 months, 2 weeks ago by blankOmar Dabbas.
    #105578
    blankTom Anbinder
    Moderator
    Plugin Support

    Hi Valdemir,

    Thanks for the idea. We’ve just released new plugin version 1.4.0. After update you can use new [alg_product_description] shortcode in your feed, e.g.:

    <description>[alg_product_description]</description>

    Also in v1.4.0 we’ve added more general [alg_product_function] shrotcode – you can get the description with this shortcode as well, e.g.:

    <description>[alg_product_function function="get_description"]</description>

    Hope that helps. Please let me know if something is not working correctly.

    P.S. If you like the plugin, please leave us a rating.

    #105579
    blankValdemir
    Guest

    Hello Tom Anbinder!

    I used the short description [alg_product_description] and also tried the shortcode [alg_product_function function = “get_description”] , and continue with the error.

    I already upgraded to version v1.4.0. You are loading the feed, but with error. Can you help me?

    The error that is showing the time that loads the feed is described below:

    This page contains the following errors:
    error on line 3167 at column 31: StartTag: invalid element name
    Below is a rendering of the page up to the first error.

    #105580
    blankTom Anbinder
    Moderator
    Plugin Support

    Hi Valdemir,

    Maybe you could give me the link to your generated XML file, or send it to me directly to [email protected]?

    #105581
    blankTom Anbinder
    Moderator
    Plugin Support

    In case if anyone else has similar issue – as we’ve figured out in private conversation – the problem was that inside a product description there were “less than” signs (e.g.: <20dBm...), which are incorrectly parsed as XML tags. Wrapping the shortcode in CDATA seems to solve the problem, i.e.:

    <description>&lt;![CDATA[ [alg_product_description] ]]></description>
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.