L
L
LastGeneral2021-06-19 18:22:50
WordPress
LastGeneral, 2021-06-19 18:22:50

How to resize Woocomerce product image?

The output image of the product in the size of 150x150, how can I change it? Quality is so bad

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
LastGeneral, 2021-06-21
@LastGeneral

Maybe someone will be useful infa!
I do not have in WooCommerce -> Settings -> Product tab "Display"
And in Appearance -> Customize -> WooCommerce -> Product Images there is no choice of exact size.
Perhaps this is related to the topic, not the point. I found in inc -> woocommerce.php this is a piece of code and just put in my values ​​instead of 150 and 300

add_theme_support(
    'woocommerce',
    array(
      'thumbnail_image_width' => 150,
      'single_image_width'    => 300,
      'product_grid'          => array(
        'default_rows'    => 3,
        'min_rows'        => 1,
        'default_columns' => 4,
        'min_columns'     => 1,
        'max_columns'     => 6,
      ),
    )
  );

I
Ivan765, 2021-06-19
@Ivan765

In the admin panel go to WooCommerce -> Settings;
Click the "Products" tab;
Click "Display";
Scroll down to "Product Image";
Enter your width and height values ​​in the Single Product Image field;
Click Save Changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question