fix: Update version to 1.2.5 and correct supplier meta key in supplier exports
This commit is contained in:
@@ -10,7 +10,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
class Siti_Stock_Supplier_Exports {
|
||||
|
||||
const CRON_HOOK = 'siti_stock_plugin_supplier_export';
|
||||
const SUPPLIER_META_KEY = '_wpbc_supplier';
|
||||
const SUPPLIER_META_KEY = '_wpci_supplier';
|
||||
|
||||
/**
|
||||
* @var Siti_Stock_Settings
|
||||
@@ -258,7 +258,7 @@ class Siti_Stock_Supplier_Exports {
|
||||
$body_lines[] = $csv;
|
||||
|
||||
$headers = array( 'Content-Type: text/plain; charset=UTF-8' );
|
||||
$sent = wp_mail( $admin_email, $subject, implode( "\n", $body_lines ), $headers );
|
||||
$sent = wp_mail( $admin_email, $subject, implode( "\r\n", $body_lines ), $headers );
|
||||
|
||||
if ( ! $sent ) {
|
||||
return new WP_Error( 'siti_stock_mail_failed', __( 'E-mail verzenden is mislukt.', 'siti-stock-plugin' ) );
|
||||
@@ -439,7 +439,7 @@ class Siti_Stock_Supplier_Exports {
|
||||
$lines[] = sprintf( '%s;%d', $sku, $quantity );
|
||||
}
|
||||
|
||||
return implode( "\n", $lines );
|
||||
return implode( "\r\n", $lines );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user