-
AuthorPosts
-
September 10, 2014 at 9:15 am #102016
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?
September 10, 2014 at 9:25 am #102026No these settings are specific to Woocommerce. Try running the Force Regenerate Thumbnails which will regenerate everything and should switch the settings.
September 30, 2014 at 2:37 pm #115863Some of my products are not showing up. I see a slit instead of a thumbnail PLEASE ADVISE
September 30, 2014 at 3:04 pm #115886Thanks 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.
October 1, 2014 at 6:35 am #116245This reply has been marked as private.October 1, 2014 at 7:43 am #116289Hi 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.
October 7, 2014 at 4:58 am #120449Unfortunately not – I also force regenerated the thumbnails and nothing happened. Please note, I have set the woocommerce product thumbnails to 50×50
October 7, 2014 at 12:13 pm #120709Hi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
October 9, 2014 at 4:13 am #121996This reply has been marked as private.October 9, 2014 at 10:58 am #122352Hi 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.
October 10, 2014 at 6:15 am #122905UPDATE: 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.
October 10, 2014 at 12:58 pm #123182Hi 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.
October 20, 2014 at 5:11 am #128372It’s working fine now . thank you
October 20, 2014 at 7:51 am #128462You’re welcome. 🙂
August 20, 2015 at 4:33 pm #364703hmm – i just installed Wp, x, child, woocommerce all from the scratch
i miss now _all_ size settings in the wc-setting-product-display page …?? -
AuthorPosts