- 상태
- 해결됨
- 보고된 제품
- 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