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

#   Ajax Cart updated only after user go to another page or refresh page

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

8 years 5 months ago -  8 years 5 months ago [\#293629](#293629) by [filippo](/forum/user/54494-filippo "View filippo's Profile")  *[Ajax Cart updated only after user go to another page or refresh page](/forum/27-checkout/894914-ajax-cart-updated-only-after-user-go-to-another-page-or-refresh-page#293629 "-- url of the page with the problem -- :   www.montinibags.it  -- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : chrome any version -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$cart&#95;id in /var/www/mysite/mytemplatefolder/mytemplate/html/com&#95;hikashop/product/cart.php on line 221  Hi, as in subject: when I add products to cart I get empty cart message. If I refresh page or move to another page the cart works and show all the products added. With debug on I get only a notice in the cart, no errors in other pages. Any solution please? Thank you.  &#91;EDIT&#93; I've disabled the legacy add to cart mode just to try and the problem still remain :( Now, as my client ask, I've disabled the ajax add ti cart because we need a working site. If you need I can give a temporary superadmin credential just to made some tests and solve my problem. Thank you.")* was created by *[filippo](/forum/user/54494-filippo "View filippo's Profile")*

-- url of the page with the problem -- : [ www.montinibags.it](http://www.montinibags.it)
-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 5.6.33
-- Browser(s) name and version -- : chrome any version
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$cart_id in /var/www/mysite/mytemplatefolder/mytemplate/html/com_hikashop/product/cart.php on line 221

Hi, as in subject: when I add products to cart I get empty cart message.
If I refresh page or move to another page the cart works and show all the products added.
With debug on I get only a notice in the cart, no errors in other pages.
Any solution please?
Thank you.

[EDIT]
I've disabled the legacy add to cart mode just to try and the problem still remain ![:(](/media/kunena/emoticons/22.png ":(")
Now, as my client ask, I've disabled the ajax add ti cart because we need a working site.
If you need I can give a temporary superadmin credential just to made some tests and solve my problem.
Thank you.

Last edit: 8 years 5 months ago by [filippo](/forum/user/54494-filippo "View filippo's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 5 months ago [\#293631](#293631) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ajax Cart updated only after user go to another page or refresh page](/forum/27-checkout/894914-ajax-cart-updated-only-after-user-go-to-another-page-or-refresh-page#293631 "-- url of the page with the problem -- :   www.montinibags.it  -- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : chrome any version -- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$cart&#95;id in /var/www/mysite/mytemplatefolder/mytemplate/html/com&#95;hikashop/product/cart.php on line 221  Hi, as in subject: when I add products to cart I get empty cart message. If I refresh page or move to another page the cart works and show all the products added. With debug on I get only a notice in the cart, no errors in other pages. Any solution please? Thank you.  &#91;EDIT&#93; I've disabled the legacy add to cart mode just to try and the problem still remain :( Now, as my client ask, I've disabled the ajax add ti cart because we need a working site. If you need I can give a temporary superadmin credential just to made some tests and solve my problem. Thank you.")*

Hi,

This looks like a bug of your template.
Rename the file /var/www/mysite/mytemplatefolder/mytemplate/html/com_hikashop/product/cart.php in order to deactivate it so that it can use the default display of the cart module of HikaShop and turn off the "add to cart legacy" setting of the HikaShop configuration and it should work fine.

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

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