- Posts: 2
- Thank you received: 0
Cart shows different content when adding product
10 years 6 months ago #232782
by Tybalt
Cart shows different content when adding product was created by Tybalt
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4.42
-- Browser(s) name and version -- : Chrome 48.0.2564.116
Hi!
When I am trying to add some of my products the cart gets empty.
Products that do not have a specification is no problem they are added correctly to the cart. But some of the products (not all) with a specification on them will empty the cart (or more like starting a new cart).
The interesting part is that the products with specification that is added correctly to the cart, can be used to pull out the old cart when the cart has been empty by an product with specification that is missbehaving.
Let me explain by example:
Adding a pen will result in a cart with a pen.
After that adding a sweater in size large (specification) will result in a cart with a pen and a sweater.
After that adding a t-shirt in size large (specification) will result in a cart with only a t-shirt.
After that adding a pen will result in a cart with a t-shirt and a pen.
After that adding again a sweater in size large (specification) will result in a cart with a pen and 2 sweaters. (Back to the first cart.)
After that adding a t-shirt in size large (specification) will result in a cart with 2 t-shirt and a pen. (Back to second cart again.)
And so on....
What may cause this problem?
Best regards,
Mikael
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4.42
-- Browser(s) name and version -- : Chrome 48.0.2564.116
Hi!
When I am trying to add some of my products the cart gets empty.
Products that do not have a specification is no problem they are added correctly to the cart. But some of the products (not all) with a specification on them will empty the cart (or more like starting a new cart).
The interesting part is that the products with specification that is added correctly to the cart, can be used to pull out the old cart when the cart has been empty by an product with specification that is missbehaving.
Let me explain by example:
Adding a pen will result in a cart with a pen.
After that adding a sweater in size large (specification) will result in a cart with a pen and a sweater.
After that adding a t-shirt in size large (specification) will result in a cart with only a t-shirt.
After that adding a pen will result in a cart with a t-shirt and a pen.
After that adding again a sweater in size large (specification) will result in a cart with a pen and 2 sweaters. (Back to the first cart.)
After that adding a t-shirt in size large (specification) will result in a cart with 2 t-shirt and a pen. (Back to second cart again.)
And so on....
What may cause this problem?
Best regards,
Mikael
Please Log in or Create an account to join the conversation.
10 years 6 months ago - 10 years 6 months ago #232802
by Tybalt
Replied by Tybalt on topic Solved, Cart show different content adding product
Problem solved!
It was an absolute path on some of the products that caused the problem. When I changed "Canonical URL" under the section SEO on these products to a relative path (e.g. removed
) the problem went away. 
Best regards,
Mikael
It was an absolute path on some of the products that caused the problem. When I changed "Canonical URL" under the section SEO on these products to a relative path (e.g. removed
Code:
"http://domainname.com/"
Best regards,
Mikael
Last edit: 10 years 6 months ago by Tybalt.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
10 years 6 months ago #232787
by Mohamed Thelji
Replied by Mohamed Thelji on topic Cart shows different content when adding product
Hello Mikael,
it's most likely due to a caching issue. Make sure that there is no cache active on the hosted server, not in Joomla but also not on the server itself.
it's most likely due to a caching issue. Make sure that there is no cache active on the hosted server, not in Joomla but also not on the server itself.
Please Log in or Create an account to join the conversation.
Time to create page: 0.215 seconds