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

The universal solution "Continue Shopping Button"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 02-27-2009, 05:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: The universal solution "Continue Shopping Button"

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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #72  
Old 02-27-2009, 07:11 AM
 
nivag nivag is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 76
 

Default Re: The universal solution "Continue Shopping Button"

It does affect your store... I added a product to the basket - clicked on Contineu Shopping and went back to home page instead of previous page ...
Reply With Quote
  #73  
Old 02-27-2009, 07:25 AM
 
zebragrf zebragrf is offline
 

Newbie
  
Join Date: Sep 2005
Location: US
Posts: 3
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by nivag
It does affect your store... I added a product to the basket - clicked on Contineu Shopping and went back to home page instead of previous page ...

It was already doing that. The process did not change. What I am looking for is to go back to the custom page where I clicked to add the product(s) to the cart.

I don't want it to go back to the home page of X-Cart. I want it to go back to my page.
__________________
Jeff French
Reply With Quote
  #74  
Old 04-11-2009, 08:10 AM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default Re: The universal solution "Continue Shopping Button"

If you use CDSEO Pro try this:

open modules/cdseolinks/cdseo_config.php
Find
PHP Code:
/****************************************************************************************
| Function: wcmcdseoType 

Before add
PHP Code:
#back URL when cont. shoping:
x_session_register("back_url");
if (
strpos($wcmcdseoUrlVar"cart.php")==false) {
    
$back_url $wcmcdseoUrlVar;
}
$smarty->assign("back_url"$back_url); 
#--- 

And now doesn't mater on which page you hit 'View Cart', 'Continue shopping' will always push you back to that page.

Try it on my site, I hope you can find some bugs in there.

Those folks who don't use CDSEO Pro, can get this mod for $139.99
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote
  #75  
Old 04-21-2009, 08:54 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: The universal solution "Continue Shopping Button"

Would love to know how to do this in 4.2
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #76  
Old 04-24-2009, 05:42 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: The universal solution "Continue Shopping Button"

Victor,

The following does exist in my "skin1/modules/Fast_Lane_Checkout/home_main.tpl" or in the 4.2 zip file.
Code:
<td>{include file="modules/Fast_Lane_Checkout/big_button.tpl" button_title=$lng.lbl_continue_shopping style="button" href="home.php"}</td>


Here is mine:
Code:
{* $Id: home_main.tpl,v 1.7 2008/09/22 07:31:18 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {if $checkout_step eq 0} {include file="modules/Fast_Lane_Checkout/checkout_0_enter.tpl"} {elseif $checkout_step eq 1} {include file="modules/Fast_Lane_Checkout/checkout_1_profile.tpl"} {elseif $checkout_step eq 2} {include file="modules/Fast_Lane_Checkout/checkout_2_method.tpl"} {elseif $checkout_step eq 3} {include file="modules/Fast_Lane_Checkout/checkout_3_place.tpl"} {else} {include file="customer/main/cart.tpl"} {/if}
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #77  
Old 04-24-2009, 07:05 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: The universal solution "Continue Shopping Button"

try
skin1/modules/Fast_Lane_Checkout/home.tpl

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

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #78  
Old 04-27-2009, 03:05 AM
 
TanyaG TanyaG is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 94
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by Yurij
I'm not sure, but try used next code (i don't tested this code enough):

PHP Code:
x_session_register("back_url");
x_session_register("skip_one_redirect");
 
if (
$mode == "add")

$id intval($productid);
if (
$id>0
{
$cat_path func_query_first_cell("select categoryid_path from $sql_tbl[products_categories]$sql_tbl[categories] where (productid = $id)and(main='Y')and($sql_tbl[products_categories].categoryid=$sql_tbl[categories].categoryid)");
if (!empty(
$cat_path)) {
$cats_path split("/ *",$cat_path); 
if (!empty(
$cats_path[0])) {
$back_url "home.php?cat=".$cats_path[0];
$skip_one_redirect 1
}

}
} else {
if (
$skip_one_redirect==) {
$skip_one_redirect=0;
} else {
if (
strpos($_SERVER['HTTP_REFERER'], "cart.php") === false)
{
$back_url $_SERVER['HTTP_REFERER'];
}
}
}
 
$smarty->assign("back_url"$back_url); 


Hi Yurij, is it any chance you could help me to display just previous main catid?

Many thanks,

Tanya
__________________
Tanya

x-cart version: 4.1.7 4.1.9. 4.2
Reply With Quote
  #79  
Old 04-27-2009, 03:57 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: The universal solution "Continue Shopping Button"

Victor,

Thanks for the help it worked.

I used to go back to category option, works great.
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #80  
Old 04-30-2009, 09:24 PM
  AusNetIT's Avatar 
AusNetIT AusNetIT is offline
 

Senior Member
  
Join Date: Apr 2009
Posts: 152
 

Default Re: The universal solution "Continue Shopping Button"

Hi All,

Like to install but Can i see any store using this mod?

Thanks,
__________________
Melbourne website design | SEO in Melbourne

Installed Ver 4.6.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 05:44 AM.

   

 
X-Cart forums © 2001-2020