View Single Post
  #29  
Old 06-26-2008, 07:10 PM
 
EN4U EN4U is offline
 

eXpert
  
Join Date: Feb 2008
Location: AZ
Posts: 379
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by Stizerg
Thanks guys! Works on 4.1.10

in Fast_Lane_Checkout/home_main.tpl
HTML Code:
<td><a href="{$back_url}"><img src="{$ImagesDir}/img/continueshopping.png" alt="continue shpopping" /></a>

and in cart.php
PHP Code:
#back URL when cont. shoping:
x_session_register("back_url");
if (
strpos($_SERVER['HTTP_REFERER'], "cart.php") == false)
{
    
$back_url $_SERVER['HTTP_REFERER'];
}
$smarty->assign("back_url"$back_url); 

Well done!


Nice... Only thing that may confuse some is that you will need to make your own "continue shopping" button.... and with the reference above, you'd have to upload it in a folder in "images" called /img/continueshopping.png or what ever name you would want. or as I did, just upload the new button to images and that's it. Then the call would be <img src="{$ImagesDir}/continueshopping.png" alt="continue shopping" /></a>[/html]

The "home_main.tpl" to adjust is in /skin1/modules/Fast_Lane_Checkout (not the other modules folder in root)
The cart.php to add the above code is in your root folder by itself

Be sure to respell shopping(alt) also.....

Works great.. Thanks...
__________________
Regards, Dan
X-Cart Gold Version 4.1.10

1 - One page checkout
2 - Image Generator
3 - CSDEO Pro
4 - Shop By Price
5 - Next - Previous
6 - On Sale
7 - Shop By Price

8 - Froogle & Google Base Feed
9 - Buy Together
10 - Customer Loyalty Points
11 - Customer Reward Points
Customer Reward Points Referral Add-on
12 - Product Reviews
13 - Other Custom Modifications
----------------------
http://www.townsqjewelry.com/
http://www.eroticnights4u.com/ <---- Adult Oriented - Toys
Reply With Quote