Plugin Directory

Changeset 3224130


Ignore:
Timestamp:
01/17/2025 11:05:07 AM (12 months ago)
Author:
fedtaxceo
Message:

Updated to version 8.2.2: Fixed Calculate Tax when edit subscription

Location:
simple-sales-tax/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • simple-sales-tax/trunk/changelog.txt

    r3175018 r3224130  
    22
    33Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     4
     5- [8.2.2] - 2025-01-17 =
     6
     7Fixed:
     8- Calculate Tax when edit subscription
    49
    510- [8.2.1] - 2024-10-24 =
  • simple-sales-tax/trunk/includes/frontend/class-sst-checkout.php

    r3151104 r3224130  
    8181            is_checkout() ||
    8282            doing_action( 'wc_ajax_square_digital_wallet_recalculate_totals' ) ||
    83             $this->is_store_api_request()
     83            $this->is_store_api_request() ||
     84            $this->is_edit_subscription_request()
    8485        );
    8586
     
    113114        return 0 === strpos( $rest_route, '/wc/store/' );
    114115    }
     116
     117    /**
     118     * Check come from edit-subscription
     119     * @return bool
     120     */
     121    protected function is_edit_subscription_request() {
     122        global $wp;
     123        $subscriptionId = $wp->query_vars['edit-subscription'] ?? '';
     124        if(!$subscriptionId){
     125            $subscriptionId = $wp->query_vars['view-subscription'] ?? '';
     126        }
     127        return $subscriptionId > 0;
     128    }
    115129
    116130    /**
  • simple-sales-tax/trunk/readme.txt

    r3175018 r3224130  
    44Requires at least: 4.5
    55Tested up to: 6.6
    6 Stable tag: 8.2.1
     6Stable tag: 8.2.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
  • simple-sales-tax/trunk/simple-sales-tax.php

    r3175018 r3224130  
    77 * Author URI:           https://taxcloud.com
    88 * GitHub Plugin URI:    https://github.com/bporcelli/simplesalestax
    9  * Version:              8.2.1
     9 * Version:              8.2.2
    1010 * Text Domain:          simple-sales-tax
    1111 * Domain Path:          /languages/
Note: See TracChangeset for help on using the changeset viewer.