IMPLEMENTED: WooCommerce Product Gallery tag missing?

Hi,

It would be good if you can create an image Slider or Gallery in Bricks, and populate the images from those uploaded in WooCommerce to the additional images fields. Input field as attached.

Apologies if I have missed this somehow.

Thank you!

1 Like

Hi. I don’t quite understand why there is no such necessary tag? :slight_smile:

I create code

function woo_product_images() {
 global $product; 
 $attachment_ids = $product->get_gallery_attachment_ids(); 
 return $attachment_ids;
}

and use as tag {echo:woo_product_images} in widget Image gallary

==================
IF all images

function woo_product_images() {
 global $product; 
 $attachment_ids = $product->get_gallery_attachment_ids();
 array_unshift($attachment_ids, $product->get_image_id());
 return $attachment_ids;
}
2 Likes

Hi, many thanks for posting on this. Works really well thank you :grinning:

Would never have figured this out otherwise.

Any thoughts what css could be used to place a border around the images?

I also keep asking myself this question. The standard Woo gallery constantly has some problems. It works, it doesn’t work :roll_eyes:

It would be nice to make support for adding product images in other elements: gallery, slider, etc.

1 Like

May i ask how you set this up as a slider?

I use the Carousel widget

Hi guys,

We’ve added this feature in Bricks 1.11 BETA, now available as a manual download (Bricks – Account)

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.11 Changelog – Bricks

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Best regards,
Matej