Bruno Kos
Supporter
Sprachen:
Englisch (English )
Deutsch (Deutsch )
Französisch (Français )
Zeitzone:
Europe/Zagreb (GMT+01:00)
|
wir haben das Problem in Email Customizer für WooCommerce (Pro) gefunden.
Können Sie sie bitten, unserem https://wpml.org/documentation/support/go-global-program/ beizutreten?
Sie könnten versuchen, die folgende Funktion in der Datei \wp-content\plugins\woocommerce-email-customizer\includes\integrations\class-thwec-integrations.php zu verwenden:
protected function format_email_subject($subject, $status, $order){
// replaced_placeholders
global $wpdb;
if( isset( $this->subjects[$status] ) && !empty( $this->subjects[$status] ) ){
$this->subject_placeholders = THWEC_Utils::get_subject_placeholders($order, $status);
$name = $wpdb->get_var ( $wpdb->prepare ("SELECT `name` FROM {$wpdb->prefix}icl_strings WHERE `value` LIKE '{$this->subjects[$status]}' AND `context` = 'woocommerce-email-customizer-pro'"));
$raw_subject = apply_filters( 'wpml_translate_single_string', $this->subjects[$status], 'woocommerce-email-customizer-pro', $name );
$raw_subject = preg_replace_callback('/{(.+?)}/ix', array($this, "thwec_manage_subject_placeholders"), $raw_subject);
if( !empty( $this->replaced_placeholders ) ){
$subject = vsprintf( $raw_subject, $this->replaced_placeholders );
}
}
return $subject;
}
Ersetzen Sie also die "protected function format_email_subject($subject, $status, $order){", die dort bereits vorhanden ist.
|