Skip Navigation

[Resolved] woocommerce product image url gives jquery output after update.

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#620553
Schermafbeelding 2018-02-28 om 15.17.18.jpg

I am trying to get an url for an woocommerce product. After updating to the new versions of wp views/types en woor-commerce views i get jquery output in the url. I just want the raw url.

i want an raw url.

This is my code:

<div class="img-prodloop-image-wrap overlay red" style="background-image:url([wpv-woo-product-image size="shop_single" output="raw" gallery_on_listings="no"])"></div>

This worked before the update. But now (after the update) the view generates the following code:

<div class="img-prodloop-image-wrap overlay red" style="background-image:url(hidden link

jQuery(window).load(function(){
jQuery('.woocommerce-product-gallery .flex-viewport').prepend('');
jQuery('a.woocommerce-product-gallery__trigger').hide();
});)"></div>

The url won't work.

Can you help me. The website is now broken.

#620627

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Patrick

I can't reproduce this, I suspect it relates to your theme.

Did you also recently update WooCommerce to version 3.x?

The product gallery code changed significantly with WC 3 and it became necessary to explicitly declare support for product galleries in the theme, as described here: hidden link

Can you check if your theme declares support for WC Galleries?