CMXX - First candidate
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user