نظرة عامة على المشكلة
تتم مزامنة مسار المنتج القابل للتنزيل دائماً بين الأصل والترجمة.
حل بديل مؤقت
تم إصلاح هذه المشكلة في 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