Product images disappear when the product is in cart
Hi, Im using TC vers. 2.1.3 with Umbraco vers.6.1.6.
Problem: When a customer buys a product it goes in cart okay, but when they refreshes or click on product link in cart, all the images to the product is gone?
It comes back if I go to backend and republish the product.
It's like the data somehow disappear form the XML?
Yes, you are right, but if you buy the same product again og then go to the frontpage and then click on the product "Plet" the images is gone on the productside?
Yes, it's pretty weird. It's a pretty long code on my product page. I'm not using TC normal product view code. But I found out that if I go to Umbracosettings.config at set <UmbracoLibraryCacheDuration>1800</UmbracoLibraryCacheDuration> to <UmbracoLibraryCacheDuration>0</UmbracoLibraryCacheDuration> It works all around.
So something is getting the cache smashed when the product goes in cart?
I have a few extra packages installed on my solution: - Config Tree - Embedded Content - tswe.log4umbraco - XSLTsearch
The add to cart only adds a new order id to the users session. So if something is going wrong, maybe it's because you handle the order in some way in your xslt?
Do you have the product macro set to be cached for at certain time, for optimization?
Well, I did have some caching on some of my macros, but it was the same. Now I've turned it off. And the only way it works now is, that Umbracosettings is set to 0.
I don't see how it's something Tea Commerce could do by default. If I were you I would start removing stuff from my product page, to debug and find the problem. There must be a logical Umbraco explanaition hidden in there somehow. Rip it appart and make a simpler example and see if that will work.
Product images disappear when the product is in cart
Hi,
Im using TC vers. 2.1.3 with Umbraco vers.6.1.6.
Problem:
When a customer buys a product it goes in cart okay, but when they refreshes or click on product link in cart, all the images to the product is gone?
It comes back if I go to backend and republish the product.
It's like the data somehow disappear form the XML?
Does enyone have an idea why.
/Palle
Hi Palle,
It's probably because you link to the variant and not the product. Check out the url and change it if it's wrong.
/Rune
Hi Rune.
It doesn't looks likes that's the issue. The link is okay.
If it's for any use, this is the link to my developer site: http://geilsk.attcloud.dk/
/Palle
It does look a lot like it's the link, that's the problem. The correct link:
http://geilsk.attcloud.dk/butik/produkter/nederdele/pletskud/
And the link from the cart:
http://geilsk.attcloud.dk/butik/produkter/nederdele/pletskud/tynd-uld/
Just change the link in the cart, and you're good to go.
/Rune
Yes, you are right, but if you buy the same product again og then go to the frontpage and then click on the product "Plet" the images is gone on the productside?
Hm, yes that actually looks weird. Please post your code for the page. Maybe something obvious is wrong. There must be a logical explanaition :)
/Rune
Yes, it's pretty weird.
It's a pretty long code on my product page. I'm not using TC normal product view code.
But I found out that if I go to Umbracosettings.config at set <UmbracoLibraryCacheDuration>1800</UmbracoLibraryCacheDuration> to <UmbracoLibraryCacheDuration>0</UmbracoLibraryCacheDuration> It works all around.
So something is getting the cache smashed when the product goes in cart?
I have a few extra packages installed on my solution:
- Config Tree
- Embedded Content
- tswe.log4umbraco
- XSLTsearch
The add to cart only adds a new order id to the users session. So if something is going wrong, maybe it's because you handle the order in some way in your xslt?
Do you have the product macro set to be cached for at certain time, for optimization?
/Rune
Well, I did have some caching on some of my macros, but it was the same. Now I've turned it off.
And the only way it works now is, that Umbracosettings is set to 0.
Hi Palle,
I don't see how it's something Tea Commerce could do by default. If I were you I would start removing stuff from my product page, to debug and find the problem. There must be a logical Umbraco explanaition hidden in there somehow. Rip it appart and make a simpler example and see if that will work.
/Rune
Hi Rune.
Yeps. I'll go debug. Thanks for your time :)
Please let us know what you find
/Rune
is working on a reply...