• Resolved swarnat

    (@swarnat)


    Hy,
    I encounter an issue by our Sentry instance:

    When a product is sold our, the $product->get_price() is empty, which result into an JS Error, “unexpected }”.

    Recommended to surround this with floatval, like:

    \'ecomm_totalvalue\': ' . floatval($product->get_price()) . '
    File wgdr.php line 591
    I don’t found plugin on Github. Otherwise I had push a MR.

    Thanks!

    Regards,
    Stefan

Viewing 1 replies (of 1 total)
  • Plugin Author alekv

    (@alekv)

    I pushed out a new version which will deal with that problem in case a product doesn’t have a price.

    But, I don’t understand why no price is set on a product…

Viewing 1 replies (of 1 total)
  • The topic ‘ecomm_totalvalue no value’ is closed to new replies.