From 8320aec0fe296ce5f4eb7ec14bfa87c534cb8f74 Mon Sep 17 00:00:00 2001 From: kGablo Date: Mon, 13 Jan 2025 12:34:31 +0100 Subject: [PATCH 1/2] Adding statuses for virtual products --- CHANGELOG.md | 7 ++ _dev/js/blocks/checkout-gpay.tsx | 36 ----------- _dev/js/blocks/checkout-installments.tsx | 38 ----------- _dev/js/blocks/checkout-twisto.tsx | 38 ----------- _dev/webpack.config.js | 2 +- includes/Blocks/TpayGPayBlock.php | 60 ----------------- includes/Blocks/TpayInstallmentsBlock.php | 61 ------------------ includes/Blocks/TpayTwistoBlock.php | 60 ----------------- includes/Ipn/UpdateOrderStatus.php | 26 ++++++-- includes/TpayGPay.php | 71 --------------------- includes/TpayGateways.php | 25 -------- includes/TpayInstallments.php | 71 --------------------- includes/TpaySettings.php | 34 ++++++++++ includes/TpayTwisto.php | 71 --------------------- lang/tpay-pl_PL.mo | Bin 11168 -> 11314 bytes lang/tpay-pl_PL.po | 3 + tpay.php | 22 +------ views/assets/checkout-blocks.min.asset.php | 2 +- views/assets/checkout-blocks.min.js | 2 +- views/html/pbl.php | 12 ---- 20 files changed, 69 insertions(+), 572 deletions(-) delete mode 100644 _dev/js/blocks/checkout-gpay.tsx delete mode 100644 _dev/js/blocks/checkout-installments.tsx delete mode 100644 _dev/js/blocks/checkout-twisto.tsx delete mode 100644 includes/Blocks/TpayGPayBlock.php delete mode 100644 includes/Blocks/TpayInstallmentsBlock.php delete mode 100644 includes/Blocks/TpayTwistoBlock.php delete mode 100755 includes/TpayGPay.php delete mode 100755 includes/TpayInstallments.php delete mode 100755 includes/TpayTwisto.php diff --git a/CHANGELOG.md b/CHANGELOG.md index c7913b1..2ee38b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.7.13] + +### Changed + +- Adding a division between physical and digital products. + ## [1.7.12] ### Fixed diff --git a/_dev/js/blocks/checkout-gpay.tsx b/_dev/js/blocks/checkout-gpay.tsx deleted file mode 100644 index ded4b0d..0000000 --- a/_dev/js/blocks/checkout-gpay.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import {getSetting} from '@woocommerce/settings'; -import {registerPaymentMethod} from '@woocommerce/blocks-registry'; - -let settings = getSetting('tpaygpay_data'); - -let Label = () => { - return ( - <> - - - ); -}; - -let Content = () => { - return ( - <> -
- - ) -}; - -let Block_Gateway = { - name: 'tpaygpay', - label: