Plugin Directory

Changeset 3344053


Ignore:
Timestamp:
08/13/2025 11:35:07 AM (8 months ago)
Author:
simplercheckout
Message:

Version 1.1.12

Location:
simpler-checkout
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simpler-checkout/tags/1.1.12/README.txt

    r3343605 r3344053  
    55Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 1.1.11
     7Stable tag: 1.1.12
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3535
    3636== Changelog ==
     37
     38== 1.1.12
     39Fix(compat): WC Pickup Store
    3740
    3841== 1.1.11
  • simpler-checkout/tags/1.1.12/includes/Compatibility/pickup.php

    r3290493 r3344053  
    1313        function simplerwc_local_pickup_plus_after_set_checkout_data($order, $order_request)
    1414        {
    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;
    1616            if (!$pickupId || !class_exists('WC_Local_Pickup_Plus')) {
    1717                return;
     
    3434function simplerwc_compat_wc_pickup_store_set_store_name($order, $request)
    3535{
    36     if (!function_exists('wps_stores_fields')) {
     36    if (!function_exists('is_wps_chosen_shipping_method')) {
    3737        return;
    3838    }
    3939
    40     if (!($order->has_shipping_method('wc_pickup_store'))) {
     40    if (!is_wps_chosen_shipping_method()) {
    4141        return;
    4242    }
    4343
    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;
    4545    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));
    4748    }
    4849}
    4950
     51function 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
    5063add_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  
    11<?php
    22
    3 const SIMPLERWC_VERSION = '1.1.11';
     3const SIMPLERWC_VERSION = '1.1.12';
    44
    55function simplerwc_get_sdk_uri()
  • simpler-checkout/tags/1.1.12/simpler.php

    r3343605 r3344053  
    88 * 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.
    99 * Tags: woocommerce, checkout, payments, conversion rate
    10  * Version: 1.1.11
     10 * Version: 1.1.12
    1111 * Requires at least: 5.1
    1212 * Tested up to: 6.8.1
  • simpler-checkout/tags/1.1.12/vendor/autoload.php

    r3343605 r3344053  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1::getLoader();
     7return ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491::getLoader();
  • simpler-checkout/tags/1.1.12/vendor/composer/autoload_real.php

    r3343605 r3344053  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1
     5class ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • simpler-checkout/tags/1.1.12/vendor/composer/autoload_static.php

    r3343605 r3344053  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1
     7class ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8989    {
    9090        return \Closure::bind(function () use ($loader) {
    91             $loader->prefixLengthsPsr4 = ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::$prefixLengthsPsr4;
    92             $loader->prefixDirsPsr4 = ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::$prefixDirsPsr4;
    93             $loader->classMap = ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::$classMap;
     91            $loader->prefixLengthsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4;
     92            $loader->prefixDirsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4;
     93            $loader->classMap = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$classMap;
    9494
    9595        }, null, ClassLoader::class);
  • simpler-checkout/tags/1.1.12/vendor/composer/installed.php

    r3343605 r3344053  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.11',
    4         'version' => '1.1.11.0',
     3        'pretty_version' => '1.1.12',
     4        'version' => '1.1.12.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'e41eb4b02970b014a08b1f40c3a8155d0fb2f376',
     8        'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
    99        'name' => 'simpler-checkout/woo',
    1010        'dev' => false,
     
    1212    'versions' => array(
    1313        'simpler-checkout/woo' => array(
    14             'pretty_version' => '1.1.11',
    15             'version' => '1.1.11.0',
     14            'pretty_version' => '1.1.12',
     15            'version' => '1.1.12.0',
    1616            'type' => 'wordpress-plugin',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => 'e41eb4b02970b014a08b1f40c3a8155d0fb2f376',
     19            'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
    2020            'dev_requirement' => false,
    2121        ),
  • simpler-checkout/trunk/README.txt

    r3343605 r3344053  
    55Tested up to: 6.5
    66Requires PHP: 7.0
    7 Stable tag: 1.1.11
     7Stable tag: 1.1.12
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3535
    3636== Changelog ==
     37
     38== 1.1.12
     39Fix(compat): WC Pickup Store
    3740
    3841== 1.1.11
  • simpler-checkout/trunk/includes/Compatibility/pickup.php

    r3290493 r3344053  
    1313        function simplerwc_local_pickup_plus_after_set_checkout_data($order, $order_request)
    1414        {
    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;
    1616            if (!$pickupId || !class_exists('WC_Local_Pickup_Plus')) {
    1717                return;
     
    3434function simplerwc_compat_wc_pickup_store_set_store_name($order, $request)
    3535{
    36     if (!function_exists('wps_stores_fields')) {
     36    if (!function_exists('is_wps_chosen_shipping_method')) {
    3737        return;
    3838    }
    3939
    40     if (!($order->has_shipping_method('wc_pickup_store'))) {
     40    if (!is_wps_chosen_shipping_method()) {
    4141        return;
    4242    }
    4343
    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;
    4545    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));
    4748    }
    4849}
    4950
     51function 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
    5063add_action('simplerwc_after_set_checkout_data', 'simplerwc_compat_wc_pickup_store_set_store_name', 10, 2);
  • simpler-checkout/trunk/includes/constants.php

    r3343605 r3344053  
    11<?php
    22
    3 const SIMPLERWC_VERSION = '1.1.11';
     3const SIMPLERWC_VERSION = '1.1.12';
    44
    55function simplerwc_get_sdk_uri()
  • simpler-checkout/trunk/simpler.php

    r3343605 r3344053  
    88 * 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.
    99 * Tags: woocommerce, checkout, payments, conversion rate
    10  * Version: 1.1.11
     10 * Version: 1.1.12
    1111 * Requires at least: 5.1
    1212 * Tested up to: 6.8.1
  • simpler-checkout/trunk/vendor/autoload.php

    r3343605 r3344053  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1::getLoader();
     7return ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491::getLoader();
  • simpler-checkout/trunk/vendor/composer/autoload_real.php

    r3343605 r3344053  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1
     5class ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit268f411f9a894c7fca023b9bfc66c1c1', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit3425fda29cfc6e5ebe77b4057b28f491', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • simpler-checkout/trunk/vendor/composer/autoload_static.php

    r3343605 r3344053  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1
     7class ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8989    {
    9090        return \Closure::bind(function () use ($loader) {
    91             $loader->prefixLengthsPsr4 = ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::$prefixLengthsPsr4;
    92             $loader->prefixDirsPsr4 = ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::$prefixDirsPsr4;
    93             $loader->classMap = ComposerStaticInit268f411f9a894c7fca023b9bfc66c1c1::$classMap;
     91            $loader->prefixLengthsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixLengthsPsr4;
     92            $loader->prefixDirsPsr4 = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$prefixDirsPsr4;
     93            $loader->classMap = ComposerStaticInit3425fda29cfc6e5ebe77b4057b28f491::$classMap;
    9494
    9595        }, null, ClassLoader::class);
  • simpler-checkout/trunk/vendor/composer/installed.php

    r3343605 r3344053  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.11',
    4         'version' => '1.1.11.0',
     3        'pretty_version' => '1.1.12',
     4        'version' => '1.1.12.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'e41eb4b02970b014a08b1f40c3a8155d0fb2f376',
     8        'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
    99        'name' => 'simpler-checkout/woo',
    1010        'dev' => false,
     
    1212    'versions' => array(
    1313        'simpler-checkout/woo' => array(
    14             'pretty_version' => '1.1.11',
    15             'version' => '1.1.11.0',
     14            'pretty_version' => '1.1.12',
     15            'version' => '1.1.12.0',
    1616            'type' => 'wordpress-plugin',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => 'e41eb4b02970b014a08b1f40c3a8155d0fb2f376',
     19            'reference' => '85e82ca1b65e34f381ea89d7c5f96af156532655',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.