Hi Teacher,
To add variable product , After following this step suggested by Ismail, I added more image in product gallery. this is work fine. Thanks Ismael.
Hi,
Thanks for chiming in. You can create a custom shortcode that renders the default product gallery. Add this code in the functions.php file.
add_shortcode( ‘avs_product_gallery_hook’, ‘avs_product_gallery_hook_callback’ );
function avs_product_gallery_hook_callback( $atts ) {
ob_start();
woocommerce_show_product_images();
$content = ob_get_clean();
return $content;
}
Edit a product, switch to the advance builder and in a text or code block, add the shortcode.
[avs_product_gallery_hook]
Best regards,
Ismael
However when adding the product image, they don’t work. I don’t see the variable product. https://nodem-it.com/shop/toner-dorigine-ricoh-mp-c3501/
Does this work without adding product image ? or
How to do in order to have both product image and product gallery work together in variable product ?
Thanks for your support.
Hey Aubin,
Please ensure that you have Enfold Theme Options ▸ Shop Options ▸ Product gallery ▸ WooCommerce 3.0 product gallery enabled
Best regards,
Mike
Perfect..
Thanks