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

    William L
    Participant

    Hi,

    I changed the product thumbnail size in Woocommerce > Settings > Product to 50px x 50px – but it appears to remain at 300 px x 300px.

    Does the X-theme have product thumbnails size settings in a different area in the admin panel?

    #102026

    Cousett
    Member

    No these settings are specific to Woocommerce. Try running the Force Regenerate Thumbnails which will regenerate everything and should switch the settings.

    #115863

    v360
    Participant

    http://lugtagz.com/store/

    Some of my products are not showing up. I see a slit instead of a thumbnail PLEASE ADVISE

    #115886

    Cousett
    Member

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have have provided us with your URL, we will be happy to assist you with everything.

    Please run Force Regenerate Thumbnails and then please clear your browser cache so it forces everything to load from scratch.

    #116245

    William L
    Participant
    This reply has been marked as private.
    #116289

    Zeshan
    Member

    Hi William,

    Thank you for writing in!

    Please try adding the following code in your child theme’s functions.php file:

    function x_woocommerce_shop_thumbnail2() {
    
      GLOBAL $product;
    
      $stack            = x_get_stack();
      $stack_thumb      = 'shop_catalog_image_size';
      $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>";
    
    }
    
    add_filter('init', function() {
    
       remove_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail', 10 );
    
    });
    
    add_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail2', 10 );
    

    Hope this helps. 🙂

    Thank you.

    #120449

    William L
    Participant

    Unfortunately not – I also force regenerated the thumbnails and nothing happened. Please note, I have set the woocommerce product thumbnails to 50×50

    #120709

    Zeshan
    Member

    Hi William,

    Thank you for writing in!

    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.

    Thanks!

    #121996

    William L
    Participant
    This reply has been marked as private.
    #122352

    Zeshan
    Member

    Hi William,

    Thank you for writing in!

    Please use the following code instead of the one provided above:

    // =============================================================================
    // WooCommerce Short Thumbnail size change 
    // =============================================================================
    
    function x_woocommerce_shop_thumbnail2() {
    
      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>";
    
    }
    
    add_filter('init', function() {
    
       remove_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail', 10 );
    
    });
    
    add_action( 'woocommerce_before_shop_loop_item_title', 'x_woocommerce_shop_thumbnail2', 10 );
    

    Please regenerate thumbnails after updating the template file.

    Hope this helps. 🙂

    Thank you.

    #122905

    William L
    Participant

    UPDATE: Nevermind – all working.

    I tried regenerating, and was provided this error for each image:
    function (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}

    I have commented out the code to see if it would fix it, but nope.

    #123182

    Cousett
    Member

    Hi I am sorry I am not understanding. Is everything now working as expected? I ran the regenerate and it looks like it is coming back just fine.

    #128372

    William L
    Participant

    It’s working fine now . thank you

    #128462

    Paul R
    Moderator

    You’re welcome. 🙂

    #364703

    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 …??