• Resolved victorpietro

    (@victorpietro)


    Hi, I’ve found out a bug that is affecting a couple of ecommerces that I use PixelYourSite plugin (which is great, by the way).

    When you are inside a WooCommerce single product and there is a related products page, there is a /* */ being printed below the related product.

    After further investigation, I have discovered that the problem is in pixelyoursite/includes/class-events-manager.php.

    The problem is on line 389:

    /* <![CDATA[ */
                window.pysWooProductData = window.pysWooProductData || [];
                window.pysWooProductData[ <?php echo $product_id; ?> ] = <?php echo $params; ?>;
    /* ]]> */

    I can quickfix it by removing the /* */, but it comes back after every plugin update.

    Could you remove it from the source code, please?

    Here is a photo of it happening, just below the “COMPRAR” (buy) button.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author PixelYourSite

    (@pixelyoursite)

    @victorpietro

    Please watch this video: https://www.youtube.com/watch?v=oZoAu8a0PNg

    Change the current settings and check if the problem goes away.

    The issue is triggered by a theme or a plugin that doesn’t use WooCommerce ATC hooks or classes the right way.

    Thread Starter victorpietro

    (@victorpietro)

    Hi @pixelyoursite, thanks for your answer.

    The video was helpful, changing the “When to fire the add to cart event” setting from “Button’s classes” to “WooCommerce Hooks” has fixed the issue.

    Plugin Author PixelYourSite

    (@pixelyoursite)

    Thanks for the update.

    Maybe it should be:

    		<div style="display:none; visibility:hidden;">
    		<script type="application/javascript">
                /* <![CDATA[ */
                window.pysWooProductData = window.pysWooProductData || [];
                window.pysWooProductData[ <?php echo $product_id; ?> ] = <?php echo $params; ?>;
                /* ]]> */
    		</script>
    		</div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BUG: plugin prints text: “/* */” below a related product in a WC product page’ is closed to new replies.