[Skip to main content](#vessel-content)

#   Cannot delete cart

##

- **[filiar](/forum/user/33070-filiar "View filiar's Profile")**
- [![filiar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33070-filiar "View filiar's Profile") Topic Author
- [ Offline](/forum/user/33070-filiar)

Less More

- Posts: 134
- Thank you received: 6
-
-
-
- [](https://madein-bg.com)
-

10 years 7 months ago -  10 years 7 months ago [\#234731](#234731) by [filiar](/forum/user/33070-filiar "View filiar's Profile")  *[Cannot delete cart](/forum/25-install-update/883459-cannot-delete-cart#234731 "-- url of the page with the problem -- :   произведено.bg  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.0 -- PHP version -- : 5.5.19  Hi,  The scenario that I will write does not happen every time but it happens very often.  There is the test case: 1. User adds some items to cart 2. If user deletes those items (from checkout page) the cart is not deleted he is left on checkout screen  3. Cart stays active showing total of 0 лв. (not cart is empty message as it should).  4. Going to Profile-&gt;Orders does not help, because there is no delete button  And because there is HikaMarket installed and in HM the checkout is configured to allow adding items from just one vendor the user is .  The user is not able to delete the empty order neigther to add items from another vendor, so he is not able to use the sistem at all. He is blocked. The only thing he could do is to FINNISH THE ORDER adding some items from the first vendor (if he needs such of course).  So questions: - Where could I set the delete button in orders to be visible? - Did this happen to someone else and what is the solution?  Regards")* was created by *[filiar](/forum/user/33070-filiar "View filiar's Profile")*

-- url of the page with the problem -- : [ произведено.bg](https://%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%BE.bg)
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.5.0
-- PHP version -- : 5.5.19

Hi,

The scenario that I will write does not happen every time but it happens very often.

There is the test case:
1. User adds some items to cart
2. If user deletes those items (from checkout page) the cart is not deleted he is left on checkout screen
[ ![emptyOrder.jpg](/forum/attachment/30366) ](/forum/attachment/30366 "emptyOrder.jpg")

3. Cart stays active showing total of 0 лв. (not cart is empty message as it should).
[ ![total.jpg](/forum/attachment/30367) ](/forum/attachment/30367 "total.jpg")

4. Going to Profile-&gt;Orders does not help, because there is no delete button
[ ![deleteCart.jpg](/forum/attachment/30368) ](/forum/attachment/30368 "deleteCart.jpg")

And because there is HikaMarket installed and in HM the checkout is configured to allow adding items from **just one vendor** the user is not able to add items from no vendor except those which items he already deleted.

The user is not able to delete the empty order neigther to add items from another vendor, so he is not able to use the sistem at all. He is blocked. The only thing he could do is to FINNISH THE ORDER adding some items from the first vendor (if he needs such of course).

So questions:
- Where could I set the delete button in orders to be visible?
- Did this happen to someone else and what is the solution?

Regards

- [ ![emptyOrder.jpg](/forum/attachment/30366) ](/forum/attachment/30366 "emptyOrder.jpg") [ ](/forum/attachment/30366?download=1 "emptyOrder.jpg")
- [ ![total.jpg](/forum/attachment/30367) ](/forum/attachment/30367 "total.jpg") [ ](/forum/attachment/30367?download=1 "total.jpg")
- [ ![deleteCart.jpg](/forum/attachment/30368) ](/forum/attachment/30368 "deleteCart.jpg") [ ](/forum/attachment/30368?download=1 "deleteCart.jpg")

Last edit: 10 years 7 months ago by [filiar](/forum/user/33070-filiar "View filiar's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MzQ1OS1jYW5ub3QtZGVsZXRlLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#234743](#234743) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Cannot delete cart](/forum/25-install-update/883459-cannot-delete-cart#234743 "-- url of the page with the problem -- :   произведено.bg  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5.0 -- PHP version -- : 5.5.19  Hi,  The scenario that I will write does not happen every time but it happens very often.  There is the test case: 1. User adds some items to cart 2. If user deletes those items (from checkout page) the cart is not deleted he is left on checkout screen  3. Cart stays active showing total of 0 лв. (not cart is empty message as it should).  4. Going to Profile-&gt;Orders does not help, because there is no delete button  And because there is HikaMarket installed and in HM the checkout is configured to allow adding items from just one vendor the user is .  The user is not able to delete the empty order neigther to add items from another vendor, so he is not able to use the sistem at all. He is blocked. The only thing he could do is to FINNISH THE ORDER adding some items from the first vendor (if he needs such of course).  So questions: - Where could I set the delete button in orders to be visible? - Did this happen to someone else and what is the solution?  Regards")*

Hi,

It is in Profile &gt; Cart and not Profile &gt; Order, right ?
Please edit the view "cart / showcarts" and replace: Code:

$userCurrent = hikashop_loadUser();

By: Code:

$userCurrent = hikashop_loadUser(true); $userCurrent = $userCurrent-&gt;user_cms_id;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4MzQ1OS1jYW5ub3QtZGVsZXRlLWNhcnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.045 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
