WPML
ステータス
解決済み
報告対象
WPML Multilingual & Multicurrency for WooCommerce 3.7.12
解決されたバージョン
WooCommerce Multilingual 3.8.0

問題の概要

ダウンロード可能な商品のパスは、オリジナルと翻訳の間で常に同期されます。

回避策

wp-content/plugins/woocommerce-multilingual/inc/products.class.php
906行目で、以下を:

if( in_array( $key ,array( '_file_paths', '_downloadable_files' )) || ( isset($settings['translation-management']['custom_fields_translation'][$key]) && $settings['translation-management']['custom_fields_translation'][$key] == 1 ) ){

次のように変更します:

if( ( $woocommerce_wpml->settings['file_path_sync']  && in_array( $key ,array( '_file_paths', '_downloadable_files' ) ) ) || ( isset($settings['translation-management']['custom_fields_translation'][$key]) && $settings['translation-management']['custom_fields_translation'][$key] == 1 ) ){

または、上記の同じファイルにこのパッチを適用します:5cfd9c862c0da207262c5da49d6608f7ae1d25d0.patch

すべての既知の問題 →