- Trạng thái
- Đã giải quyết
- Được báo cáo cho
- WPML Multilingual & Multicurrency for WooCommerce 3.7.12
- Đã giải quyết trong
- WooCommerce Multilingual 3.8.0
Tổng quan về lỗi
Đườ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
Trong wp-content/plugins/woocommerce-multilingual/inc/products.class.php
Ở dòng 906, bạn cần thay đổi:
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:
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