Forum Replies Created
-
AuthorPosts
-
I found the solution.
WPML > Theme and plugins localization > Scan stringsThis updated and added strings that I could add translations to.
Now its appearing properly in both languages.
Yes, I have the plugin and the strings have translations.
The problem is that the functions codes does not display the languages automatically.
I’ve already translated the individual strings so I don’t think a plugin will help. The code in functions overrides the French text.
I figure there must be a way to tweak the code.
I uploaded the updated theme and I cleared my history but my images still look blurry.
When I inspect the image sizes with Chrome, this is what it comes up with (rounded):
Catalog images 221 x 221 px
Single product image 320 x 320 px
Product thumbnails 108 x 108 pxIs this correct? The image only looks sharp when you see it full size.
Hi Victoria,
I changed the default image size settings, and regenerated thumbs, which seemed to do the trick (but they are still not quite as sharp as they used to be). I’m selling art, so it helps if the images look high quality.
Catalog images 300 × 300px Hard crop
Single product image 600 × 600px Hard crop
Product thumbnails 180 × 180px Hard cropDo you know if these are the actual default sizes from Woocommerce? I searched online and I found several sizes.
I regenerated my images, as suggested by Woocommerce, before finding the Maximus fix.
I followed all of the steps to the fix carefully, but my images are still blurry AF. I have a small limited number of plugins (WPML, Woocommerce, and Contact).
Will there by an update on this soon?
You are right!
I cleared my browser cache and voila – back to normal.
Thanks for your time!I’m not what size it’s at now in pixels, but its at least twice as large as the original default.
The artist names are over powering the images a bit:Thanks, it looks like I am not the only one:
https://kriesi.at/support/topic/enfold-woocommerce-product-title-change-size/
I tried the Quick CSS fix but it not work:
/* Product list */
.product h3 {
font-size:14px!important;
}/* Single product */
.summary entry-summary h1 {
font-size:18px!important;
}February 11, 2017 at 3:14 pm in reply to: Woocommerce Hide price, mark sold throughout website #745766Awesome, thanks so much Ismael – you’re the best!
February 10, 2017 at 3:16 pm in reply to: Woocommerce Hide price, mark sold throughout website #745442I hoping to change the text ‘Out Of Stock’ to ‘Sold’.
It’s artwork, so out of stock makes it sound like a mass produced product.
Everything else worked like a charm!
February 9, 2017 at 2:39 pm in reply to: Woocommerce Hide price, mark sold throughout website #744824And this little tweak does not work anymore, maybe there is a conflict?
}
add_filter( ‘woocommerce_get_availability’, ‘custom_get_availability’, 1, 2);
function custom_get_availability( $availability, $_product ) {
//change text “In Stock’ to ‘Available’
if ( $_product->is_in_stock() ) $availability[‘availability’] = __(‘Available’, ‘woocommerce’);//change text “Out of Stock’ to ‘Sold’
if ( !$_product->is_in_stock() ) $availability[‘availability’] = __(‘Sold’, ‘woocommerce’);
return $availability;
}February 9, 2017 at 2:37 pm in reply to: Woocommerce Hide price, mark sold throughout website #744823Is there a way to hide price when the product is sold?
When I remove the price manually, it does not show as a sold item..
Thanks for your help!
February 7, 2017 at 2:27 pm in reply to: Woocommerce Hide price, mark sold throughout website #743916Yes, all products are translated and some are listed as sold (example: Dil Hildebrand, painting).
I appreciate you taking a look!
February 6, 2017 at 2:07 pm in reply to: Woocommerce Hide price, mark sold throughout website #743364Thanks Ismael, I already modified the WMPL String Translation so I don’t think I need this plugin now.
The remaining issue is the “Out of Stock” message only appears on the English catalog page: https://www.lareventeart.com/en/
And the price is still listed when sold. I would like that to be removed in the event of a sale.
The out of stock message does not appear at all on the French catalog page: https://www.lareventeart.com/
Same issue with the price showing.
January 31, 2017 at 10:31 pm in reply to: Woocommerce Hide price, mark sold throughout website #740906Hi Basilis,
Is there any way to display sold on the French side as well?
And to remove the price when sold?
Thanks!
January 31, 2017 at 6:58 pm in reply to: Woocommerce Hide price, mark sold throughout website #740824It worked this time – thanks.
The only problem is that the price appears when item is “Out of stock”- on catalogue view and product view.
And the change only appears in English. I also have French (as the primary language) through WPML.
It would be nice to include this change as well:
add_filter( ‘woocommerce_get_availability’, ‘custom_get_availability’, 1, 2);
function custom_get_availability( $availability, $_product ) {
//change text “In Stock’ to ‘Available’
if ( $_product->is_in_stock() ) $availability[‘availability’] = __(‘Available’, ‘woocommerce’);//change text “Out of Stock’ to ‘SOLD OUT’
if ( !$_product->is_in_stock() ) $availability[‘availability’] = __(‘Sold’, ‘woocommerce’);
return $availability;
}January 30, 2017 at 6:46 pm in reply to: Woocommerce Hide price, mark sold throughout website #740347Thanks Yigt, I really appreciate your help.
When I add your code to functions.php, I run into this error:
Parse error: syntax error, unexpected ‘&’ in /lareventeart.com/wp-content/themes/enfold-child/functions.php on line 24
-
AuthorPosts