Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ginnw2/9bb57337ed8c7854b3339fcac454c4d9 to your computer and use it in GitHub Desktop.
Save Ginnw2/9bb57337ed8c7854b3339fcac454c4d9 to your computer and use it in GitHub Desktop.
<?
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