max3w
Forum Replies Created
-
Forum: Plugins
In reply to: [Permalink Manager for WooCommerce] Permalink Manager + PolylangIf I remove the language prefix in the polylang settings, then everything works! By this we can say that the problem was solved in this way.
Forum: Plugins
In reply to: [Images to WebP] Hello, a question about prefixes for jpg.webp imagesYou are right, and you probably haven’t seen anything like this, but I managed to get to the bottom of it.
Original picture: https://masmaster.com.ua/logo-f30dd146.webp ok!
The same picture but with the name: https://masmaster.com.ua/logo-f30dd146.jpg.webp – is given to the browser as .jpg! (while saving the right one, save as) – this is a hoster’s bug most likely.Or maybe it is possible not to generate images with the name .jpg.webp?
Is there any disable cashback function?
I plan to use when checking:// Only for Local pickup chosen shipping method if ( strpos( $chosen_shipping_method_id, 'local_pickup' ) !== false ) { // disable cashback? }Forum: Plugins
In reply to: [Images to WebP] Hello, a question about prefixes for jpg.webp imagesThanks for the quick reply, the problem is not in missing images (this was probably an isolated case), but in the fact that after conversion some of the images are not shown. Please check the webp picture:
https://eventum.market/wp-content/uploads/2020/05/dityache-bazhannya-min-600×600.jpg.webp
I have it flickering and disappearing …
Are these hosting problems?- This reply was modified 5 years, 5 months ago by max3w.
Forum: Plugins
In reply to: [Images to WebP] Hello, a question about prefixes for jpg.webp imagesApparently this forum replaces the letter “x” with a cross. Please do not copy the address but follow the image link again. There must be an English letter x between 600×600
Forum: Plugins
In reply to: [Images to WebP] Hello, a question about prefixes for jpg.webp imagesThanks for the answer, yes of course. I still see the same problem even in the WordPress admin panel in media files (some squares are empty) http://joxi.ru/82Q5Qw8hwEplG2
The server uses the GD libraryPictures:
1) https://eventum.market/wp-content/uploads/2020/05/dityache-bazhannya-min-600×600.jpg
2) https://eventum.market/wp-content/uploads/2020/05/dityache-bazhannya-min-600×600.jpg.webpWebp when viewed in Google chrome flickers and disappears …
Today I also solved the problem on the second hosting – I wrote in support they turned off the transfer of images to NginX.
Support response: “By default, the NginX web service is responsible for serving static content.
If you want to use Apache2 to serve jpg | jpeg | gif | png files, then give us the name of the site and we will disable processing on the NginX side for these files. ”This is in Ukraine. Two large hosting. The sites run on Apache, but some files turned out to be transferred to NginX for speedup. And then the httacces rules are simply ignored by the hoster.
Thanks for the plugin.
The hosting works in such a way that it removes the caching rules if the images are removed from the statics, therefore, in addition, added caching lines to the .httaccess:
ExpiresActive On ExpiresByType image/x-icon "access plus 365 days" ExpiresByType image/jpeg "access plus 365 days" ExpiresByType image/png "access plus 365 days" ExpiresByType image/gif "access plus 365 days" ExpiresByType image/webp "access plus 365 days"And everything works great
- This reply was modified 5 years, 5 months ago by max3w.
All extensions that should be processed by the .htaccess file should be removed from the static ones on the hosting in the Static files window. I deleted static files in Apache hosting settings: jpg, jpeg, png, gif, webp. http://joxi.ru/Q2K7YwXsLYgkD2
I waited 15 minutes until the hosting settings are updated and the plugin is activated. Thank youTell me what exactly should be enabled for the plugin to work? I have enabled Imagick on hosting, here is a screenshot of Imagick block in phpinfo http://joxi.ru/bmoVzlNf3DOedr or https://sto-drayv.com.ua/info.php
- This reply was modified 5 years, 5 months ago by max3w.
Yes, but the plugin cannot be activated, I constantly see the inscription http://joxi.ru/5mdMYDRI3DaD92
Although it adds the code, it is not activated.
Let me remind you the code added by the plugin http://joxi.net/KAgGownFEQKgwA
Why doesn’t he see it and is not activated?- This reply was modified 5 years, 5 months ago by max3w.
Thank you, the solution turned out to be very simple – you need to fill in the seo fields in different languages in the following format: [:uk]Text-ua[:ru]Text-ru[:]
Then it takes the desired translation value automatically.Thank you, the solution turned out to be very simple – you need to fill in the seo fields in different languages in the following format: [:uk]Text-ua[:ru]Text-ru[:]
Then it takes the desired translation value automatically.По шаблонам не надо далеко лазить, всего один обычно – category.php
Но есть и хук, поиск замену можно так же вписать.
category_descriptionСкорее всего надо перезаписать названия ярлыков. Вместо $label .= ‘ (‘ . __( ‘Free’, ‘woocommerce’ ) . ‘)’; подставлять названия переводов.
function my_custom_show_free_label_with_free_shipping( $label, $method ) { // if ( $method->method_id == 'local_pickup' ) return $label; // Don't apply to local pickup rates if ( $method->cost == 0 ) { $label .= ' (' . __( 'Free', 'woocommerce' ) . ')'; } return $label; } add_filter( 'woocommerce_cart_shipping_method_full_label', 'my_custom_show_free_label_with_free_shipping', 10, 2 );