From e1f47991508be41c5df93585ed4acf274e58ef4e Mon Sep 17 00:00:00 2001 From: asus Date: Tue, 19 Mar 2024 07:27:37 +0100 Subject: [PATCH] abandonned price calculation at payment time because of pbm with formbuilder --- plugins/cipf_plugin/cipf_plugin.php | 2 +- plugins/cipf_plugin/php/paypal/user_can_pay.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/cipf_plugin/cipf_plugin.php b/plugins/cipf_plugin/cipf_plugin.php index bef0da9..2f1d083 100644 --- a/plugins/cipf_plugin/cipf_plugin.php +++ b/plugins/cipf_plugin/cipf_plugin.php @@ -4,7 +4,7 @@ Plugin Name: cipf_plugin Plugin URI: Description: Author: hugogogo -Version: 0.3.3 +Version: 0.3.3.1 Author URI: */ diff --git a/plugins/cipf_plugin/php/paypal/user_can_pay.php b/plugins/cipf_plugin/php/paypal/user_can_pay.php index 70ea388..6931764 100644 --- a/plugins/cipf_plugin/php/paypal/user_can_pay.php +++ b/plugins/cipf_plugin/php/paypal/user_can_pay.php @@ -63,12 +63,13 @@ function check_can_pay_CIPF() { } */ + /* + * ABANDONNED : formbuilder disfunction when acf field has value:label and return on label, so it's easier for us to just believe their calculation * calculate price * update the price even if form builder already did it * in case it was changed from admin pannel * - */ $tarif = get_acf_value_CIPF($acf_card_price_choice['_name'], $acf_id); $livraison = get_acf_value_CIPF($acf_card_price_delivery['_name'], $acf_id); if ($tarif !== null && $livraison !== null) { @@ -78,6 +79,8 @@ function check_can_pay_CIPF() { $price = 0; } update_field($acf_card_price_total['_name'], $price, $acf_id); + */ + /* * price is not empty or 0