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

或者将此补丁应用到上述同一文件:5cfd9c862c0da207262c5da49d6608f7ae1d25d0.patch

所有已知问题 →