Weird source code on my website

Hello,

When I updated my website to the latest PRO version, I noticed a weird source code.

Check it out below:

It is weird, that in older version… it doesn’t appear :confused:

Hello Katarina,

Thanks for writing in! Regretfully we cannot check the screenshot because it is not loading on my browser. Can you please send to us the actual error code in the secure note below? We would also love if you can give us your WP credentials so we can log in to your site.

Best Regards.

Hi Ruenel,

You can see the code here:
https://woocommerce.github.io/code-reference/files/woocommerce-templates-single-product-add-to-cart-variation.html

Hello There,

You mean this one:

<script type="text/template" id="tmpl-variation-template">
	<div class="woocommerce-variation-description">{{{ data.variation.variation_description }}}</div>
	<div class="woocommerce-variation-price">{{{ data.variation.price_html }}}</div>
	<div class="woocommerce-variation-availability">{{{ data.variation.availability_html }}}</div>
</script>
<script type="text/template" id="tmpl-unavailable-variation-template">
	<p>Sorry, this product is unavailable. Please choose a different combination.</p>
</script>

Please make sure to update your WordPress core, theme, and all your plugins, especially the WooCommerce-related plugin. We would also love to investigate further if the issue persists. Please provide us WP access.

Thank you.

Yes, that’s what I am talking about.

I will attach a temporary login for you below.

Have in mind that I haven’t updated WordPress to the latest version, because I saw there are some compatibility issues with your theme builder.

I have also made a backup, in case something goes wrong.

Hey Kate,

I’ve checked your website and the view page source but I couldn’t find the source code you’ve mentioned. I suspect that you have already fixed the issue. If that’s not the case, please let us know.

Thank you.

Hi Marc,

The code is still there, you probably checked my LIVE website instead of my STAGING.

From line 47 to 54

Hey Kate,

I deactivated all 3rd party plugins and the code is gone. Before reporting an issue to us, kindly test for a plugin conflict. Because of this discovery, we conclude that this is not a theme issue and our investigation ends here.

Thank you for understanding.

What plugin does this cause to appear?

Hey Kate,

Please follow the troubleshooting by deactivating all the plugins and then activate them one by one to find the culprit.

Hope that helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.