X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Continue Shopping in 4.2.2? (https://forum.x-cart.com/showthread.php?t=49524)

inkcarts 09-03-2009 12:36 PM

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

cflsystems 09-03-2009 07:42 PM

Re: Continue Shopping in 4.2.2?
 
How about using the js "history"?

inkcarts 09-04-2009 11:18 AM

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

Shamun 09-04-2009 07:18 PM

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.

inkcarts 09-07-2009 06:42 AM

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

taponitrof 09-30-2009 01:31 PM

Re: Continue Shopping in 4.2.2?
 
Thanks for the mod. I love the simplicity and it works in 4.2.1.

Jotto 12-10-2009 06:40 AM

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?

cflsystems 12-10-2009 10:09 AM

Re: Continue Shopping in 4.2.2?
 
Use webmaster mode - it will tell you exactly which template

Jotto 12-10-2009 11:53 AM

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>

boxerbay 10-28-2010 10:55 AM

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


All times are GMT -8. The time now is 04:38 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.