Skip to main content

Caching problem

More
13 years 9 months ago #82567 by Dzumla
Caching problem was created by Dzumla
Hello,

Check out this website www.oliverafineart.com/

When I click on "echo of the forest" under 'paintings' on the left it gets a class of 'active current', but when I then click on for example 'fantasy' under 'illustrations', it gets highlighted with a class of 'active current' but that same class remains on 'echo of the forest' as well, until you refresh the page again.

So i get 2 links with a class of 'current active'

I guess this is a caching problem.

Can it be fixed?

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #82604 by Xavier
Replied by Xavier on topic Caching problem
Hi,

You can maybe try to remove the current active class with some jQuery, like "$("#li").removeClass("active");".
But it's not HikaShop related, you can try with other Joomla menu and it will be the same way.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago - 13 years 9 months ago #82652 by Dzumla
Replied by Dzumla on topic Caching problem
I think you didn't understand me.

Did you go to the site to see the problem?

I get TWO links with "active" class, but when I refresh only the right one remains with the 'active' class (how it should be).

It is hikashop related problem, this never happened to me before, and it happens with hikashop category listing.

just check the website and you'll what i mean.

Just click anythi under 'Paintings' on the left, and then click anything under 'illustrations' and you will see they both remain with hover effect, but then if you refresh the page only the second one you clicked will have the hover effect (which is the active class).
Last edit: 13 years 9 months ago by Dzumla.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #82868 by nicolas
Replied by nicolas on topic Caching problem
Hi,

That's a problem which indeed happens with two categories listing module.
Can you try to change the code:
Code:
$found = $app->getUserState(HIKASHOP_COMPONENT.'.last_category_selected'); if(JRequest::getString('ctrl','category')=='product'&&JRequest::getString('task','listing')=='show'){
to
Code:
if(JRequest::getString('ctrl','category')=='product'&&JRequest::getString('task','listing')=='show'){ $found = $app->getUserState(HIKASHOP_COMPONENT.'.last_category_selected');
in the file components/com_hikashop/views/category/tmpl/listing_list.php ?
That should hopefully fix the problem.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #82964 by Dzumla
Replied by Dzumla on topic Caching problem
Didn't help. that was around like 221 with me. Changed it, but it is still the same.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #83013 by nicolas
Replied by nicolas on topic Caching problem
Then maybe you're using the "no child" option.
Try to change the code:
Code:
$found = $app->getUserState(HIKASHOP_COMPONENT.'.last_category_selected'); foreach($this->rows as $row){ if(JRequest::getString('ctrl','category')=='product'&&JRequest::getString('task','listing')=='show'){
to
Code:
foreach($this->rows as $row){ if(JRequest::getString('ctrl','category')=='product'&&JRequest::getString('task','listing')=='show'){ $found = $app->getUserState(HIKASHOP_COMPONENT.'.last_category_selected');
in the same file.
The following user(s) said Thank You: Dzumla

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago - 13 years 9 months ago #83031 by Dzumla
Replied by Dzumla on topic Caching problem
this is on line 87 with me.

It gives me an error.
Last edit: 13 years 9 months ago by Dzumla.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #83124 by Xavier
Replied by Xavier on topic Caching problem
Can you give us the error returned ?

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #83157 by Dzumla
Replied by Dzumla on topic Caching problem
Hello,

It actually works with the second solution now.

I guess I made a mistake when I replaced the code, but now when I did it again it solved it! (the second block of code).

Thanks Nicholas! Always helpful with your answers.

Please Log in or Create an account to join the conversation.

Time to create page: 0.282 seconds
Powered by Kunena Forum