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
  #31  
Old 06-27-2008, 08:47 AM
 
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 Yurij
It was written in 30 minutes.

Test on the original X-Cart (4.1.9) without any modifications.

awesome job , works like a charm....
__________________
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
  #32  
Old 08-24-2008, 06:22 AM
 
nft nft is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 52
 

Default Re: The universal solution "Continue Shopping Button"

Hi All,

I have got this working on 4.1.9 and it is certainly better the the default and I will therefore keep using it. Thanks for the mod by the way.

The only additional function missing from this mod is to return to the last category, manufacturer category, home.php or any other page outside of cart.php if the last visited page was not where the product was added to the cart.

Problem Example: A customer has already added a product to the cart, they have continued shopping and then whilst browsing through a category they have decided to view their shopping cart. By clicking on 'Continue Shopping' they will be directed back to the page where their last product was added rather than returning back to the category they were browsing.

I would think that this could be achived with a bit of PHP logic know how.

Does anyone know of a simple way to achieve this?

Regards,

James
__________________
X-Cart Pro 4.1.9
FreeBSD
Apache
MySQL 5
PHP 4.4.8
Reply With Quote
  #33  
Old 08-24-2008, 12:20 PM
 
bigmaggot bigmaggot is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 74
 

Default Re: The universal solution "Continue Shopping Button"

http://forum.x-cart.com/showthread.php?t=873&page=7&highlight=continue+sho pping
__________________
X-Cart Gold v4.1.11
Reply With Quote
  #34  
Old 08-26-2008, 01:49 AM
 
junaid junaid is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 96
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by xsurf
Well, I finally got around to trying this, and it doesn't work for me, despite having 4.1.9 .
Admittedly, x-cart is installed only as my shopping cart (so the actual "add to cart" button is clicked on from a page outside x-cart, and only then x-cart is entered, directly into the shopping cart) but still I would have thought HTTP_REFERER would contain the correct value?
Yet back_url always ends up being https://www.mysite.com/xcart/cart.php?keep_https=yes

The code I used was
PHP Code:
x_session_register("back_url");
if (
$mode == "add" && strpos($_SERVER['HTTP_REFERER'], "cart.php")>)
{
    
$back_url $_SERVER['HTTP_REFERER'];
}
$smarty->assign("back_url"$back_url); 

And
PHP Code:
<a href="{$back_url}"><img src="{$ImagesDir}/ContinueShopping.gif" border="0" align="absmiddle" alt="Continue Shopping"></img></a

didnt work for me, it sent me directly to shop/home.php .

added code to customer/main/cart.pl & cart.php .
based on instructions this file didnt had buttons in Fast_Lane_Checkout/home_main.tpl .

would appreciate help
__________________
xcart 4.18 on linux
Reply With Quote
  #35  
Old 09-03-2008, 08:44 AM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

If you're using DSEFU and have a hidden product, when you add that product to the shopping cart, your continue shopping button won't work the way it's supposed to.
Hidden products have these url's:

https://www.somedomain.com/product.php?productid=16201&cat=253

DSEFU will convert the php? page into html. Then, if you click on 'Continue Shopping' button, you'll end up with a 404, because the url you're redirected to has this form:

https://www.somedomain.com/Some-Product-p-16201.html&cat=253
and that url does not exist.

Any ideas how to get around it?
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #36  
Old 09-03-2008, 02:23 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: The universal solution "Continue Shopping Button"

Have you looked at

Sorry wrong thread. (edited)
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #37  
Old 09-03-2008, 02:45 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

Does anybody have any idea how to get around my problem with hidden products and the continue shopping button solution posted here?
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #38  
Old 09-09-2008, 01:51 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

I can't understand why &cat=253 appears at the end of the regular something124-page1.html string...
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #39  
Old 09-11-2008, 03:18 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: The universal solution "Continue Shopping Button"

Yurij,

Perhaps you, as the author of the mod, could tell me why the &cat=253 appears after .html - because I can't figure it out.

Thank you.
__________________
Jack@AquasanaCA
X-CART GOLD 4.0.19 Live
DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts
AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America!
X-CART GOLD 4.4.5 Live
CDSEO Pro v. 1.8.4
AquasanaMontreal.com
Aquasana╝ & Rhino Water Filtration Systems
Reply With Quote
  #40  
Old 09-12-2008, 12:12 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: The universal solution "Continue Shopping Button"

Quote:
Originally Posted by imexhouse
Yurij,

Perhaps you, as the author of the mod, could tell me why the &cat=253 appears after .html - because I can't figure it out.

Thank you.

I need url to the hidden product on your shop (PM me pls).

PS. I think problem in DSEFU mods but i need check this problem on the real store.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:48 AM.

   

 
X-Cart forums © 2001-2020