CMXX - First candidate

This commit is contained in:
“VeLiTi”
2025-03-05 20:45:35 +01:00
parent 3a52632d61
commit faf5a5156b
29 changed files with 588 additions and 1053 deletions

View File

@@ -55,16 +55,22 @@ if ($command == 'update'){
//CHECK IF PAYMENT STATUS is PAID (1)
if(isset($post_content['payment_status']) && $post_content['payment_status'] == 1){
//check if GIFTCARD ID IS PROVIDED AND NOT EMPTY
if(isset($post_content['giftcard_categoryID']) && $post_content['giftcard_categoryID'] != ''){
//CHECK FOR GIFTCARDS IN ORDER AND CREATE WHEN AVAILABLE AND NOT CREATED YET
createGiftCart($pdo, $post_content['id'], $post_content['giftcard_categoryID'],$partner_product);
//remove giftcard_categoryID from $post_content array
unset($post_content['giftcard_categoryID']);
}
if(isset($post_content['giftcard_categoryID'])){
//remove giftcard_categoryID from $post_content array
unset($post_content['giftcard_categoryID']);
}
}
}