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

#   Cart stay empty, after clicking on add to cart

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 8 months ago [\#194115](#194115) by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")  *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194115 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")* was created by *[hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")*

-- url of the page with the problem -- : [ www.hetbritten.nl/winkel](http://www.hetbritten.nl/winkel)
-- HikaShop version -- : 2.4.0 business
-- Joomla version -- : 3.3.4
-- PHP version -- : 5.4.28
-- Browser(s) name and version -- : Chrome 40, IE 10
-- Error-message(debug-mod must be tuned on) -- : Cart is empty

After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty !
First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public.
If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty.
What’s wrong, are there somewhere access rules i´ve forgotten to change ?

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

11 years 8 months ago [\#194204](#194204) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194204 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hi,

Turn off the option "Use AJAX when possible for add to cart buttons" of the HikaShop configuration and see if that helps.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 8 months ago [\#194311](#194311) by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")  Replied by *[hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194311 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hello,

In advanced settings I put 'Use Ajax' to No. Stil it's not possible to add a product to the cart.
I've checked if it's possible to add product is i'm logged in as a user in the system, but still no effect.

During our test we had to log in to the frontend to get to the shop. Only the menu options where in the specific test group, everything else was public. Is there something that still stands on the old rights ?

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

11 years 8 months ago [\#194356](#194356) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194356 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hi,

Ok. Please turn on the "error reporting" and "debug mode" options of the joomla configuration and make sure that your template is able to display error messages ( [ www.hikashop.com/support/support/documen...tibility-issues.html](http://www.hikashop.com/support/support/documentation/61-hikashop-compatibility-issues.html) ).

Then, try again to add the product to the cart and you should normally get an error message explaining what is the problem.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 8 months ago [\#194452](#194452) by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")  Replied by *[hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194452 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hello,

After turning on error reporting (maximum) and debug mode i tried again.
There is no error message, and hooray there’s a product in my cart. Problem solved ?
Strange thing what now appears is that my cart is visible on every other session of the shop.
Even on 2 other computer (1 is on another IP-network) my shopping cart appears, but I can’t add any products.
Next I’ve dug deeper.
If I set the quantity of items to zero and thereby empty my cart (In the session where I made it) close the session and computer. After restarting I went to the shop and tried to add a product, no avail. It wasn’t possible to add.
Looking in the database (hikshop_cart) there was a record which hadn’t any records in table hikashop_cart_product. After removing the record in hikashop_cart I was able to add a product to the cart.
Questions which I now have :
- Is there only 1 guest cart ?
- If not, how is it possible that other shop visitors can see my cart.
- If there are no products and the session is closed isn’t the cart thrown out of the database.

gr. Ronald

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTU3Ny1jYXJ0LXN0YXktZW1wdHktYWZ0ZXItY2xpY2tpbmctb24tYWRkLXRvLWNhcnQ/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 8 months ago [\#194466](#194466) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194466 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hi,

Your issue really looks like a cache issue.
Please disable all possible cache on your website, in Joomla settings, Joomla plugin, templates, third extensions, and clear it all even on your browser.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 8 months ago [\#194574](#194574) by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")  Replied by *[hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194574 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hi,

Caching in joomla was already set to off. I checked it again, nothing was on.
Caching in the browser cleared, PC restarted.
Still the problem exists.

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

11 years 8 months ago [\#194578](#194578) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194578 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hi,

Maybe you have some caching with your Joomla template so check its settings.
Maybe you have caching on your web server so check on that.
Maybe it is a glitch with the user session handling on your web server. Try to change the "session handler" option of the Joomla configuration and see if that helps.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 8 months ago -  11 years 8 months ago [\#194683](#194683) by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")  Replied by *[hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194683 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hello,
Template (protostar) has no caching, webserver has also no caching (asked the provider).
Tried to ‘reset’ session handler, but no success. Still it is not possible to add a product to the cart.

I´ve removed all the items from the table hikashop_cart and hikashop_cart_product. Next it was possible to add a product. Hereby I discovered that a user ID was filled in, instead of 0 it was number 843. Just like someone was logged in. User 843 is no user who can log in.
I can’t get the reason why this user ID is sent with the action ‘add to cart’

I've tested some more. If I login as a registered user than it goes very well. Each user has its own cart and isn't visible for other users.

Last edit: 11 years 8 months ago by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile"). Reason: Further testing

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 8 months ago -  11 years 8 months ago [\#194723](#194723) by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")  Replied by *[hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194723 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Seams that i've found the problem.
We are using SEBLOD for a multi-site environment this generates the user ID 843.
By setting this on 0, it seems that we can solve the problem.
This is only possible if I change the rights within the multi site environment.
After done this, half of the site doesn't work anymore.

Therefore the question :
Can I change script(s) from HikaShop so that ID 843 is seen as public/guest (ID 0)
(which script and parameter)

Last edit: 11 years 8 months ago by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile").

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

11 years 8 months ago [\#194741](#194741) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#194741 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hi,

That's not easy.
HikaShop uses these variables:
$user = JFactory::getUser();
$user-&gt;guest
$user-&gt;id
in many places everywhere on the frontend so that it can behave properly.
It would require a lot of modifications and testing in order to change that.
I'm guessing the main file where you want to do modifications is the administrator/components/com_hikashop/classes/cart.php
but there might be other places where that would be necessary.

The following user(s) said Thank You: [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 8 months ago [\#195579](#195579) by [hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")  Replied by *[hetbritten@gmail.com](/forum/user/36163-hetbritten-gmail-com "View hetbritten@gmail.com's Profile")* on topic *[Cart stay empty, after clicking on add to cart](/forum/27-checkout/875577-cart-stay-empty-after-clicking-on-add-to-cart#195579 "-- url of the page with the problem -- :   www.hetbritten.nl/winkel  -- HikaShop version -- : 2.4.0 business -- Joomla version -- : 3.3.4 -- PHP version -- : 5.4.28 -- Browser(s) name and version -- : Chrome 40, IE 10 -- Error-message(debug-mod must be tuned on) -- : Cart is empty  After clicking on add to cart the splash screen appears. ´Continu shopping or go to checkout´ when it disappears the cart stays empty ! First we had it set up in a protected location on our site to test and build the complete shop. After it was ready and thoroughly tested we decided to set it online. Therefore we changed the access from all articles and menus to public. If we go to the shop, to ie. CD’s and click on add to cart (aan winkelwagen toevoegen) it seems to function but the cart stays empty. What’s wrong, are there somewhere access rules i´ve forgotten to change ?")*

Hi,

After research it's to much work to change every thing.
We decided to put the shop in a different subdomain, with a new database and no mix-up with de SEBLOD environment.

Thank you very much for the effort.

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

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