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 ) ){

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

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

עדיין נתקל בבעיה זו?

אם העדכון אינו פותר זאת, פתח פנייה לתמיכה ואנו נבדוק זאת יחד איתך.