Plugin Directory

Changeset 3296458


Ignore:
Timestamp:
05/19/2025 12:41:16 PM (11 months ago)
Author:
blpaczka
Message:

Sandbox mode fixed

Location:
blpaczka
Files:
39 added
6 edited

Legend:

Unmodified
Added
Removed
  • blpaczka/trunk/README.md

    r3289966 r3296458  
    55Requires at least: 5.3
    66Tested up to: 6.6.1
    7 Stable tag: 1.2.1
     7Stable tag: 1.2.2
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    9090= 1.2.1 =
    9191* Umożliwienie działania wtyczki z wyłączonym polem "Dostawa na inny adres"
    92 *
     92
     93= 1.2.2 =
     94* Poprawki trybu sandbox
     95
    9396== English ==
    9497
     
    166169= 1.2.1 =
    167170* Fix the error when checkbox "Ship to another location" is not showed
     171
     172= 1.2.2 =
     173* Sandbox mode fix
  • blpaczka/trunk/blpaczka.php

    r3289966 r3296458  
    33 * Plugin Name:       BLPaczka
    44 * Description:       Tanie przesyłki prosto z Twojego sklepu
    5  * Version:           1.2.1
     5 * Version:           1.2.2
    66 * Author:            BLPaczka
    77 * Author URI:        https://blpaczka.com
     
    2424 */
    2525
    26 define( 'BLPACZKA_SANDBOX', get_option( 'blpaczka_sandbox_mode' ) ?? false );
     26define( 'BLPACZKA_SANDBOX', !empty( get_option( 'blpaczka_sandbox_mode' )) && get_option( 'blpaczka_sandbox_mode' ) === 'yes' ? true : false );
    2727
    2828if ( defined( 'BLPACZKA_SANDBOX' ) && BLPACZKA_SANDBOX ) {
     
    188188    $instance_name = $chosen_shipping;
    189189    $instance_id  = explode( ':', $instance_name)[1];
    190    
     190
    191191    $shipping_settings = get_option(BLPACZKA_get_options_by_instance($instance_name, $instance_id));
    192192    if ( ! empty( $shipping_settings['blpaczka_require_pickup_point'] ) && $shipping_settings['blpaczka_require_pickup_point'] === 'yes' ) {
     
    468468function BLPACZKA_display_wc_order_list_custom_column_content( $column, $order ) {
    469469
    470    
     470
    471471    $orderId = BLPACZKA_get_order_id( $order );
    472472    switch ( $column ) {
     
    494494
    495495                $shippingMethods = $order->get_shipping_methods();
    496                
     496
    497497                $shippingInstanceId = reset( $shippingMethods )->get_instance_id();
    498498                $instanceName = reset( $shippingMethods )->get_method_id();
  • blpaczka/trunk/readme.txt

    r3289966 r3296458  
    44Requires at least: 5.3
    55Tested up to: 6.6.1
    6 Stable tag: 1.2.1.
     6Stable tag: 1.2.2.
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    9191= 1.2.1 =
    9292* Umożliwienie działania wtyczki z wyłączonym polem "Dostawa na inny adres"
     93
     94= 1.2.2 =
     95* Poprawki trybu sandbox
  • blpaczka/trunk/src/BLPaczkaRestRoutes.php

    r3289966 r3296458  
    22/**
    33 * @package BLPaczka
    4  * @version 1.2.1
     4 * @version 1.2.2
    55 */
    66if ( ! defined( 'ABSPATH' ) ) {
  • blpaczka/trunk/src/BLPaczkaWooBlocks.php

    r3289966 r3296458  
    22/**
    33 * @package BLPaczka
    4  * @version 1.2.1
     4 * @version 1.2.2
    55 */
    66namespace BLPaczka\BLPaczkaWoocommerce;
  • blpaczka/trunk/src/settings.php

    r3289966 r3296458  
    33/**
    44 * @package BLPaczka
    5  * @version 1.2.1
     5 * @version 1.2.2
    66 */
    77if ( ! defined( 'ABSPATH' ) ) {
Note: See TracChangeset for help on using the changeset viewer.