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

#   No Cart Found When Last Item is Deleted

##

- **[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")**
- [![Ed&#95;Hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile") Topic Author
- [ Offline](/forum/user/33922-ed-hika)

Less More

- Posts: 109
- Thank you received: 5
-
-

11 years 11 months ago [\#184034](#184034) by [Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")  *[No Cart Found When Last Item is Deleted](/forum/35-orders-management/873782-no-cart-found-when-last-item-is-deleted#184034 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Hikashop mistakenly displays a no cart found item when the last item is deleted from the cart/showcart.php view.  This requires a menu item to display the cart in the cart/showcart view.  The following sequence is required to produce the error:  a) add a product to the cart b) log out c) log back in d) go to cart/showcart via the menu link e) remove the product(s) until the cart is empty  The system then displays the &quot;No cart found&quot; message (please see attached).  Note - this message does not appear when the user does not log out and log back in between adding the products and deleting the products from the cart. I.e. when the following sequence is used, the message does not appear (which is the correct behaviour): i) add a product ii) go to cart/showcart via the menu link iii) remove the product(s) until the cart is empty  I suspect that the Cart details are not full repopulated upon log in.  Please could you let me know how to fix this problem?  Thanks.  Take care!")* was created by *[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hello, there.

Good evening!

Hikashop mistakenly displays a no cart found item when the last item is deleted from the cart/showcart.php view.

This requires a menu item to display the cart in the cart/showcart view.

The following sequence is required to produce the error:

a) add a product to the cart
b) log out
c) log back in
d) go to cart/showcart via the menu link
e) remove the product(s) until the cart is empty

The system then displays the "No cart found" message (please see attached).

Note - this message does not appear when the user does not log out and log back in between adding the products and deleting the products from the cart. I.e. when the following sequence is used, the message does not appear (which is the correct behaviour):
i) add a product
ii) go to cart/showcart via the menu link
iii) remove the product(s) until the cart is empty

I suspect that the Cart details are not full repopulated upon log in.

Please could you let me know how to fix this problem?

Thanks.

Take care!

- [ ![NoCartFound.png](/forum/attachment/21323) ](/forum/attachment/21323 "NoCartFound.png") [ ](/forum/attachment/21323?download=1 "NoCartFound.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3Mzc4Mi1uby1jYXJ0LWZvdW5kLXdoZW4tbGFzdC1pdGVtLWlzLWRlbGV0ZWQ/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)
-

11 years 11 months ago [\#184093](#184093) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No Cart Found When Last Item is Deleted](/forum/35-orders-management/873782-no-cart-found-when-last-item-is-deleted#184093 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Hikashop mistakenly displays a no cart found item when the last item is deleted from the cart/showcart.php view.  This requires a menu item to display the cart in the cart/showcart view.  The following sequence is required to produce the error:  a) add a product to the cart b) log out c) log back in d) go to cart/showcart via the menu link e) remove the product(s) until the cart is empty  The system then displays the &quot;No cart found&quot; message (please see attached).  Note - this message does not appear when the user does not log out and log back in between adding the products and deleting the products from the cart. I.e. when the following sequence is used, the message does not appear (which is the correct behaviour): i) add a product ii) go to cart/showcart via the menu link iii) remove the product(s) until the cart is empty  I suspect that the Cart details are not full repopulated upon log in.  Please could you let me know how to fix this problem?  Thanks.  Take care!")*

Hi,

This is a session issue, while in the session the cart is kept even if it's empty.
But as soon as you log out, so there is no more cart stored in session so when loggin back it display the message because there is indeed no more cart attached to the customer.

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

- **[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")**
- [![Ed&#95;Hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile") Topic Author
- [ Offline](/forum/user/33922-ed-hika)

Less More

- Posts: 109
- Thank you received: 5
-
-

11 years 11 months ago [\#184095](#184095) by [Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")  Replied by *[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")* on topic *[No Cart Found When Last Item is Deleted](/forum/35-orders-management/873782-no-cart-found-when-last-item-is-deleted#184095 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Hikashop mistakenly displays a no cart found item when the last item is deleted from the cart/showcart.php view.  This requires a menu item to display the cart in the cart/showcart view.  The following sequence is required to produce the error:  a) add a product to the cart b) log out c) log back in d) go to cart/showcart via the menu link e) remove the product(s) until the cart is empty  The system then displays the &quot;No cart found&quot; message (please see attached).  Note - this message does not appear when the user does not log out and log back in between adding the products and deleting the products from the cart. I.e. when the following sequence is used, the message does not appear (which is the correct behaviour): i) add a product ii) go to cart/showcart via the menu link iii) remove the product(s) until the cart is empty  I suspect that the Cart details are not full repopulated upon log in.  Please could you let me know how to fix this problem?  Thanks.  Take care!")*

Thanks, Xavier.

I can't make sense of your response in light of the configuration, though. You mentioned that this is a session issue and that "as soon as you log out, so there is no more cart stored in session". However, in Hikashop we can configure the Cart retaining period to x number of days. Hence, when we log out and log back in, Hikashop remembers the items that have been ordered but not yet confirmed.

It just seems that Hikashop retains some information but not the cart ID (which I think is the most important bit of info).

Please could you shed some more light on this?

Thanks.

Take care!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3Mzc4Mi1uby1jYXJ0LWZvdW5kLXdoZW4tbGFzdC1pdGVtLWlzLWRlbGV0ZWQ/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)
-

11 years 11 months ago [\#184099](#184099) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[No Cart Found When Last Item is Deleted](/forum/35-orders-management/873782-no-cart-found-when-last-item-is-deleted#184099 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Hikashop mistakenly displays a no cart found item when the last item is deleted from the cart/showcart.php view.  This requires a menu item to display the cart in the cart/showcart view.  The following sequence is required to produce the error:  a) add a product to the cart b) log out c) log back in d) go to cart/showcart via the menu link e) remove the product(s) until the cart is empty  The system then displays the &quot;No cart found&quot; message (please see attached).  Note - this message does not appear when the user does not log out and log back in between adding the products and deleting the products from the cart. I.e. when the following sequence is used, the message does not appear (which is the correct behaviour): i) add a product ii) go to cart/showcart via the menu link iii) remove the product(s) until the cart is empty  I suspect that the Cart details are not full repopulated upon log in.  Please could you let me know how to fix this problem?  Thanks.  Take care!")*

Hmmm in the showcart view, we get the cart id from the session as in any other views.
More debug on the showcart function of the "components/com_hikashop/views/cart/view.html.php" file will be required.

Checks near the line: Code:

$cart_id = JRequest::getInt('cart_id',''); if(empty($cart_id) &#124;&#124; $cart_id == 0){ $cart_id = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.'.$cart_type.'_id', 0, 'int' ); if($cart_id == 0){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3Mzc4Mi1uby1jYXJ0LWZvdW5kLXdoZW4tbGFzdC1pdGVtLWlzLWRlbGV0ZWQ/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.064 seconds

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