Plugin Directory

Changeset 3438045


Ignore:
Timestamp:
01/12/2026 05:58:56 PM (3 months ago)
Author:
thegeneration
Message:

Tagging version 3.4.2

Location:
svea-checkout-for-woocommerce
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • svea-checkout-for-woocommerce/tags/3.4.2/inc/Template_Handler.php

    r3398960 r3438045  
    723723        $svea_checkout_module = $svea_checkout->get();
    724724
     725        // Initialize the variable in case billing address is not set
     726        $is_company = $svea_checkout->gateway->is_company_default();
     727
    725728        // Update customer information based on given information
    726729        if ( isset( $svea_checkout_module['BillingAddress'] ) ) {
     
    784787        WC()->customer->save();
    785788
     789        // Allow plugins to hook in after customer is updated
     790        do_action(
     791            'woocommerce_sco_refresh_snippet_customer_updated',
     792            WC()->customer,
     793            [
     794                'is_company'        => $is_company,
     795                'billing_postcode'  => WC()->customer->get_billing_postcode(),
     796                'shipping_postcode' => WC()->customer->get_shipping_postcode(),
     797                'billing_country'   => WC()->customer->get_billing_country(),
     798                'shipping_country'  => WC()->customer->get_shipping_country(),
     799            ]
     800        );
     801
    786802        // Calculate shipping before totals. This will ensure any shipping methods that affect things like taxes are chosen prior to final totals being calculated. Ref: #22708.
    787803        WC()->cart->calculate_shipping();
    788804        WC()->cart->calculate_totals();
    789805
    790         // Check if the current order needs to wither be created anew or updated
     806        // Check whether the current order needs to be created anew or updated
    791807        if ( $svea_checkout->needs_new( $svea_checkout_module ) ) {
    792808            $svea_checkout_module = $svea_checkout->create();
  • svea-checkout-for-woocommerce/tags/3.4.2/readme.txt

    r3409597 r3438045  
    1010License: Apache 2.0
    1111License URI: https://www.apache.org/licenses/LICENSE-2.0
    12 Stable tag: 3.4.1
     12Stable tag: 3.4.2
    1313
    1414Supercharge your WooCommerce Store with powerful features to pay via Svea Checkout!
     
    9191== Upgrade Notice ==
    9292
     93= 3.4.2 =
     943.4.2 is a patch release
     95
    9396= 3.4.1 =
    94973.4.1 is a patch release
     
    414417
    415418== Changelog ==
     419
     420= 3.4.2 2026-01-07 =
     421- Added filter "woocommerce_sco_refresh_snippet_customer_updated" to allow third-party plugins to integrate more seamless.
    416422
    417423= 3.4.1 2025-12-03 =
  • svea-checkout-for-woocommerce/tags/3.4.2/svea-checkout-for-woocommerce.php

    r3409597 r3438045  
    1414 * Plugin URI: https://wordpress.org/plugins/svea-checkout-for-woocommerce/
    1515 * Description: Process payments in WooCommerce via Svea Checkout.
    16  * Version: 3.4.1
     16 * Version: 3.4.2
    1717 * Requires Plugins: woocommerce
    1818 * Author: The Generation AB
     
    4747         * Version of plugin
    4848         */
    49         const VERSION = '3.4.1';
     49        const VERSION = '3.4.2';
    5050
    5151        /**
  • svea-checkout-for-woocommerce/trunk/inc/Template_Handler.php

    r3398960 r3438045  
    723723        $svea_checkout_module = $svea_checkout->get();
    724724
     725        // Initialize the variable in case billing address is not set
     726        $is_company = $svea_checkout->gateway->is_company_default();
     727
    725728        // Update customer information based on given information
    726729        if ( isset( $svea_checkout_module['BillingAddress'] ) ) {
     
    784787        WC()->customer->save();
    785788
     789        // Allow plugins to hook in after customer is updated
     790        do_action(
     791            'woocommerce_sco_refresh_snippet_customer_updated',
     792            WC()->customer,
     793            [
     794                'is_company'        => $is_company,
     795                'billing_postcode'  => WC()->customer->get_billing_postcode(),
     796                'shipping_postcode' => WC()->customer->get_shipping_postcode(),
     797                'billing_country'   => WC()->customer->get_billing_country(),
     798                'shipping_country'  => WC()->customer->get_shipping_country(),
     799            ]
     800        );
     801
    786802        // Calculate shipping before totals. This will ensure any shipping methods that affect things like taxes are chosen prior to final totals being calculated. Ref: #22708.
    787803        WC()->cart->calculate_shipping();
    788804        WC()->cart->calculate_totals();
    789805
    790         // Check if the current order needs to wither be created anew or updated
     806        // Check whether the current order needs to be created anew or updated
    791807        if ( $svea_checkout->needs_new( $svea_checkout_module ) ) {
    792808            $svea_checkout_module = $svea_checkout->create();
  • svea-checkout-for-woocommerce/trunk/readme.txt

    r3409597 r3438045  
    1010License: Apache 2.0
    1111License URI: https://www.apache.org/licenses/LICENSE-2.0
    12 Stable tag: 3.4.1
     12Stable tag: 3.4.2
    1313
    1414Supercharge your WooCommerce Store with powerful features to pay via Svea Checkout!
     
    9191== Upgrade Notice ==
    9292
     93= 3.4.2 =
     943.4.2 is a patch release
     95
    9396= 3.4.1 =
    94973.4.1 is a patch release
     
    414417
    415418== Changelog ==
     419
     420= 3.4.2 2026-01-07 =
     421- Added filter "woocommerce_sco_refresh_snippet_customer_updated" to allow third-party plugins to integrate more seamless.
    416422
    417423= 3.4.1 2025-12-03 =
  • svea-checkout-for-woocommerce/trunk/svea-checkout-for-woocommerce.php

    r3409597 r3438045  
    1414 * Plugin URI: https://wordpress.org/plugins/svea-checkout-for-woocommerce/
    1515 * Description: Process payments in WooCommerce via Svea Checkout.
    16  * Version: 3.4.1
     16 * Version: 3.4.2
    1717 * Requires Plugins: woocommerce
    1818 * Author: The Generation AB
     
    4747         * Version of plugin
    4848         */
    49         const VERSION = '3.4.1';
     49        const VERSION = '3.4.2';
    5050
    5151        /**
Note: See TracChangeset for help on using the changeset viewer.