Tổng quan về sự cố
Đường dẫn của một sản phẩm có thể tải xuống luôn được đồng bộ hóa giữa bản gốc và bản dịch.
Giải pháp tạm thời
Sự cố này đã được khắc phục trong WooCommerce Multilingual 3.8.0. Việc cập nhật giải quyết vấn đề này trên trang web của bạn, vì vậy bạn chỉ cần giải pháp tạm thời này nếu chưa thể cập nhật.
Trong wp-content/plugins/woocommerce-multilingual/inc/products.class.php
Ở dòng 906, bạn cần thay đổi:
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 ) ){
thành:
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 ) ){
Hoặc áp dụng bản vá này cho cùng tệp được đề cập ở trên: 5cfd9c862c0da207262c5da49d6608f7ae1d25d0.patch