Skip to content Skip to sidebar

Open

Topic Tags: WCML

Overview of the issue

If you have a variable product whose regular price is 0 (zero), when you translate the product the translated variations will be missing a value for the price, and WooCommerce will interpret this to mean the products are out of stock, even when not managing stock.

Workaround

Until the fix is released you can edit the file plugins/woocommerce-multilingual/classes/Synchronization/Component/VariationMeta.php and locate these lines from line 53 onwards:

			$metaValue = reset( $meta );
			if ( ! $metaValue ) {
				$metaValue = '';
			}

Modify the if condition like so:

			$metaValue = reset( $meta );
			if ( ! $metaValue && $metaValue != 0 ) {
				$metaValue = '';
			}

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>