![]() |
help adding a back button to detailed product page
can anyone give me some input as to how I would be able to add a back button that would take a customer back to the last page they came from, I would like to put the button in the product detail page.
Thanks in advance. |
Re: help adding a back button to detailed product page
Welcome to the X-Cart forums! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:
http://forum.x-cart.com/showthread.php?t=23970 Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your questions correctly. Thanks! :) |
Re: help adding a back button to detailed product page
thanks, i updated some information about me :lol:
|
Re: help adding a back button to detailed product page
Try adding this...
{include file="buttons/button.tpl" button_title="BACK" href="javascript: history.go(-1);" style="button" js_to_href="Y"} |
Re: help adding a back button to detailed product page
thanks JWait, that was great, I just inserted it into skin1/product.tpl and appeared
if you are able to give me some instructions as on how to seperate the buttom further away from the buy button, lets say to the right side of the details area. here is a link if anyone would like to see http://www.thepreppypalm.com/store/product.php?productid=16168&cat=0&page=1 thanks alot. all your help is appreiciated Chris |
Re: help adding a back button to detailed product page
There are several ways to get what you want..
You can add <img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" /> before the "back" code. That will put a 150 pixel space between your buttons. You can make the table cell that the "back" code resides in align to the right... <td align="right">. You can add a "AlignRight" class to skin1.css and make the cell align that way... <td class="AlignRight"> (add .AlignRight {align: right; } to skin1.css ) |
Re: help adding a back button to detailed product page
Not sure if im inserting this correctly but it is not spacing them apart. this is how i have it in product.tpl
PHP Code:
it acutally offsets them up and down on the same line, thanks for taking time to answer Chris |
Re: help adding a back button to detailed product page
I'm not sure why... probably yet another of x-cart's nested tables. Try ..
Code:
<tr> |
Re: help adding a back button to detailed product page
ok great, that got it to spread apart. thanks a bunch. :)
|
Re: help adding a back button to detailed product page
Works great. Thanks.
Can someone please tell me how to add "back" to language lbl so i can change the color to suit the page. Thank you in advance. Tammy |
Re: help adding a back button to detailed product page
I just threw button_title="BACK" in there because it was quick. You can always change it to use a language variable... button_title=$lng.lbl_go_back should work just as well.
|
Re: help adding a back button to detailed product page
Quote:
This should now align up correctly as the buttons were offset up and down slightly |
All times are GMT -8. The time now is 12:35 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.