template - very slow

GK User
Sat Aug 04, 2012 6:31 am
Common guys.. teitibite, test your self. Joomla cache is ON every time, so now with joomla cache turned ON everything works for one month already, but if I turn on yous plugin then the problems began. I tried every possible combination and I am sure, the problem is in your plugin.

Just test your self it will not take much time.


teitbite wrote:Hi

Programmer has checked it and told me that You joomla cache was disabled. When He activated it than cart is still not working even if our cache is OFF. So it looks like it's a joomla bug after all.
User avatar
Gold Boarder

teitbite
Wed Aug 08, 2012 11:14 am
Hi

I've already did. Believe me. I've switched template to Beez and disable our cache plugins but use the default Joomla one - effect is the same. From the other hand I've checked the code of our cache and all it does is adding 2 lines of code not related with cart. It's basicaly a fix for joomla cache bug about progressive caching.
User avatar
Moderator

GK User
Sun Nov 11, 2012 6:35 pm
I have solution for this quite annoying problem. To use one more third party plugin to exclude some pages from cache.

I have found easy virtuemart checkout link (as I can copy it from address bar), but how to know the link for the mini cart in the right of the page (see picture attached) ? Because if I don't know link I can't exclude that page from cache by adding link.
User avatar
Gold Boarder

teitbite
Sun Nov 11, 2012 9:10 pm
Hi

I'm not sure if I understand, but if You are asking about the link that cart button provide than there is not one. It's a javascript button only to open a popup.

Anyway if You are asking about the link to the vm cart than it looks like that: index.php?option=com_virtuemart&view=cart
User avatar
Moderator

GK User
Sun Nov 11, 2012 9:32 pm
So that's sad news. Now I had excluded domain.com/component/virtuemart/cart?Itemid=0 from being cached and the cart shows correct as it should be, but this mini cart (popup) shows other people products (as described many times in this thread).

Option 1 ) Maybe we still can exclude all this javascript file from being cached ? Or maybe it is possible to exclude cart content from being cached ?

Option 2 ) Pressing this mini cart icon opens not popup but directly checkout page. Sure it is disappointing option as popup is very good looking and useful, but speed is priority. And without cache this template is very very slow. So how can I redirect people to checkout (/component/virtuemart/cart?Itemid=0) instead of popup ?

Thanks for you time.

teitbite wrote:Hi

I'm not sure if I understand, but if You are asking about the link that cart button provide than there is not one. It's a javascript button only to open a popup.

Anyway if You are asking about the link to the vm cart than it looks like that: index.php?option=com_virtuemart&view=cart
User avatar
Gold Boarder

teitbite
Sun Nov 11, 2012 10:30 pm
Hi

First of all please tell me if You have the latest version of the template. Programmers were working on this problem so maybe a solution is there already. Also if You confirm the latest version than I be able to try set the link on my copy of the template.
User avatar
Moderator

GK User
Sun Nov 11, 2012 10:33 pm
Latest VM, latest joomla, latest template as for 2012 11 11.

With kareebu cache I managed to solve checkout problem (no more other people content in the basket), but the problem is not solved for mini cart popup as it does not have a link to exclude from being cached.

teitbite wrote:Hi

First of all please tell me if You have the latest version of the template. Programmers were working on this problem so maybe a solution is there already. Also if You confirm the latest version than I be able to try set the link on my copy of the template.
User avatar
Gold Boarder

teitbite
Mon Nov 12, 2012 1:35 pm
Hi

Ok. I'll ask programmers what link would it be if any and let You know.
User avatar
Moderator

teitbite
Mon Nov 12, 2012 2:02 pm
Hi

Got a answer already:

it is template_directory/cart.php
User avatar
Moderator

GK User
Mon Nov 12, 2012 9:28 pm
Thanks for quick answer.

However, if I set to exclude http://mydomain.com/templates/gk_esport/cart.php the problem is still there. So now mini cart exclusion from cache is done.

If I enter this address I get blank page. Should it be blank page ?

So maybe for now (until some fix will be available in the future) I could redirect to checkout people who clicks on mini car icon ? How can I do that ?

teitbite wrote:Hi

Got a answer already:

it is template_directory/cart.php
User avatar
Gold Boarder

teitbite
Tue Nov 13, 2012 1:14 pm
Hi

Please edit /layouts/default.php and add this code right before </body> tag:

Code: Select all
<a id="miniCartLink" href="[link to cart page]">Mini Cart</a>


Than add this to css to make it look the same:

Code: Select all
a#miniCartLink {
    margin-left: 500px !important;
    background: url("../images/style1/minicart.png") no-repeat scroll right 0 transparent;
    cursor: pointer;
    height: 49px;
    left: 50%;
    overflow: hidden;
    position: fixed;
    top: 225px;
    width: 41px;
    z-index: 1000001;
    text-indent: -999em;
}

#gkVmCartSmall {
display: none;
}


While I was making this part on my copy on localhost I've checked the cache again. It works for me, so it may be connected with server configuration after all or I have a newer template version where this fix is applied already.
User avatar
Moderator

GK User
Tue Nov 13, 2012 10:44 pm
Thanks for your good intentions :)

After adding code, mini cart icon has gone from the right of the page, and the top cart (pressing the word "shopping cart" didn't redirect to checkout.
User avatar
Gold Boarder

teitbite
Wed Nov 14, 2012 11:36 am
Hi

Strange. It's working in my copy. Please put it back to the page so I'll be able to see what's wrong.
User avatar
Moderator

GK User
Thu Nov 15, 2012 8:22 pm
I though that I reverted back changes, but now mini cart does not show anything at all :)

teitbite wrote:Hi

Strange. It's working in my copy. Please put it back to the page so I'll be able to see what's wrong.
User avatar
Gold Boarder

teitbite
Fri Nov 16, 2012 11:49 am
Hi

I've found Your FTP and joomla panel access in some old mail. It was still working so I allowed myself to add this code. I've done it exactly as described with a small change of a margin value to 540px (looks Your template is set to be wither than mine).

Please check and let me know if this is what You were looking for.
User avatar
Moderator

GK User
Sun Nov 18, 2012 9:29 am
Thanks for your time and efforts! Now the workaround is working.

Sure waiting for the fix from joomla or VM as mini cart functionality is also needed for customers.
User avatar
Gold Boarder

teitbite
Tue Nov 20, 2012 12:11 pm
Hi

Sure this has to work normaly. Unfortunately I still cannot understand what is the problem in Your case :( I have a copy of this and other shop templates, I've installed it many times for clients and there were just a couple of this issues. I think it's more of a server configuration thing or we are missing something simple in joomla configuration :)
User avatar
Moderator

GK User
Sat Mar 16, 2013 8:53 pm
After a while I did some trick to speed up the site, but it is still very slow. One of the good programmers checked site and he says "I have checked it more deeply and I think the template cause this slowiness.".

Hope future update of this update will improve the speed (few updates already did this a little bit).
User avatar
Gold Boarder

teitbite
Sun Mar 17, 2013 11:56 pm
Hi

The best speed up is a right cache solution. I think jotCache is one of the best in this case.
User avatar
Moderator


cron