Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1233335

    Hi,
    I want to use “Default enfold product gallery” option, because not like woo 3.0 zoom effect.
    If I set this to default in Shop options, variation image switching stopped, but if set WooCommerce 3.0 product gallery, image switching working.
    Please help me, how to solve the problem.

    Enfold: 4.7.6.1
    Woocommerce: 4.3.1 (it didn’t work in previous versions either)
    PHP: 7.3.16

    #1233345

    Hey FRIGORIA,

    Yes, you need to use the WooCommerce gallery to be able to have variations.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1233346

    Hi Victoria,
    I don’t want to use the Woo gallery!
    I want to use variation images without image zoom,
    but with onclick it opens lightbox just like the default mode.

    #1234083

    Hi,

    Thank you for the update.

    Unfortunately, the variation image switch is only available in the Woocommerce gallery because the markup of the default one is different. If you want to disable the zoom effect, you can add this snippet in the fucntions.php file.

    remove_theme_support( 'wc-product-gallery-zoom' );
    

    You can also disable other functionality if necessary.

    // https://createandcode.com/how-to-disable-zoom-lightbox-and-gallery-slider-on-woocommerce-product-pages/

    Best regards,
    Ismael

    #1234105

    Hi,
    ok I understand, but this code has no effect.
    I placed in child theme functions.php, but nothing changed in zoom.
    Example: https://www.frigoriakiado.hu/termek/crosso-dry-60-kerekparos-csomagtartotaska-parban/
    Other solution for disable zoom icon, and to work on on click with lightbox?
    Best regards
    Laszlo

    #1234689

    Hi,
    Sorry for the late reply, I believe the code Ismael shared is to remove the zoom from the product image on a single product page.
    I checked the link above to your sample page and the product image is not zooming for me.
    Is it still zooming for you?
    Your items under “Érdekelhetnek még” still zoom, to correct that please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .thumbnail_container:hover {
        transform: scale(1) !important;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1235975

    Hi,
    We have successfully removed the zoom functionality by introducing this code snippet into child theme functions.php:
    //remove zoom function under single product image
    function remove_image_zoom_support() {
    remove_theme_support( ‘wc-product-gallery-zoom’ );
    }
    add_action( ‘wp’, ‘remove_image_zoom_support’, 100 );

    Thank you for your support.

    Best regards
    Laszlo

    #1236184

    Hi Laszlo,

    Great, I’m glad that you got things working and thanks for sharing. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.