Changeset 3407784
- Timestamp:
- 12/02/2025 10:06:23 AM (4 months ago)
- Location:
- dotdigital-for-woocommerce/trunk
- Files:
-
- 4 edited
-
class-dotdigital-woocommerce-bootstrapper.php (modified) (2 diffs)
-
includes/forms/checkout/class-dotdigital-woocommerce-checkout-marketing-checkbox.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dotdigital-for-woocommerce/trunk/class-dotdigital-woocommerce-bootstrapper.php
r3389676 r3407784 16 16 * Plugin Name: Dotdigital for WooCommerce 17 17 * Description: Connect your WooCommerce store to dotdigital and put customer, subscriber, product and order data at your fingertips. 18 * Version: 2. 0.018 * Version: 2.1.0 19 19 * Requires PHP: 7.4 20 20 * Requires at least: 5.7 … … 62 62 use Dotdigital_WooCommerce\Includes\Dotdigital_WooCommerce_Config; 63 63 define('DOTDIGITAL_FOR_WOOCOMMERCE_PLUGIN_NAME', 'dotdigital-for-woocommerce'); 64 define('DOTDIGITAL_FOR_WOOCOMMERCE_PLUGIN_VERSION', '2. 0.0');64 define('DOTDIGITAL_FOR_WOOCOMMERCE_PLUGIN_VERSION', '2.1.0'); 65 65 define('DOTDIGITAL_FOR_WOOCOMMERCE_PLUGIN_DIR_PATH', __DIR__); 66 66 define('DOTDIGITAL_FOR_WOOCOMMERCE_PUBLIC_MEDIA_PATH', plugin_dir_url(__FILE__) . 'public/image/'); -
dotdigital-for-woocommerce/trunk/includes/forms/checkout/class-dotdigital-woocommerce-checkout-marketing-checkbox.php
r3255822 r3407784 39 39 public function handle_submit($order_id) 40 40 { 41 $accepts_marketing = 0; 42 if (isset($_POST[Dotdigital_WooCommerce_Config::FORM_FIELD_MARKETING_CHECKBOX_NAME])) { 43 // phpcs:ignore WordPress.Security.NonceVerification.Missing 44 $accepts_marketing = 1; 41 if (!isset($_POST[Dotdigital_WooCommerce_Config::FORM_FIELD_MARKETING_CHECKBOX_NAME])) { 42 //phpcs:ignore WordPress.Security.NonceVerification.Missing 43 return; 45 44 } 46 45 $order = wc_get_order($order_id); … … 48 47 return; 49 48 } 50 // For guest orders with no subscription, we can exit here. 51 if (!$accepts_marketing && !$order->get_customer_id()) { 52 return; 53 } 54 $data = array('user_id' => $order->get_customer_id(), 'email' => $order->get_billing_email(), 'status' => $accepts_marketing, 'first_name' => $order->get_billing_first_name(), 'last_name' => $order->get_billing_last_name()); 49 $data = array('user_id' => $order->get_customer_id(), 'email' => $order->get_billing_email(), 'first_name' => $order->get_billing_first_name(), 'last_name' => $order->get_billing_last_name(), 'status' => 1); 55 50 $subscriber = new Dotdigital_WooCommerce_Subscriber(); 56 51 $subscriber->create_or_update($data); -
dotdigital-for-woocommerce/trunk/readme.txt
r3389676 r3407784 2 2 Contributors: dotMailer, amucklow, fstrezos, pvpcookie 3 3 Tested up to: 6.8 4 Stable tag: 2. 0.04 Stable tag: 2.1.0 5 5 License: MIT 6 6 License URI: https://opensource.org/licenses/MIT … … 67 67 == Changelog == 68 68 69 = 2.1.0 = 70 71 **Improvements** 72 - Customers who do not opt in to marketing emails at checkout will now not be unsubscribed from a list. 73 69 74 = 2.0.0 = 70 75 -
dotdigital-for-woocommerce/trunk/vendor/composer/installed.php
r3389676 r3407784 3 3 namespace Dotdigital_Woo_Vendor; 4 4 5 return array('root' => array('name' => 'dotdigital/dotdigital-for-woocommerce', 'pretty_version' => '2. 0.0', 'version' => '2.0.0.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('clue/stream-filter' => array('pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'reference' => '049509fef80032cb3f051595029ab75b49a3c2f7', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/stream-filter', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-for-woocommerce' => array('pretty_version' => '2.0.0', 'version' => '2.0.0.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-php' => array('pretty_version' => '2.6.0', 'version' => '2.6.0.0', 'reference' => '99367b94b693264db2eba459435670c5bf71651e', 'type' => 'library', 'install_path' => __DIR__ . '/../dotdigital/dotdigital-php', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.9.2', 'version' => '7.9.2.0', 'reference' => 'd281ed313b989f213357e3be1a179f02196ac99b', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'reference' => 'f9c436286ab2892c7db7be8c8da4ef61ccf7b455', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.7.0', 'version' => '2.7.0.0', 'reference' => 'a70f5c95fb43bc83f07c9c948baa0dc1829bf201', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/async-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'php-http/client-common' => array('pretty_version' => '2.7.2', 'version' => '2.7.2.0', 'reference' => '0cfe9858ab9d3b213041b947c881d5b19ceeca46', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/client-common', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'php-http/curl-client' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => '0b869922458b1cde9137374545ed4fff7ac83623', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/curl-client', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/discovery' => array('pretty_version' => '1.20.0', 'version' => '1.20.0.0', 'reference' => '82fe4c73ef3363caed49ff8dd1539ba06044910d', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../php-http/discovery', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/httplug' => array('pretty_version' => '2.4.1', 'version' => '2.4.1.0', 'reference' => '5cad731844891a4c282f3f3e1b582c46839d22f4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/httplug', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message' => array('pretty_version' => '1.16.2', 'version' => '1.16.2.0', 'reference' => '06dd5e8562f84e641bf929bfe699ee0f5ce8080a', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/message', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'php-http/promise' => array('pretty_version' => '1.3.1', 'version' => '1.3.1.0', 'reference' => 'fc85b1fba37c169a69a07ef0d5a8075770cc1f83', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/promise', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v2.5.3', 'version' => '2.5.3.0', 'reference' => '80d075412b557d41002320b96a096ca65aa2c98d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/options-resolver' => array('pretty_version' => 'v5.4.40', 'version' => '5.4.40.0', 'reference' => 'bd1afbde6613a8d6b956115e0e14b196191fd0c4', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/options-resolver', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php73' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php73', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php80' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '60328e362d4c2c802a54fcbf04f9d3fb892b4cf8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), 'dev_requirement' => \false)));5 return array('root' => array('name' => 'dotdigital/dotdigital-for-woocommerce', 'pretty_version' => '2.1.0', 'version' => '2.1.0.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('clue/stream-filter' => array('pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'reference' => '049509fef80032cb3f051595029ab75b49a3c2f7', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/stream-filter', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-for-woocommerce' => array('pretty_version' => '2.1.0', 'version' => '2.1.0.0', 'reference' => null, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'dotdigital/dotdigital-php' => array('pretty_version' => '2.6.0', 'version' => '2.6.0.0', 'reference' => '99367b94b693264db2eba459435670c5bf71651e', 'type' => 'library', 'install_path' => __DIR__ . '/../dotdigital/dotdigital-php', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.9.2', 'version' => '7.9.2.0', 'reference' => 'd281ed313b989f213357e3be1a179f02196ac99b', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.0.4', 'version' => '2.0.4.0', 'reference' => 'f9c436286ab2892c7db7be8c8da4ef61ccf7b455', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.7.0', 'version' => '2.7.0.0', 'reference' => 'a70f5c95fb43bc83f07c9c948baa0dc1829bf201', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/async-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'php-http/client-common' => array('pretty_version' => '2.7.2', 'version' => '2.7.2.0', 'reference' => '0cfe9858ab9d3b213041b947c881d5b19ceeca46', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/client-common', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'php-http/curl-client' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => '0b869922458b1cde9137374545ed4fff7ac83623', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/curl-client', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/discovery' => array('pretty_version' => '1.20.0', 'version' => '1.20.0.0', 'reference' => '82fe4c73ef3363caed49ff8dd1539ba06044910d', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../php-http/discovery', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/httplug' => array('pretty_version' => '2.4.1', 'version' => '2.4.1.0', 'reference' => '5cad731844891a4c282f3f3e1b582c46839d22f4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/httplug', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message' => array('pretty_version' => '1.16.2', 'version' => '1.16.2.0', 'reference' => '06dd5e8562f84e641bf929bfe699ee0f5ce8080a', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/message', 'aliases' => array(), 'dev_requirement' => \false), 'php-http/message-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'php-http/promise' => array('pretty_version' => '1.3.1', 'version' => '1.3.1.0', 'reference' => 'fc85b1fba37c169a69a07ef0d5a8075770cc1f83', 'type' => 'library', 'install_path' => __DIR__ . '/../php-http/promise', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '*', 1 => '1.0')), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v2.5.3', 'version' => '2.5.3.0', 'reference' => '80d075412b557d41002320b96a096ca65aa2c98d', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/options-resolver' => array('pretty_version' => 'v5.4.40', 'version' => '5.4.40.0', 'reference' => 'bd1afbde6613a8d6b956115e0e14b196191fd0c4', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/options-resolver', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php73' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php73', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-php80' => array('pretty_version' => 'v1.31.0', 'version' => '1.31.0.0', 'reference' => '60328e362d4c2c802a54fcbf04f9d3fb892b4cf8', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), 'dev_requirement' => \false)));
Note: See TracChangeset
for help on using the changeset viewer.