• Resolved sethcris

    (@sethcris)


    I have 3.3.1 WooCommerce, WordPress 4.9.5 .
    I know,You may say update first to 3.3.5,but the thing is I just had this issue after last woocommerce update,and my confidence in woo updates is completely demolished.

    So the problem is: I can’t get squared product gallery thumbnails no matter what I do:
    Tried:
    1.Settings-Media-thumbnails 300 h and w, and crop check
    Regenerated thumbnails via plugin
    No effect,size still rectangle
    2. Appearance>Customize>WooComerce>picture size,set 300, ratio 1:1
    No effect,size still rectangle
    3. in functions php:
    add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, ‘ci_theme_override_woocommerce_image_size_gallery_thumbnail’ );
    function ci_theme_override_woocommerce_image_size_gallery_thumbnail( $size ) {
    // Gallery thumbnails: proportional, max width 300px
    return array(
    ‘width’ => 300,
    ‘height’ => 300,
    ‘crop’ => 1,
    );
    }
    No effect,size still rectangle

    4.I’ve deleted all my pictures used in the shop
    cleaned the medial library with Media Cleaner plugin
    re-uploaded few pictures with settings already done in above steps :300×300

    No effect,size still rectangle

    Please help me sorting it out,I only see square thumbnails in Admin product edit page,but in public frontend single product I simply CAN’t change the shape to even sides,and CAN’t get cropped version of the pic

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter sethcris

    (@sethcris)

    btw more extensive testing showed the Appearance-Customize-Woo-Prod Immages only change pictures from archive view,not in single page galery

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hey @sethcris,

    Can you tell us if the active theme is applying overrides to WooCommerce Templates? You can find these on the Status page under WooCommerce > Status within the WP Admin.

    If so, you’ll want to reach out to the theme author for support. You can confirm this by also switching back to a default theme like Twenty Seventeen or Storefront and disabling all plugins except for WooCommerce to see if this resolves the issue.

    Thread Starter sethcris

    (@sethcris)

    Disabling all plugins, yes, done this allready before opening topic here. no effect.
    You sugestion sounds nice, so this is what I have:

    1) In the the WooCommerce > Status within the WP Admin, I find these overrides:

    borderland/woocommerce/content-product.php,
    this contains : data-rel=”prettyPhoto[single_pretty_photo]”
    which is the JS used by WooComerce when clicking the thumbnails to be displayed bigger in a lightbox

    2) borderland/woocommerce/content-single-product.php,

    3) But the one under our problem I assume is product-thumbnails.php. which is used by Woocomerce itself not the theme

    So this thumbnails setting is where set by woocomerce?? IN which template? By my understanding is supposed to be in the 3) listed above, which is original , not overridden by the theme

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Those overrides look okay, but I’d still recommend temporarily switching to the Twenty Seventeen theme to see if you can modify the image sizes correctly there, without any modifications.

    Can you please let us know?

    • This reply was modified 6 years, 10 months ago by Hannah S.L.. Reason: formatting
    Thread Starter sethcris

    (@sethcris)

    Hi Hannah, yes, I see. TS Theme does the job.
    Now we know .

    But please let me know which is the core file and function of WooComerce which is taking care about these picture sizes? Is it in product-image.php ?

    Thread Starter sethcris

    (@sethcris)

    So theme was searching for things that woo changed in the new version

    $our_html .= wp_get_attachment_image( $attachment_id, ‘shop_single’, false, $attributes );

    therefore
    $our_html .= wp_get_attachment_image( $attachment_id, ‘woocommerce_thumbnail’, false, $attributes );

    and woo introduced from 3.3 that product-thumbnails.php , which I was need it in the theme

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    That’s correct – thanks for sharing that here!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Another Product Galery thumbnails size issues’ is closed to new replies.