Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1444549

    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.

    #1444565

    Hey Aubin,
    Please ensure that you have Enfold Theme Options ▸ Shop Options ▸ Product gallery ▸ WooCommerce 3.0 product gallery enabled
    Enfold Support 5875

    Best regards,
    Mike

    #1444604

    Perfect..
    Thanks

    #1444606

    Hi,
    Glad that we could help.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Product image and product gallery’ is closed to new replies.