- สถานะ
- แก้ไขแล้ว
- รายงานสำหรับ
- 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