Не удаляется товар из корзины Битрикс (как удалить товар из корзины)

Скорей всего это из-за того что где-то подключается еще один компонент корзины, например в header.php, рассмотрим удаление через AJAX.

JS

<script>
function delfrombasket(ID) {
var deletebasketid = ID;
$.ajax({type: ‘POST’, url: «/ajax/basket_del.php», data: { deletebasketid: ID }, success:function(result){ window.location.reload(); }

});
}

</script>

PHP

<a href=»/personal/basket/?action=delete&id=<?=$arItem[‘ID’];?>» onclick=»delfrombasket(<?=$arItem[‘ID’];?>)»></a>

ajax/basket_del.php

<? require_once («../bitrix/modules/main/include.php»);?>
<?CModule::IncludeModule(«sale»);
CModule::IncludeModule(«catalog»);
CSaleBasket::Delete($_REQUEST[«deletebasketid»]);
?>

Не удаляется товар из корзины Битрикс (как удалить товар из корзины)

9 мыслей о “Не удаляется товар из корзины Битрикс (как удалить товар из корзины)

  • 20.03.2024 в 23:10
    Permalink

    Wow, fantastic weblog format! How lengthy have you been blogging for?
    you made running a blog glance easy. The full glance of your website is fantastic, as
    neatly as the content! You can see similar here
    najlepszy sklep

  • 22.03.2024 в 02:47
    Permalink

    Wow, fantastic weblog format! How long have you been blogging for?
    you made running a blog look easy. The total look of your web site is great, as well as the content material!
    You can see similar here dobry sklep

  • 23.03.2024 в 13:11
    Permalink

    Wow, superb blog format! How lengthy have you been blogging for?
    you make blogging glance easy. The entire glance of your site is wonderful,
    let alone the content material! You can see similar here sklep internetowy

  • 23.03.2024 в 16:59
    Permalink

    Wow, wonderful weblog format! How lengthy have you ever been blogging for?
    you make running a blog look easy. The entire look of your site is fantastic, let alone the content!
    You can see similar here sklep

  • 28.03.2024 в 16:05
    Permalink

    Hello! Do you know if they make any plugins to assist with SEO?

    I’m trying to get my blog to rank for some targeted
    keywords but I’m not seeing very good success. If you know of any please share.
    Thanks! You can read similar article here: Dobry sklep

  • 28.03.2024 в 17:50
    Permalink

    Hi there! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
    If you know of any please share. Cheers! You can read similar article here: Najlepszy sklep

  • 03.04.2024 в 19:12
    Permalink

    Hello there! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for
    some targeted keywords but I’m not seeing very good results.
    If you know of any please share. Kudos! I saw similar article here: Scrapebox AA List

  • 28.06.2024 в 12:00
    Permalink

    Insightful read! I found your perspective very engaging. For more detailed information, visit: READ MORE. Eager to see what others have to say!

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *