abandonned price calculation at payment time because of pbm with formbuilder
This commit is contained in:
@@ -4,7 +4,7 @@ Plugin Name: cipf_plugin
|
|||||||
Plugin URI:
|
Plugin URI:
|
||||||
Description:
|
Description:
|
||||||
Author: hugogogo
|
Author: hugogogo
|
||||||
Version: 0.3.3
|
Version: 0.3.3.1
|
||||||
Author URI:
|
Author URI:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
* calculate price
|
||||||
* update the price even if form builder already did it
|
* update the price even if form builder already did it
|
||||||
* in case it was changed from admin pannel
|
* in case it was changed from admin pannel
|
||||||
*
|
*
|
||||||
*/
|
|
||||||
$tarif = get_acf_value_CIPF($acf_card_price_choice['_name'], $acf_id);
|
$tarif = get_acf_value_CIPF($acf_card_price_choice['_name'], $acf_id);
|
||||||
$livraison = get_acf_value_CIPF($acf_card_price_delivery['_name'], $acf_id);
|
$livraison = get_acf_value_CIPF($acf_card_price_delivery['_name'], $acf_id);
|
||||||
if ($tarif !== null && $livraison !== null) {
|
if ($tarif !== null && $livraison !== null) {
|
||||||
@@ -78,6 +79,8 @@ function check_can_pay_CIPF() {
|
|||||||
$price = 0;
|
$price = 0;
|
||||||
}
|
}
|
||||||
update_field($acf_card_price_total['_name'], $price, $acf_id);
|
update_field($acf_card_price_total['_name'], $price, $acf_id);
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* price is not empty or 0
|
* price is not empty or 0
|
||||||
|
|||||||
Reference in New Issue
Block a user