Page 1 of 1

Modify the basket/mini layout

Posted: 17 Aug 2015, 21:49
by Bananamoon
Hi! Thought I'd post it in another topic, so if people bump into the same problem they might end up here :)

Soooo, I think I figured all out how the views and components and all work, I managed to modify all I wanted except for the mini basket. I don't know what's wrong but it seems to be some caching?
I disabled the caching for the basket itself in the shop config file after reading https://aimeos.org/docs/Configuration/C ... che/enable. I also cleared cache, rebuild index and all the other things I could think of, but it is just nog changing! :?

my files to overwrite it are in the right section (ext/ai-project/client/html/layouts/basket/mini), for as far as I know :D

Thanks for the help once more! :-)

Edit: forgot to mention, I also disabled the caching manager itself.

Re: Modify the basket/mini layout

Posted: 19 Aug 2015, 14:01
by aimeos
Bananamoon wrote: Soooo, I think I figured all out how the views and components and all work, I managed to modify all I wanted except for the mini basket. I don't know what's wrong but it seems to be some caching?
I disabled the caching for the basket itself in the shop config file after reading https://aimeos.org/docs/Configuration/C ... che/enable. I also cleared cache, rebuild index and all the other things I could think of, but it is just nog changing! :?

my files to overwrite it are in the right section (ext/ai-project/client/html/layouts/basket/mini), for as far as I know :D
You are right, the mini basket content is cached in the session bound to the cookie in your browser. With the configuration mentioned above, you can disable this caching. The caching of the content itself done by the cache class is something different.

The big question is now why you don't see your new template. You can clear your cookies to test if it's still a caching problem. If not, it's most likely related to the template not found. Can you tell us the result of your test?

Re: Modify the basket/mini layout

Posted: 19 Aug 2015, 14:11
by Bananamoon
aimeos wrote:
Bananamoon wrote: Soooo, I think I figured all out how the views and components and all work, I managed to modify all I wanted except for the mini basket. I don't know what's wrong but it seems to be some caching?
I disabled the caching for the basket itself in the shop config file after reading https://aimeos.org/docs/Configuration/C ... che/enable. I also cleared cache, rebuild index and all the other things I could think of, but it is just nog changing! :?

my files to overwrite it are in the right section (ext/ai-project/client/html/layouts/basket/mini), for as far as I know :D
You are right, the mini basket content is cached in the session bound to the cookie in your browser. With the configuration mentioned above, you can disable this caching. The caching of the content itself done by the cache class is something different.

The big question is now why you don't see your new template. You can clear your cookies to test if it's still a caching problem. If not, it's most likely related to the template not found. Can you tell us the result of your test?
Yes you are right! It works now :) Thank you!

Re: Modify the basket/mini layout

Posted: 19 Aug 2015, 14:15
by aimeos
Bananamoon wrote:Yes you are right! It works now :) Thank you!
What was the problem? The cache in the session? Does it appear again after you did another change?

Re: Modify the basket/mini layout

Posted: 20 Aug 2015, 13:00
by Bananamoon
aimeos wrote:
Bananamoon wrote:Yes you are right! It works now :) Thank you!
What was the problem? The cache in the session? Does it appear again after you did another change?
It must've been the caching yes. When I opened my project in an incognito window, it was all fine. So in the end I did everything the right way, just totally forgot about the session that was active in my browser itself :-)