- الحالة
- محلولة
- أُبلغ عنها لـ
- 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