- Posts: 7
- Thank you received: 0
Cart stay empty, after clicking on add to cart
- hetbritten@gmail.com
-
Topic Author
- Offline
Less
More
11 years 8 months ago #194115
by hetbritten@gmail.com
-- 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 ?
-- 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 or Create an account to join the conversation.
11 years 8 months ago #194204
by nicolas
Replied by nicolas on topic Cart stay empty, after clicking on add to cart
Hi,
Turn off the option "Use AJAX when possible for add to cart buttons" of the HikaShop configuration and see if that helps.
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 or Create an account to join the conversation.
- hetbritten@gmail.com
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
11 years 8 months ago #194311
by hetbritten@gmail.com
Replied by hetbritten@gmail.com on topic Cart stay empty, after clicking on add to cart
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 ?
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 or Create an account to join the conversation.
11 years 8 months ago #194356
by nicolas
Replied by nicolas on topic Cart stay empty, after clicking on add to cart
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 ).
Then, try again to add the product to the cart and you should normally get an error message explaining what is the problem.
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 ).
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 or Create an account to join the conversation.
- hetbritten@gmail.com
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
11 years 8 months ago #194452
by hetbritten@gmail.com
Replied by hetbritten@gmail.com on topic Cart stay empty, after clicking on add to cart
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
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 or Create an account to join the conversation.
11 years 8 months ago #194466
by Xavier
Replied by Xavier on topic Cart stay empty, after clicking on add to cart
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.
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 or Create an account to join the conversation.
- hetbritten@gmail.com
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
11 years 8 months ago #194574
by hetbritten@gmail.com
Replied by hetbritten@gmail.com on topic Cart stay empty, after clicking on add to cart
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.
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 or Create an account to join the conversation.
11 years 8 months ago #194578
by nicolas
Replied by nicolas on topic Cart stay empty, after clicking on add to cart
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.
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 or Create an account to join the conversation.
- hetbritten@gmail.com
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
11 years 8 months ago - 11 years 8 months ago #194683
by hetbritten@gmail.com
Replied by hetbritten@gmail.com on topic Cart stay empty, after clicking on add to cart
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.
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. Reason: Further testing
Please Log in or Create an account to join the conversation.
- hetbritten@gmail.com
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
11 years 8 months ago - 11 years 8 months ago #194723
by hetbritten@gmail.com
Replied by hetbritten@gmail.com on topic Cart stay empty, after clicking on add to cart
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)
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.
Please Log in or Create an account to join the conversation.
11 years 8 months ago #194741
by nicolas
Replied by nicolas on topic Cart stay empty, after clicking on add to cart
Hi,
That's not easy.
HikaShop uses these variables:
$user = JFactory::getUser();
$user->guest
$user->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.
That's not easy.
HikaShop uses these variables:
$user = JFactory::getUser();
$user->guest
$user->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
Please Log in or Create an account to join the conversation.
- hetbritten@gmail.com
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
11 years 8 months ago #195579
by hetbritten@gmail.com
Replied by hetbritten@gmail.com on topic Cart stay empty, after clicking on add to cart
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.
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 or Create an account to join the conversation.
Time to create page: 0.072 seconds