Plugin Directory

Changeset 3353917


Ignore:
Timestamp:
09/01/2025 12:23:39 PM (6 months ago)
Author:
postenbring
Message:

Version 1.1.29

Location:
posten-bring-checkout
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • posten-bring-checkout/tags/1.1.29/admin/Backoffice.php

    r3338708 r3353917  
    539539    public function add_custom_product_variant_meta_data( $index, $variation_data, $variation ) {
    540540        $product_variation = wc_get_product( $variation->ID );
    541         ?>
    542         <div class="options_group">
    543             <h4 style="margin-bottom: 0;">
    544                 <?php echo esc_html( __( 'Posten Bring Checkout - Shipping settings', 'posten-bring-checkout' ) ); ?>
    545             </h4>
    546             <div class="woocommerce_options_panel" style="padding: 0;">
    547                 <?php
    548                 woocommerce_wp_checkbox(
    549                     array(
    550                         'id'            => '_posten_bring_checkout_too_large_for_parcel_locker[' . $index . ']',
    551                         'class'         => 'checkbox',
    552                         'label'         => __( 'Too large for parcel locker', 'posten-bring-checkout' ),
    553                         'description'   => __( 'When checked, product is treated as too large for a parcel locker. This will make all parcel locker pickup points unavailable during checkout.', 'posten-bring-checkout' ),
    554                         'desc_tip'      => true,
    555                         'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_parcel_locker' ),
    556                     )
    557                 );
    558                 woocommerce_wp_checkbox(
    559                     array(
    560                         'id'            => '_posten_bring_checkout_too_large_for_mailbox[' . $index . ']',
    561                         'class'         => 'checkbox',
    562                         'label'         => __( 'Too large for mailbox', 'posten-bring-checkout' ),
    563                         'description'   => __( 'When checked, product is treated as too large for a mailbox. This will make the Mailbox parcel shipping option unavailable during checkout.', 'posten-bring-checkout' ),
    564                         'desc_tip'      => true,
    565                         'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_mailbox' ),
    566                     )
    567                 );
    568                 woocommerce_wp_checkbox(
    569                     array(
    570                         'id'            => '_posten_bring_checkout_disable_all[' . $index . ']',
    571                         'class'         => 'checkbox',
    572                         'label'         => __( "Disable Posten Bring's shipping options", 'posten-bring-checkout' ),
    573                         'description'   => __( 'When checked, all shipping options provided via Posten Bring Checkout are unavailable for this product during checkout.', 'posten-bring-checkout' ),
    574                         'desc_tip'      => true,
    575                         'value'         => $product_variation->get_meta( '_posten_bring_checkout_disable_all' ),
    576                     )
    577                 );
    578                 ?>
     541        if ($product_variation) {
     542            ?>
     543            <div class="options_group">
     544                <h4 style="margin-bottom: 0;">
     545                    <?php echo esc_html( __( 'Posten Bring Checkout - Shipping settings', 'posten-bring-checkout' ) ); ?>
     546                </h4>
     547                <div class="woocommerce_options_panel" style="padding: 0;">
     548                    <?php
     549                    woocommerce_wp_checkbox(
     550                        array(
     551                            'id'            => '_posten_bring_checkout_too_large_for_parcel_locker[' . $index . ']',
     552                            'class'         => 'checkbox',
     553                            'label'         => __( 'Too large for parcel locker', 'posten-bring-checkout' ),
     554                            'description'   => __( 'When checked, product is treated as too large for a parcel locker. This will make all parcel locker pickup points unavailable during checkout.', 'posten-bring-checkout' ),
     555                            'desc_tip'      => true,
     556                            'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_parcel_locker' ),
     557                        )
     558                    );
     559                    woocommerce_wp_checkbox(
     560                        array(
     561                            'id'            => '_posten_bring_checkout_too_large_for_mailbox[' . $index . ']',
     562                            'class'         => 'checkbox',
     563                            'label'         => __( 'Too large for mailbox', 'posten-bring-checkout' ),
     564                            'description'   => __( 'When checked, product is treated as too large for a mailbox. This will make the Mailbox parcel shipping option unavailable during checkout.', 'posten-bring-checkout' ),
     565                            'desc_tip'      => true,
     566                            'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_mailbox' ),
     567                        )
     568                    );
     569                    woocommerce_wp_checkbox(
     570                        array(
     571                            'id'            => '_posten_bring_checkout_disable_all[' . $index . ']',
     572                            'class'         => 'checkbox',
     573                            'label'         => __( "Disable Posten Bring's shipping options", 'posten-bring-checkout' ),
     574                            'description'   => __( 'When checked, all shipping options provided via Posten Bring Checkout are unavailable for this product during checkout.', 'posten-bring-checkout' ),
     575                            'desc_tip'      => true,
     576                            'value'         => $product_variation->get_meta( '_posten_bring_checkout_disable_all' ),
     577                        )
     578                    );
     579                    ?>
     580                </div>
    579581            </div>
    580         </div>
    581         <?php
     582            <?php
     583        }
    582584    }
    583585
  • posten-bring-checkout/tags/1.1.29/changelog.txt

    r3344034 r3353917  
    11*** Posten Bring Checkout Changelog ***
     2
     32025-09-01 - version 1.1.29
     4* Bugfixes
    25
    362025-08-13 - version 1.1.28
  • posten-bring-checkout/tags/1.1.29/posten-bring-checkout.php

    r3344034 r3353917  
    44 * Plugin URI:        https://wordpress.org/plugins/posten-bring-checkout/
    55 * Description:       Posten Bring Checkout plugin for WooCommerce
    6  * Version:           1.1.28
     6 * Version:           1.1.29
    77 * Author:            Posten Bring AS
    88 * Author URI:        https://www.postenbring.no/en
  • posten-bring-checkout/tags/1.1.29/readme.txt

    r3344034 r3353917  
    33Tags: woocommerce, posten, bring, shipping, checkout
    44Tested up to: 6.8
    5 Stable tag: 1.1.28
     5Stable tag: 1.1.29
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62
     63= 1.1.29 =
     64* Bugfixes
    6265
    6366= 1.1.28 =
  • posten-bring-checkout/trunk/admin/Backoffice.php

    r3338708 r3353917  
    539539    public function add_custom_product_variant_meta_data( $index, $variation_data, $variation ) {
    540540        $product_variation = wc_get_product( $variation->ID );
    541         ?>
    542         <div class="options_group">
    543             <h4 style="margin-bottom: 0;">
    544                 <?php echo esc_html( __( 'Posten Bring Checkout - Shipping settings', 'posten-bring-checkout' ) ); ?>
    545             </h4>
    546             <div class="woocommerce_options_panel" style="padding: 0;">
    547                 <?php
    548                 woocommerce_wp_checkbox(
    549                     array(
    550                         'id'            => '_posten_bring_checkout_too_large_for_parcel_locker[' . $index . ']',
    551                         'class'         => 'checkbox',
    552                         'label'         => __( 'Too large for parcel locker', 'posten-bring-checkout' ),
    553                         'description'   => __( 'When checked, product is treated as too large for a parcel locker. This will make all parcel locker pickup points unavailable during checkout.', 'posten-bring-checkout' ),
    554                         'desc_tip'      => true,
    555                         'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_parcel_locker' ),
    556                     )
    557                 );
    558                 woocommerce_wp_checkbox(
    559                     array(
    560                         'id'            => '_posten_bring_checkout_too_large_for_mailbox[' . $index . ']',
    561                         'class'         => 'checkbox',
    562                         'label'         => __( 'Too large for mailbox', 'posten-bring-checkout' ),
    563                         'description'   => __( 'When checked, product is treated as too large for a mailbox. This will make the Mailbox parcel shipping option unavailable during checkout.', 'posten-bring-checkout' ),
    564                         'desc_tip'      => true,
    565                         'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_mailbox' ),
    566                     )
    567                 );
    568                 woocommerce_wp_checkbox(
    569                     array(
    570                         'id'            => '_posten_bring_checkout_disable_all[' . $index . ']',
    571                         'class'         => 'checkbox',
    572                         'label'         => __( "Disable Posten Bring's shipping options", 'posten-bring-checkout' ),
    573                         'description'   => __( 'When checked, all shipping options provided via Posten Bring Checkout are unavailable for this product during checkout.', 'posten-bring-checkout' ),
    574                         'desc_tip'      => true,
    575                         'value'         => $product_variation->get_meta( '_posten_bring_checkout_disable_all' ),
    576                     )
    577                 );
    578                 ?>
     541        if ($product_variation) {
     542            ?>
     543            <div class="options_group">
     544                <h4 style="margin-bottom: 0;">
     545                    <?php echo esc_html( __( 'Posten Bring Checkout - Shipping settings', 'posten-bring-checkout' ) ); ?>
     546                </h4>
     547                <div class="woocommerce_options_panel" style="padding: 0;">
     548                    <?php
     549                    woocommerce_wp_checkbox(
     550                        array(
     551                            'id'            => '_posten_bring_checkout_too_large_for_parcel_locker[' . $index . ']',
     552                            'class'         => 'checkbox',
     553                            'label'         => __( 'Too large for parcel locker', 'posten-bring-checkout' ),
     554                            'description'   => __( 'When checked, product is treated as too large for a parcel locker. This will make all parcel locker pickup points unavailable during checkout.', 'posten-bring-checkout' ),
     555                            'desc_tip'      => true,
     556                            'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_parcel_locker' ),
     557                        )
     558                    );
     559                    woocommerce_wp_checkbox(
     560                        array(
     561                            'id'            => '_posten_bring_checkout_too_large_for_mailbox[' . $index . ']',
     562                            'class'         => 'checkbox',
     563                            'label'         => __( 'Too large for mailbox', 'posten-bring-checkout' ),
     564                            'description'   => __( 'When checked, product is treated as too large for a mailbox. This will make the Mailbox parcel shipping option unavailable during checkout.', 'posten-bring-checkout' ),
     565                            'desc_tip'      => true,
     566                            'value'         => $product_variation->get_meta( '_posten_bring_checkout_too_large_for_mailbox' ),
     567                        )
     568                    );
     569                    woocommerce_wp_checkbox(
     570                        array(
     571                            'id'            => '_posten_bring_checkout_disable_all[' . $index . ']',
     572                            'class'         => 'checkbox',
     573                            'label'         => __( "Disable Posten Bring's shipping options", 'posten-bring-checkout' ),
     574                            'description'   => __( 'When checked, all shipping options provided via Posten Bring Checkout are unavailable for this product during checkout.', 'posten-bring-checkout' ),
     575                            'desc_tip'      => true,
     576                            'value'         => $product_variation->get_meta( '_posten_bring_checkout_disable_all' ),
     577                        )
     578                    );
     579                    ?>
     580                </div>
    579581            </div>
    580         </div>
    581         <?php
     582            <?php
     583        }
    582584    }
    583585
  • posten-bring-checkout/trunk/changelog.txt

    r3344034 r3353917  
    11*** Posten Bring Checkout Changelog ***
     2
     32025-09-01 - version 1.1.29
     4* Bugfixes
    25
    362025-08-13 - version 1.1.28
  • posten-bring-checkout/trunk/posten-bring-checkout.php

    r3344034 r3353917  
    44 * Plugin URI:        https://wordpress.org/plugins/posten-bring-checkout/
    55 * Description:       Posten Bring Checkout plugin for WooCommerce
    6  * Version:           1.1.28
     6 * Version:           1.1.29
    77 * Author:            Posten Bring AS
    88 * Author URI:        https://www.postenbring.no/en
  • posten-bring-checkout/trunk/readme.txt

    r3344034 r3353917  
    33Tags: woocommerce, posten, bring, shipping, checkout
    44Tested up to: 6.8
    5 Stable tag: 1.1.28
     5Stable tag: 1.1.29
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62
     63= 1.1.29 =
     64* Bugfixes
    6265
    6366= 1.1.28 =
Note: See TracChangeset for help on using the changeset viewer.