WPML
סטטוס
נפתר
דווח עבור
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 ) ){

או החל patch זה על אותו קובץ שהוזכר לעיל: 5cfd9c862c0da207262c5da49d6608f7ae1d25d0.patch

כל התקלות הידועות →