It works correctly and after I add product to the basket I am redirect to the same page, but on the top of this page. I would like to be redirect to the same position from top. On my sites I have more then twenty products above and when I am down on the page and add product to the basket, I am redirect to top and it is very confusing.
thanks for your replay, but if I add this script and do changes, it doesnt work. If you can, visit http://pesema.cz/pesema/pesema/index.php and try it.
I made this feature for "nacked" QC. It works on IE and FF. Chrome not. Your QC is... no more "nacked". I saw some js errors on your page. Maybe this is the reason.
Pesema. Your script is good and suits me perfectly. In fact I only display 5 items per page, so the return to the top is not annoying. Boboo I can not understand the logic of yours. But I am persistent and I could do it. In fact, what is the instruction to write so that when we click on "add to basket", we stay in the same place. Thank you all.
Yesterday I saw on his page js errors in the statusbar. Today the page is empty - only background & and some meta. And I had already the experience: if a piece of js makes errors -> another js scripts may not work properly. js is, what I don't like. I use this only if there is no possibility to solve any problem with pure php. In container.tpl in scripts invoking add the: window.onload=function(){ if(window.name!="") document.documentElement.scrollTop=window.name; document.body.scrollTop=window.name; window.name=0; } then in every product on the list in its basket href add: onclick="window.name=document.documentElement.scrollTop||document.body.scrollTop;" With document.body... the Chrome is now working with this. Checked on Win Apache: IE9, newest FF and newest Chrome. To make this clear: it is working on "nacked and fresh" QC42 Add. I don't know does it work on systems with installed jQuery or another "must have" gadgets. And I will NOT check it.