• Resolved DensitySK

    (@densitysk)


    HI,

    while creating a Facebook feed I have noticed a facebook error message that some of my items have too many decimal numbers – instead of 84,00 the value is 84,0000000054

    This is happening on Product Bundle items created via the official Woocommerce product bundle plugin that has an option to calculate the price based on the sum of all components. If there is a component that has a discount in percentage applied to it, the result is a long number with many decimal spaces as above – even though Woocommerce correctly displays all shop prices only with two decimals as set by shop admin

    Example XML feed source

    <item>
    <g:id>2254</g:id>
    <g:availability>in stock</g:availability>
    <g:condition>New</g:condition>
    <g:description>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</g:description>
    <g:image_link>https://www.XXXX.sk/wp-content/uploads/XXXXXXXXXXXXXXXXX.jpg</g:image_link&gt;
    <g:link>https://www.XXXXX.sk/product/XXXXXXXXXXXXXXXXXXXXXXXXXXX/?utm_source=Facebook Catalog Feed / Instagram&utm_campaign=Facebook Feed&utm_medium=cpc&utm_term=2254</g:link>
    <g:title>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</g:title>
    <g:price>EUR 85,000029</g:price>
    <g:brand>XXXXXXXXXXXXXXXXXXXX</g:brand>
    <g:google_product_category>296</g:google_product_category>
    <g:mpn>XXXXXXXXXXXXXX</g:mpn>
    <g:shipping_weight>0.14</g:shipping_weight>
    <g:identifier_exists>yes</g:identifier_exists>
    </item>

    Do you have a soulution for that?

    Kind regards
    Michal

Viewing 16 replies (of 16 total)
Viewing 16 replies (of 16 total)
  • The topic ‘Limit Feed decimal places on prices’ is closed to new replies.