Измените эту строку в product-image.php
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s" data-rel="prettyPhoto' . $gallery . '">%s</a>', $image_link, $image_title, $image ), $post->ID );
to
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '%s', $image ), $post->ID );
а в файле product-thumbnails.php
изменить
echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '<a href="%s" class="%s" title="%s" data-rel="prettyPhoto[product-gallery]">%s</a>', $image_link, $image_class, $image_title, $image ), $attachment_id, $post->ID, $image_class );
to
echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '<a title="%s">%s</a>', $image_title, $image ), $attachment_id, $post->ID, $image_class );
Выполнение вышеуказанного должно удалить возможность щелкнуть изображение и увеличить его.
11.04.2014
/wp-content/themes/your-theme/woocommerce/single-product/product-image.php
так она продержится дольше следующего обновления. Может быть, это неявно для некоторых, но я думаю, что это важно упомянуть. 31.03.2020