Changeset 3344053
- Timestamp:
- 08/13/2025 11:35:07 AM (8 months ago)
- Location:
- simpler-checkout
- Files:
-
- 16 edited
- 1 copied
-
tags/1.1.12 (copied) (copied from simpler-checkout/trunk)
-
tags/1.1.12/README.txt (modified) (2 diffs)
-
tags/1.1.12/includes/Compatibility/pickup.php (modified) (2 diffs)
-
tags/1.1.12/includes/constants.php (modified) (1 diff)
-
tags/1.1.12/simpler.php (modified) (1 diff)
-
tags/1.1.12/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.12/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/1.1.12/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.1.12/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/Compatibility/pickup.php (modified) (2 diffs)
-
trunk/includes/constants.php (modified) (1 diff)
-
trunk/simpler.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simpler-checkout/tags/1.1.12/README.txt
r3343605 r3344053 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 1.1.1 17 Stable tag: 1.1.12 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 == 1.1.12 39 Fix(compat): WC Pickup Store 37 40 38 41 == 1.1.11 -
simpler-checkout/tags/1.1.12/includes/Compatibility/pickup.php
r3290493 r3344053 13 13 function simplerwc_local_pickup_plus_after_set_checkout_data($order, $order_request) 14 14 { 15 $pickupId = $order_request->get_order()->get_shipping() ?$order_request->get_order()->get_shipping()->get_pickup_location_id():null;15 $pickupId = $order_request->get_order()->get_shipping() ? $order_request->get_order()->get_shipping()->get_pickup_location_id() : null; 16 16 if (!$pickupId || !class_exists('WC_Local_Pickup_Plus')) { 17 17 return; … … 34 34 function simplerwc_compat_wc_pickup_store_set_store_name($order, $request) 35 35 { 36 if (!function_exists(' wps_stores_fields')) {36 if (!function_exists('is_wps_chosen_shipping_method')) { 37 37 return; 38 38 } 39 39 40 if (! ($order->has_shipping_method('wc_pickup_store'))) {40 if (!is_wps_chosen_shipping_method()) { 41 41 return; 42 42 } 43 43 44 $location = $request->get_order()->get_shipping() ?$request->get_order()->get_shipping()->get_pickup_location_id():null;44 $location = $request->get_order()->get_shipping() ? $request->get_order()->get_shipping()->get_pickup_location_id() : null; 45 45 if ($location) { 46 $order->add_meta_data('_shipping_pickup_stores', $location); 46 $order->add_meta_data('_shipping_pickup_store_id', $location); 47 $order->add_meta_data('_shipping_pickup_stores', simplerwc_wps_get_store_name_by_id($location)); 47 48 } 48 49 } 49 50 51 function simplerwc_wps_get_store_name_by_id($store_id = 0) 52 { 53 $store_name = ''; 54 if (!empty($store_id)) { 55 $store = get_post($store_id); 56 if ($store && $store->post_type === 'store') { 57 $store_name = $store->post_title; 58 } 59 } 60 return $store_name; 61 } 62 50 63 add_action('simplerwc_after_set_checkout_data', 'simplerwc_compat_wc_pickup_store_set_store_name', 10, 2); -
simpler-checkout/tags/1.1.12/includes/constants.php
r3343605 r3344053 1 1 <?php 2 2 3 const SIMPLERWC_VERSION = '1.1.1 1';3 const SIMPLERWC_VERSION = '1.1.12'; 4 4 5 5 function simplerwc_get_sdk_uri() -
simpler-checkout/tags/1.1.12/simpler.php
r3343605 r3344053 8 8 * Description: Simpler Checkout lets your customers complete their purchases in seconds, with any payment method they want, in any device or browser and without a password. 9 9 * Tags: woocommerce, checkout, payments, conversion rate 10 * Version: 1.1.1 110 * Version: 1.1.12 11 11 * Requires at least: 5.1 12 12 * Tested up to: 6.8.1 -
simpler-checkout/tags/1.1.12/vendor/autoload.php
r3343605 r3344053 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c1::getLoader();7 return ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491::getLoader(); -
simpler-checkout/tags/1.1.12/vendor/composer/autoload_real.php
r3343605 r3344053 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c15 class ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
simpler-checkout/tags/1.1.12/vendor/composer/autoload_static.php
r3343605 r3344053 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c17 class ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 89 89 { 90 90 return \Closure::bind(function () use ($loader) { 91 $loader->prefixLengthsPsr4 = ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::$prefixLengthsPsr4;92 $loader->prefixDirsPsr4 = ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::$prefixDirsPsr4;93 $loader->classMap = ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::$classMap;91 $loader->prefixLengthsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4; 92 $loader->prefixDirsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4; 93 $loader->classMap = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$classMap; 94 94 95 95 }, null, ClassLoader::class); -
simpler-checkout/tags/1.1.12/vendor/composer/installed.php
r3343605 r3344053 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '1.1.1 1',4 'version' => '1.1.1 1.0',3 'pretty_version' => '1.1.12', 4 'version' => '1.1.12.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' e41eb4b02970b014a08b1f40c3a8155d0fb2f376',8 'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655', 9 9 'name' => 'simpler-checkout/woo', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'simpler-checkout/woo' => array( 14 'pretty_version' => '1.1.1 1',15 'version' => '1.1.1 1.0',14 'pretty_version' => '1.1.12', 15 'version' => '1.1.12.0', 16 16 'type' => 'wordpress-plugin', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' e41eb4b02970b014a08b1f40c3a8155d0fb2f376',19 'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655', 20 20 'dev_requirement' => false, 21 21 ), -
simpler-checkout/trunk/README.txt
r3343605 r3344053 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 1.1.1 17 Stable tag: 1.1.12 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 35 35 36 36 == Changelog == 37 38 == 1.1.12 39 Fix(compat): WC Pickup Store 37 40 38 41 == 1.1.11 -
simpler-checkout/trunk/includes/Compatibility/pickup.php
r3290493 r3344053 13 13 function simplerwc_local_pickup_plus_after_set_checkout_data($order, $order_request) 14 14 { 15 $pickupId = $order_request->get_order()->get_shipping() ?$order_request->get_order()->get_shipping()->get_pickup_location_id():null;15 $pickupId = $order_request->get_order()->get_shipping() ? $order_request->get_order()->get_shipping()->get_pickup_location_id() : null; 16 16 if (!$pickupId || !class_exists('WC_Local_Pickup_Plus')) { 17 17 return; … … 34 34 function simplerwc_compat_wc_pickup_store_set_store_name($order, $request) 35 35 { 36 if (!function_exists(' wps_stores_fields')) {36 if (!function_exists('is_wps_chosen_shipping_method')) { 37 37 return; 38 38 } 39 39 40 if (! ($order->has_shipping_method('wc_pickup_store'))) {40 if (!is_wps_chosen_shipping_method()) { 41 41 return; 42 42 } 43 43 44 $location = $request->get_order()->get_shipping() ?$request->get_order()->get_shipping()->get_pickup_location_id():null;44 $location = $request->get_order()->get_shipping() ? $request->get_order()->get_shipping()->get_pickup_location_id() : null; 45 45 if ($location) { 46 $order->add_meta_data('_shipping_pickup_stores', $location); 46 $order->add_meta_data('_shipping_pickup_store_id', $location); 47 $order->add_meta_data('_shipping_pickup_stores', simplerwc_wps_get_store_name_by_id($location)); 47 48 } 48 49 } 49 50 51 function simplerwc_wps_get_store_name_by_id($store_id = 0) 52 { 53 $store_name = ''; 54 if (!empty($store_id)) { 55 $store = get_post($store_id); 56 if ($store && $store->post_type === 'store') { 57 $store_name = $store->post_title; 58 } 59 } 60 return $store_name; 61 } 62 50 63 add_action('simplerwc_after_set_checkout_data', 'simplerwc_compat_wc_pickup_store_set_store_name', 10, 2); -
simpler-checkout/trunk/includes/constants.php
r3343605 r3344053 1 1 <?php 2 2 3 const SIMPLERWC_VERSION = '1.1.1 1';3 const SIMPLERWC_VERSION = '1.1.12'; 4 4 5 5 function simplerwc_get_sdk_uri() -
simpler-checkout/trunk/simpler.php
r3343605 r3344053 8 8 * Description: Simpler Checkout lets your customers complete their purchases in seconds, with any payment method they want, in any device or browser and without a password. 9 9 * Tags: woocommerce, checkout, payments, conversion rate 10 * Version: 1.1.1 110 * Version: 1.1.12 11 11 * Requires at least: 5.1 12 12 * Tested up to: 6.8.1 -
simpler-checkout/trunk/vendor/autoload.php
r3343605 r3344053 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c1::getLoader();7 return ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491::getLoader(); -
simpler-checkout/trunk/vendor/composer/autoload_real.php
r3343605 r3344053 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c15 class ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
simpler-checkout/trunk/vendor/composer/autoload_static.php
r3343605 r3344053 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c17 class ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 89 89 { 90 90 return \Closure::bind(function () use ($loader) { 91 $loader->prefixLengthsPsr4 = ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::$prefixLengthsPsr4;92 $loader->prefixDirsPsr4 = ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::$prefixDirsPsr4;93 $loader->classMap = ComposerStaticInit 268f411f9a894c7fca023b9bfc66c1c1::$classMap;91 $loader->prefixLengthsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4; 92 $loader->prefixDirsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4; 93 $loader->classMap = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$classMap; 94 94 95 95 }, null, ClassLoader::class); -
simpler-checkout/trunk/vendor/composer/installed.php
r3343605 r3344053 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '1.1.1 1',4 'version' => '1.1.1 1.0',3 'pretty_version' => '1.1.12', 4 'version' => '1.1.12.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' e41eb4b02970b014a08b1f40c3a8155d0fb2f376',8 'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655', 9 9 'name' => 'simpler-checkout/woo', 10 10 'dev' => false, … … 12 12 'versions' => array( 13 13 'simpler-checkout/woo' => array( 14 'pretty_version' => '1.1.1 1',15 'version' => '1.1.1 1.0',14 'pretty_version' => '1.1.12', 15 'version' => '1.1.12.0', 16 16 'type' => 'wordpress-plugin', 17 17 'install_path' => __DIR__ . '/../../', 18 18 'aliases' => array(), 19 'reference' => ' e41eb4b02970b014a08b1f40c3a8155d0fb2f376',19 'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655', 20 20 'dev_requirement' => false, 21 21 ),
Note: See TracChangeset
for help on using the changeset viewer.