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

#   error "the cart is empty" when adding to wishlist

##

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 11 months ago [\#223248](#223248) by [skot](/forum/user/39484-skot "View skot's Profile")  *[error "the cart is empty" when adding to wishlist](/forum/41-wishlist/880931-error-the-cart-is-empty-when-adding-to-wishlist#223248 "-- url of the page with the problem -- :   capsulz.ru/index.php/woman/product/1854-...category&#95;pathway-105  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.0.0 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : cart is empty  Hello,  I'm having a problem with the usage of the wishlist option. When my cart is empty, and I try to add something to the wishlist, it just displays an error message &quot;the cart is empty&quot; So then I tried with a non empty cart and this time if I try to add a product to the wishlist, it just sends me back to my cart page without adding the wishlisted product anywhere.  My final goal is to mark the wihlisted products in a certain way inthe product listing and the product page - for example with a little heart icon - indicating that this product has been previously added to the wishlist. Is there a way to read the &quot;wishlisted status&quot; of a product in order to apply a &quot;bookmarked icon&quot; to it??  Many Thanks Raphael")* was created by *[skot](/forum/user/39484-skot "View skot's Profile")*

-- url of the page with the problem -- : [ capsulz.ru/index.php/woman/product/1854-...category\_pathway-105](http://capsulz.ru/index.php/woman/product/1854-copenhagen/category_pathway-105)
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.0.0
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : cart is empty

Hello,

I'm having a problem with the usage of the wishlist option.
When my cart is empty, and I try to add something to the wishlist, it just displays an error message "the cart is empty"
So then I tried with a non empty cart and this time if I try to add a product to the wishlist, it just sends me back to my cart page without adding the wishlisted product anywhere.

My final goal is to mark the wihlisted products in a certain way inthe product listing and the product page - for example with a little heart icon - indicating that this product has been previously added to the wishlist. Is there a way to read the "wishlisted status" of a product in order to apply a "bookmarked icon" to it??

Many Thanks
Raphael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4MDkzMS1lcnJvci10aGUtY2FydC1pcy1lbXB0eS13aGVuLWFkZGluZy10by13aXNobGlzdD90bXBsPW1hcmtkb3du) 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 11 months ago [\#223293](#223293) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[error "the cart is empty" when adding to wishlist](/forum/41-wishlist/880931-error-the-cart-is-empty-when-adding-to-wishlist#223293 "-- url of the page with the problem -- :   capsulz.ru/index.php/woman/product/1854-...category&#95;pathway-105  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.0.0 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : cart is empty  Hello,  I'm having a problem with the usage of the wishlist option. When my cart is empty, and I try to add something to the wishlist, it just displays an error message &quot;the cart is empty&quot; So then I tried with a non empty cart and this time if I try to add a product to the wishlist, it just sends me back to my cart page without adding the wishlisted product anywhere.  My final goal is to mark the wihlisted products in a certain way inthe product listing and the product page - for example with a little heart icon - indicating that this product has been previously added to the wishlist. Is there a way to read the &quot;wishlisted status&quot; of a product in order to apply a &quot;bookmarked icon&quot; to it??  Many Thanks Raphael")*

Hi,

Do you have enabled the "multi cart" option in Configuration &gt; Features &gt; Wishlist ?
When adding to wishlist, you must be logged in on the website, once logged in, a message is displayed informing that the product has been correctly added to the wishlist.

To mark the wishlisted products in a listing, you can edit the view "product / listing_img_title" (or another one based on your settings) and in that view add PHP code to get the content of the cart and then display an icon or not based on the product id and its presence in the wishlist. This require PHP knowledges.

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 11 months ago [\#223312](#223312) by [skot](/forum/user/39484-skot "View skot's Profile")  Replied by *[skot](/forum/user/39484-skot "View skot's Profile")* on topic *[error "the cart is empty" when adding to wishlist](/forum/41-wishlist/880931-error-the-cart-is-empty-when-adding-to-wishlist#223312 "-- url of the page with the problem -- :   capsulz.ru/index.php/woman/product/1854-...category&#95;pathway-105  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.0.0 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : cart is empty  Hello,  I'm having a problem with the usage of the wishlist option. When my cart is empty, and I try to add something to the wishlist, it just displays an error message &quot;the cart is empty&quot; So then I tried with a non empty cart and this time if I try to add a product to the wishlist, it just sends me back to my cart page without adding the wishlisted product anywhere.  My final goal is to mark the wihlisted products in a certain way inthe product listing and the product page - for example with a little heart icon - indicating that this product has been previously added to the wishlist. Is there a way to read the &quot;wishlisted status&quot; of a product in order to apply a &quot;bookmarked icon&quot; to it??  Many Thanks Raphael")*

Salut Xavier,

Yes, i'm logged in when testing (you can try too to see what happens - use test/test as login/pass). And multi cart is also enabled.

If you could give me a little bit more details about how to retrieve a wishlist and a product I'd, I think I could manage. Also, if I want to do the same in the products category listing, which php file should I edit then?

Many thanks
Raphael

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4MDkzMS1lcnJvci10aGUtY2FydC1pcy1lbXB0eS13aGVuLWFkZGluZy10by13aXNobGlzdD90bXBsPW1hcmtkb3du) 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 11 months ago [\#223339](#223339) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[error "the cart is empty" when adding to wishlist](/forum/41-wishlist/880931-error-the-cart-is-empty-when-adding-to-wishlist#223339 "-- url of the page with the problem -- :   capsulz.ru/index.php/woman/product/1854-...category&#95;pathway-105  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.0.0 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : cart is empty  Hello,  I'm having a problem with the usage of the wishlist option. When my cart is empty, and I try to add something to the wishlist, it just displays an error message &quot;the cart is empty&quot; So then I tried with a non empty cart and this time if I try to add a product to the wishlist, it just sends me back to my cart page without adding the wishlisted product anywhere.  My final goal is to mark the wihlisted products in a certain way inthe product listing and the product page - for example with a little heart icon - indicating that this product has been previously added to the wishlist. Is there a way to read the &quot;wishlisted status&quot; of a product in order to apply a &quot;bookmarked icon&quot; to it??  Many Thanks Raphael")*

Hi,

The wishlist is correctly updated when adding a product, you can see that thanks to this url:
[ capsulz.ru/index.php/profile/cart/showcarts/cart\_type-wishlist](http://capsulz.ru/index.php/profile/cart/showcarts/cart_type-wishlist)

But the system should not redirect to the checkout when adding a product to the wishlist.
Could you try to download the latest version of HikaShop from our website and install it over the current one ?
There was a fix made which could potentially solve your issue.

If that's not the case and you don't have overrides on cart / wishlist views so a backend and ftp access would be welcome to debug this issue directly on your end. You can send these informations via our contact form (with a link to this topic):
[ hikashop.com/support/contact-us.html](https://hikashop.com/support/contact-us.html)

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

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