X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   The universal solution "Continue Shopping Button" (https://forum.x-cart.com/showthread.php?t=39603)

EN4U 06-27-2008 08:47 AM

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....

nft 08-24-2008 06:22 AM

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

bigmaggot 08-24-2008 12:20 PM

Re: The universal solution "Continue Shopping Button"
 
http://forum.x-cart.com/showthread.php?t=873&page=7&highlight=continue+sho pping

junaid 08-26-2008 01:49 AM

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

imexhouse 09-03-2008 08:44 AM

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?

Lingerieblowout 09-03-2008 02:23 PM

Re: The universal solution "Continue Shopping Button"
 
Have you looked at

Sorry wrong thread. (edited)

imexhouse 09-03-2008 02:45 PM

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?

imexhouse 09-09-2008 01:51 PM

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...

imexhouse 09-11-2008 03:18 PM

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.

Yurij 09-12-2008 12:12 AM

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.


All times are GMT -8. The time now is 06:15 PM.

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