Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Continue Shopping in 4.2.2?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-03-2009, 12:36 PM
  inkcarts's Avatar 
inkcarts inkcarts is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Crowley Louisiana
Posts: 45
 

Default Continue Shopping in 4.2.2?

Anyone have a mod or method to edit the continue shopping button to return to the previous page in 4.2?

Thanks!
Lyn
__________________
Lyn Askin
X-Cart 4.2.3
MICR Toner
Toner Cartridges
X-Cart Search Engine Optimization
Reply With Quote
  #2  
Old 09-03-2009, 07:42 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Continue Shopping in 4.2.2?

How about using the js "history"?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 09-04-2009, 11:18 AM
  inkcarts's Avatar 
inkcarts inkcarts is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Crowley Louisiana
Posts: 45
 

Default Re: Continue Shopping in 4.2.2?

Yes, thought of that, but wondered if there was a more elegant solution. There was a module developed in my old cart (miva merchant) that actually tracked the customers location and returned them to the exact page they clicked the add to cart button. I was just wondering of something like this has been developed in xcart.

Thanks,
Lyn
__________________
Lyn Askin
X-Cart 4.2.3
MICR Toner
Toner Cartridges
X-Cart Search Engine Optimization
Reply With Quote
  #4  
Old 09-04-2009, 07:18 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Continue Shopping in 4.2.2?

This is just a thought I had (didnt confirm it) but xcart does track the last page the person was on. Usually tracked for stats (paths through website), you may be able to use the last path as a point.
__________________
- Shane Munroe
Reply With Quote
  #5  
Old 09-07-2009, 06:42 AM
  inkcarts's Avatar 
inkcarts inkcarts is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Crowley Louisiana
Posts: 45
 

Default Re: Continue Shopping in 4.2.2?

So far, i'm just using the javascript back solution. . . Here's what I did:

Changed this line in the /modules/Fast_Lane_Checkout/home.tpl

From:

{include file="customer/buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="div_button" href="home.php" additional_button_class="flc-1-button"}

To

{include file="customer/buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="div_button" href="javascript:history.back()" additional_button_class="flc-1-button"}

Hope that helps someone.
Lyn
__________________
Lyn Askin
X-Cart 4.2.3
MICR Toner
Toner Cartridges
X-Cart Search Engine Optimization
Reply With Quote

The following 5 users thank inkcarts for this useful post:
Algernon (07-30-2011), Bobby P. (10-21-2009), dwpers (02-04-2010), joannet (10-10-2009), taponitrof (09-30-2009)
  #6  
Old 09-30-2009, 01:31 PM
 
taponitrof taponitrof is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 105
 

Default Re: Continue Shopping in 4.2.2?

Thanks for the mod. I love the simplicity and it works in 4.2.1.
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5
Linux
Reply With Quote
  #7  
Old 12-10-2009, 06:40 AM
  Jotto's Avatar 
Jotto Jotto is offline
 

Senior Member
  
Join Date: Mar 2004
Location: Wyoming
Posts: 112
 

Default Re: Continue Shopping in 4.2.2?

Thanks! Also works in 4.3.0.

Can anyone help me identify the template file to modify to add a second "Continue Shopping" button to the bottom of the cart page to the left of the second checkout button?
__________________
Jeff Otto

http://www.JeffOtto.com/store -
Live Version 4.7.12 on Linux
Reply With Quote
  #8  
Old 12-10-2009, 10:09 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Continue Shopping in 4.2.2?

Use webmaster mode - it will tell you exactly which template
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 12-10-2009, 11:53 AM
  Jotto's Avatar 
Jotto Jotto is offline
 

Senior Member
  
Join Date: Mar 2004
Location: Wyoming
Posts: 112
 

Default Re: Continue Shopping in 4.2.2?

Thank you sir, tried that before but could not find it until the third looksie!

Anyone else interested in adding a second continue shopping button the code is in customer/main/cart.tpl line 143 in 4.3.0

Existing code:

{if !$std_checkout_disabled}
<div class="checkout-button">
{include file="customer/buttons/button.tpl" button_title=$lng.lbl_checkout href="cart.php?mode=checkout" additional_button_class="main-button"}
</div>

Change to:

{if !$std_checkout_disabled}
<div class="checkout-button">
{include file="customer/buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="div_button" href="javascript:history.back()" additional_button_class="flc-1-button"}
<div class="button-separator"></div>
{include file="customer/buttons/button.tpl" button_title=$lng.lbl_checkout href="cart.php?mode=checkout" additional_button_class="main-button"}
</div>
__________________
Jeff Otto

http://www.JeffOtto.com/store -
Live Version 4.7.12 on Linux
Reply With Quote
  #10  
Old 10-28-2010, 10:55 AM
 
boxerbay boxerbay is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 170
 

Default Re: Continue Shopping in 4.2.2?

Quote:
Originally Posted by inkcarts
So far, i'm just using the javascript back solution. . . Here's what I did:

Changed this line in the /modules/Fast_Lane_Checkout/home.tpl

From:

{include file="customer/buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="div_button" href="home.php" additional_button_class="flc-1-button"}

To

{include file="customer/buttons/button.tpl" button_title=$lng.lbl_continue_shopping style="div_button" href="javascript:history.back()" additional_button_class="flc-1-button"}

Hope that helps someone.
Lyn
for reference on v4.18 the correct TPL is home_main.tpl
__________________
Thanks,
Alex.
Too many version to list. I have some on 3.51 and some on the latest version.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:58 PM.

   

 
X-Cart forums © 2001-2020