- Статус
- Решено
- Заявлено для
- 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