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!

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;
}
1 Like

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