WPML

問題の概要

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

回避策

この問題はWooCommerce Multilingual 3.8.0で修正されました。 更新するとサイト上の問題は解決するため、この回避策が必要になるのは、まだ更新できない場合のみです。

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

PHP
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 ) ){

次のように変更します:

PHP
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

すべての既知の問題

まだこの問題が発生しますか?

アップデートしても問題が解決しない場合は、サポートのご質問をお寄せください。一緒に調査いたします。