Hello ! every time costumer click on "add to basket" button, the basket page displayed and for continue buying he should back to the main page and search for product again. I wonder, is there any way that if customer choose a product,the basket page doesn't go up and only the the basket logo on corner of page changes? Thanks in advance
This is not so simple.. You can redirect user to another page after adding product to basket but total number of products in basket (which is also displayed on the top of page near basket ico) is counting on basket page so if You want to correctly count this value it have to be like now.
Then what about a continue shopping button that the shopper can use after they have got to the cart and updated quantity, the continue shopping button can be set via a cookie I suspect so that the shopper is taken back to where the left.
Anyone got a quick bit of code to do this?
Cheers
apa
2008-08-09 06:34
I find a way!you can open the basket page in new windows by adding this code to pages_default.tpl line 67 after $aData[sBasketPage]&iProductAdd=$aData[iProduct]&iQuantity=1" rel="nofollow"
<? target="top" ?>
after you do that,if user click on add to cart,for the first time new pages open (like pop up) and user can continue buying without any distraction.if select another product and click on add to cart ,the windows that open in first time, changed and no new page opened.
open core/common.js and add the following functions
function readCookie(sName) { var sNameEQ = sName + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(sNameEQ) == 0) return c.substring(sNameEQ.length,c.length); } return null; }
function eraseCookie(sName) { createCookie(sName,"",-1); }
Upload and you should have a continue button on your basket form.
Hope that helps and I hope the code above comes out OK