Hello,
Loving the new sliders and what we can do with them natively!
One question I do have, is there a way that we can make custom product images sliders using the X Pro slider to replace the woo commerce standard image gallery?
Cheers,
Jonathan
Hello,
Loving the new sliders and what we can do with them natively!
One question I do have, is there a way that we can make custom product images sliders using the X Pro slider to replace the woo commerce standard image gallery?
Cheers,
Jonathan
I just added a Dynamic Content statement to help with this. It will be in the official release. Configuration would go something like:
{{dc:woocommerce:product_gallery_ids}}
You won’t get 1:1 parity with what the WooCommerce product gallery can do, but this will at least let you automate access to the gallery images and pipe them into Sliders.
Hi @alexander!
I have tested it and it works great!
One thing came up though, and it looks like a bug.
I have assumed that if we want to use a lightbox with product gallery images, we would need to link them like this:
{{dc:woocommerce:product_image}}
However, this shows "> above the image on the front end, and the image is leading to 404. Here’s my test product gallery slider:
Thanks!
Hi @Misho,
How are you adding the lightbox? I’m not sure why it would be outputting broken HTML like that. Thanks!
Hi @alexander a related question, shall it be possble to use the Slider with WooCommerce:
Single Product (Related Products)
Single Product (Upsells)
Cart Cross Sells
Hi @alexander,
I have activated WP Featherlight, which turns into Lightbox any media that links to itself. However, the lightbox itself is not relevant: the error is present also with a deactivated plugin.
I don’t have any further code on the product layout. As soon as I paste the link, it creates the error.
No console errors.
Furthermore, if I do {{dc:woocommerce:featured_image}} the error is gone, but that one will just load the featured image into each of the slides.
Thanks!
@strobley, It would be possible if we had looper providers for those product queries, but that takes custom code at this time.
@Misho, thanks for confirming! I tried putting {{dc:woocommerce:product_image}} in the Link field and see the same issue. I’ve fixed this for the release. It’s trying to output an entire <img> tag instead of the Image URL.
Thanks @alexander and @Misho! This is brilliant that we can now have native product galleries for woo-commerce websites!
I was also just wondering if it’s also possible to have the slider pagination actually be the image thumbnail?
We don’t have anything to do this out of the box, but it’s possible with a bit of work to setup. You could use the data-x-slide-goto attribute on any element to cause it to jump to a particular slide index.
ah thanks @alexander, I thought about that custom attribute but just wanted to double-check there wasn’t another way.
Would there be a way for the data-x-slide-goto value to be automatically populated based on the number of images?
Try something like this:
data-x-slide-goto set to {{dc:looper:index}}
That should give you a way to click on a button in a list and trigger it move to a corresponding slide.