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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Plugin Name: Siti Stock Plugin
|
||||
* Plugin URI: https://github.com/SitiWeb/siti-stock-plugin
|
||||
* Description: Synchroniseert WooCommerce voorraad met het externe Siti voorraadplatform.
|
||||
* Version: 1.2.4
|
||||
* Version: 1.2.5
|
||||
* Author: Siti Web
|
||||
* Author URI: https://www.siti.nl
|
||||
* Requires PHP: 8.1
|
||||
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
define( 'SITI_STOCK_PLUGIN_VERSION', '1.2.4' );
|
||||
define( 'SITI_STOCK_PLUGIN_VERSION', '1.2.5' );
|
||||
define( 'SITI_STOCK_PLUGIN_FILE', __FILE__ );
|
||||
define( 'SITI_STOCK_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user