Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #291950

    B L
    Participant

    I cannot find an option or instructions anywhere that allows you to change the size of product thumbnails in the woocommerce setup of ‘X’. Can someone point me in the right direction please?

    Thank you!

    #292229

    Darshana
    Moderator

    Hi there,

    Thanks for writing in!

    Please setup a child theme first (https://community.theme.co//kb/how-to-setup-child-themes/). Then, if you wish to use woocommerce saved dimension, then you have to add this code at your child theme’s functions.php file.

    add_action('init', 'default_woocommerce_thumbnails', 99 );
    
    function default_woocommerce_thumbnails() {
    remove_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail', 10 );  
    add_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail_v2', 99 );
    }
    
    function x_woocommerce_shop_thumbnail_v2() {
    
      GLOBAL $product;
    
      $stack            = x_get_stack();
      $stack_thumb      = 'shop_catalog';
      $stack_shop_thumb = $stack_thumb;
      $id               = get_the_ID();
      $rating           = $product->get_rating_html();
    
      woocommerce_show_product_sale_flash();
      echo '<div class="entry-featured">';
        echo '<a href="' . get_the_permalink() . '">';
          echo get_the_post_thumbnail( $id , $stack_shop_thumb );
          if ( ! empty( $rating ) ) {
            echo '<div class="star-rating-container aggregate">' . $rating . '</div>';
          }
        echo '</a>';
      echo "</div>";
    
    }

    Hope that helps.

    #296244

    B L
    Participant

    Thanks for the reply but I still haven’t got Child Themes fully understood yet, beginner. I figured though that resizing the images manually actually causes the outlay to resize everything, that worked. thank you for the prompt reply though. Any chance you can take a look at my latest rant? 🙂

    https://community.theme.co//forums/topic/woocommerce-checkout-page-not-working-when-clicked-ideas/

    Thanks again!

    #296700

    Christopher
    Moderator

    Hi there,

    I have already answered your question in that thread, please follow the thread and let us know how it goes.

    Thanks.

    #319043

    Jai S
    Participant

    Hi,

    I had the same issue and tried the code, which was great and allowed me to use the woocommerce saved dimension however then my AJAX add to cart functionality all disappeared even though “Enable AJAX add to cart buttons on archives” is still checked in my settings. I’m also not sure what other functions it would have broken as well.

    Any ideas?

    Thanks!

    #319289

    Darshana
    Moderator

    @jsharma

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #364704

    hawa2015
    Participant

    hmm – i just installed Wp, x, child, woocommerce all from the scratch
    i miss now _all_ size settings in the wc-setting-product-display page …??

    #364936

    Rue Nel
    Moderator

    Hey @hawa2015,

    Thanks for updating this thread! It looks like you have posted a separate thread for your issue. We will be responding on that thread instead.

    Thank you.

    #365827

    hawa2015
    Participant
    #365914

    Rue Nel
    Moderator

    Hello There,

    Yes, on that topic. We asked for your site details and we are awaiting your reply. Please supply the site info in that topic instead.

    Thank you.

    #366159

    hawa2015
    Participant
    This reply has been marked as private.
    #366372

    Rue Nel
    Moderator

    Hello There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site

    – WordPress Admin username / password
    
– FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.