Created
January 27, 2021 12:58
-
-
Save Ginnw2/9bb57337ed8c7854b3339fcac454c4d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
if (CModule::IncludeModule('sale')) { | |
$dbBasketItems = CSaleBasket::GetList(array(),array( | |
'FUSER_ID' => CSaleBasket::GetBasketUserID(), | |
'LID' => SITE_ID, | |
'ORDER_ID' => 'NULL', | |
'PRODUCT_ID' => $ID)); | |
if ($arBasket = $dbBasketItems->Fetch()) { | |
CSaleBasket::Delete($arBasket['ID']); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment