Add a "continue shopping" button to basket / cart

src

No avatar

2006-11-08 18:43

Hi there,

does anyone know how to add a "continue shopping" button to the cart, right next to the "update" and "next" buttons?

I'd like to be able to have the user return to the shopping pages from the cart in addition to using the top menu.

Thanks!

KiralyVlad

No avatar

2006-11-08 19:24

Do you want him to go to the previous page, or to the main page with the products ?

src

No avatar

2006-11-08 19:34

Good question. I think it would be fine if they went to the previous page, which is the product they just ordered.

Is the coding tough for either case (previous page or main products page)?

Thanks

KiralyVlad

No avatar

2006-11-08 19:44

Well.... I`m using v1.4 ... and I have a "back" button right below the "Continue" button.... Maybe you didn't notice it :)...
Either way...

Open templates/orders_basket.tpl
and find this code:
<tr class="tfoot">
<td colspan="3">
<fieldset><input type="submit" value="$lang[Calc]" class="submit" /></fieldset>
</td>
<td colspan="2">
<fieldset><input type="submit" name="sSave" value="$lang[Next] &raquo;" class="submit" /></fieldset>
</td>
</tr>
</table>
</fieldset>
</form>
<div id="back">&#171; <a href="javascript:history.back();">$lang[back]</a></div>
</div>

As you can see, I here have a "<div>" for the back button... If you don't have it you could copy that..... and replace $lang[back] with: either "back" or "Continue Shopping", so it would become:
<div id="back">&#171; <a href="javascript:history.back();">Continue Shopping</a></div>
.That will take the customer back to the page of the product they have added to the basket.... You could as well change the "<a href="javascript:history.back();">" to "<a href="index.php?p=productsList">" and that would take them to the root page of your shop (the list of all products)

src

No avatar

2006-11-08 21:40

Thanks, KiralyVlad!

I'll give that a try and report back. Appreciate the help.

vch

Avatar: vch

2011-12-18 22:14

I changed the "<a href="javascript:history.back();">" to "<a href="index.php?p=productsList">", but got mistake.

beholder

Avatar: beholder

2011-12-25 16:30

What an old thread. This note is for those who understand PHP a little:
this could be possible with an additional $_SESSION variable which would be saved with a link to a products list every time
A) a specific product is visited,
B) an add to basket button is clicked somewhere in products list,
C) a basket link is clicked on a products list page

An additional modification of the above links that are clicked would be required in special templates (pages_productsList.tpl and perhaps also containerProductsList.tpl with its own theme) that would have to be created.

http://cicmanec.sk/easyplugins/

Back to top
about us | contact