moultrex
Forum Replies Created
-
Edit found it. Changed the priority from 9999 your plugin has to 99999.
Thank you.
Edit.
Wow i couldn’t believe my eyes.
Wordpress use the filter wptexturize and was converting
Leather Jacket – Collection Winter the single dash to a ndash (double dash)
That’s why when i translated a product title, it translated the double dash and at the cart page the single dash was outputing.
I disabled the filter with these filters
remove_filter( ‘the_title’, ‘wptexturize’ );
remove_filter( ‘the_content’, ‘wptexturize’ );
remove_filter( ‘the_excerpt’, ‘wptexturize’ );and now at the cart page the right translation is showing.
Thank you very much.
I tried a different way and still doesn’t work.
So for example.
I have a product.
Shirt – Collection Spring / Summer
I translate it
and then from your code i just return the $title_base
So the code is:
add_filter( 'woocommerce_product_variation_title', 'trpc_woo_wrap_variation', 10, 4 ); function trpc_woo_wrap_variation( $name, $product, $title_base, $title_suffix ){ return $title_base; }
Now at the cart after the product’s translated name
Shirt – Collection Spring / Summer
there is NO – size , Color etc.
BUT still it doesn’t get translated
Only if i remove the – from the product title and become like
Shirt Collection Spring / Summer
only then it get’s translated.
Why is that?
Yeah it kinda works.
For example, we have products that their title is:
Leather Jacket – Collection Winter
and other products that their title is:
Leather Jacket
On the first product the string is not translated because your snippet finds the first ‘ – ‘ that is part of the product title.
The second product it gets translated though because there is not a ‘ – ‘ in the title.
Is there a way to not check the product title for ‘ – ‘ so it can work on all products?
Thank you.
Forum: Plugins
In reply to: [AutoConvert Greeklish Permalinks] Problem with post categoriesSame problem with Woocommerce products.
If a product has greek permalink and the plugin is enabled, it result in post not found
Forum: Plugins
In reply to: [WooCommerce] After Update to 3.5.0: Product Variation Images size changedOut theme developer released a fixed for this bug. Maybe other will benefit from it
/**
* ————————————————————————————————
* Fix for single product image sizes
* ————————————————————————————————
*/
if ( ! function_exists( ‘woodmart_single_product_image_sizes’) ) {
function woodmart_single_product_image_sizes() {
$sizes = wc_get_image_size( ‘woocommerce_single’ );
if ( ! $sizes[‘height’] ) {
$sizes[‘height’] = $sizes[‘width’];
}return array( $sizes[‘width’], $sizes[‘height’] );
}add_filter( ‘woocommerce_gallery_thumbnail_size’, ‘woodmart_single_product_image_sizes’ );
}Forum: Plugins
In reply to: [WooCommerce] After Update: Product Image size changedSame problem too
Forum: Plugins
In reply to: [WP Speed of Light] Exclude URLSGreat. Thank you!
Forum: Plugins
In reply to: [WP Speed of Light] Exclude URLSThanks for the reply.
So you have to put the whole url and then asterisk at the end?
Is it possible to be two ways asterisk so that it doesnt include urls with the matching keyword ie. *blogpage*
Forum: Plugins
In reply to: [Timetable and Event Schedule by MotoPress] Same Event Different TimetablesThank you very much. I’ll try that!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Index only Publish StatusThank you very much. It works!
Forum: Plugins
In reply to: [WooCommerce] Can’t Get Rid of Uncategorized Category from Shop PageJust rename it to a Category that you have and add there the products or if you don’t add products to that category, it will not show up on shop pages.
Forum: Plugins
In reply to: [Smart Slider 3] Not compatible with WP Hide & Security EnhancerI don’t want to fiddle on our production environment. We’ll wait for a next release if you make it happen. Thank you.
Forum: Plugins
In reply to: [Smart Slider 3] Not compatible with WP Hide & Security EnhancerThank you very much. We really want to use your slider on our site but we can’t disable WP Hide & Security Enhancer for security reasons that we have implement.
Forum: Plugins
In reply to: [CMB2] Conflict with Essential grid (JS/CSS errors)Comment out this code on
/wp-content/plugins/cmb2/includes/CMB2_JS.php
line: 234
//if ( function_exists( ‘wp_enqueue_code_editor’ ) ) {
// $l10n[‘defaults’][‘code_editor’] = wp_enqueue_code_editor( array(
// ‘type’ => ‘text/html’,
// ) );
//}It causes other trouble to with other plugins. For example Wp Export All and Wp All import from https://www.wpallimport.com
- This reply was modified 6 years, 6 months ago by moultrex.