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

ปัญหาที่ทราบแล้วทั้งหมด

ยังคงพบปัญหานี้อยู่หรือไม่

หากการอัปเดตไม่สามารถแก้ไขปัญหานี้ได้ ส่งคำถามถึงฝ่ายสนับสนุน และเราจะตรวจสอบร่วมกับคุณ