Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit cd19fdd

Browse files
committed
fixes #352 by allowing translation of 'invisible' variations
1 parent 3388e32 commit cd19fdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Hyyan/WPI/Product/Variable.php

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ public function duplicateVariations($ID, \WP_Post $post, $update)
105105
$langs = pll_languages_list();
106106
foreach ($langs as $lang) {
107107
remove_action('save_post', array($this, __FUNCTION__), 10);
108+
add_filter( 'woocommerce_hide_invisible_variations', function() {
109+
return false;
110+
} );
108111
$variation = new Variation(
109112
$from,
110113
Utilities::getProductTranslationByObject($product, $lang)

0 commit comments

Comments
 (0)