| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
The universal solution "Continue Shopping Button" | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
The universal solution "Continue Shopping Button"
UPDATE: 22-10-2008
1. Edit file cart.php, after next lines: PHP Code:
add next lines: a) return to the last page; PHP Code:
b) Is it any chance to send customers back into ROOT directory instead of subcategory? - Yes PHP Code:
c) Is it any chance to send customers back into PRODUCT category? - Yes PHP Code:
2. Edit URL for "Continue Shopping Button", exm. for Fast Lan Check Out: Edit file: "skin1/modules/Fast_Lane_Checkout/home_main.tpl", change line: PHP Code:
replaced by this code PHP Code:
PS. I would be grateful for any comments on that decision. It should almost always work. |
|||||||||
|
#2
|
|||||||
|
|||||||
Re: The universal solution "Continue Shopping Button"
would like to confirm, would this take user back to last page or category page from product was added.
__________________
xcart 4.18 on linux |
|||||||
#3
|
|||||||||
|
|||||||||
Re: The universal solution "Continue Shopping Button"
Quote:
It must return to the page that was where you click "add to cart" (no difference where it happened (cat. page, product page, search page, some sort or page numbers option... or... some else)) |
|||||||||
#4
|
|||||||
|
|||||||
Re: The universal solution "Continue Shopping Button"
As to whether this will work at all I don't know, haven't had the time to try it as am presently overloaded. It looks as though it should work though.
But depending on how your cart is set up, I would consider adding some restrictions to "if ($mode == "add")". In my case for example, I have the ability to "add to cart" from the actual cart page, so I would add the restriction that if I am already on that page, the back_url variable shouldn't change. There might be other cases where you don't want the variable changed, in which case you should add these restrictions as well.
__________________
X-cart Gold 4.1.12 One Page Checkout CDSEO Pro Smart Search PHP 5.2.5 FreeBSD |
|||||||
#5
|
|||||||||
|
|||||||||
Re: The universal solution "Continue Shopping Button"
Quote:
You can show the modification of your shop? |
|||||||||
#6
|
|||||||
|
|||||||
Re: The universal solution "Continue Shopping Button"
PM sent
__________________
X-cart Gold 4.1.12 One Page Checkout CDSEO Pro Smart Search PHP 5.2.5 FreeBSD |
|||||||
#7
|
|||||||||
|
|||||||||
Re: The universal solution "Continue Shopping Button"
I tried it on 4.0.19 with ezCheckout (home_checkout.tpl), but it didn't work.
Instead of getting the URL, I get a literal '$back_url'
__________________
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 |
|||||||||
#8
|
|||||||||
|
|||||||||
Re: The universal solution "Continue Shopping Button"
Quote:
Show your code to insert variable {$back_url} in the button "Continue shopping"? |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: The universal solution "Continue Shopping Button"
Quote:
Interesting changed "X-Cart". You can add an additional condition to determine the condition "back_url". PHP Code:
PS. All options modifications "X-Cart", is not provided. |
|||||||||
#10
|
|||||||||
|
|||||||||
Re: The universal solution "Continue Shopping Button"
I have my own Continue Button gif:
<a href="`$back_url`"><img src="{$ImagesDir}/ContinueShopping.gif" border="0" align="absmiddle" alt="Continue Shopping"></img></a> and I did add the code below to cart.php #back URL when cont. shoping: x_session_register("back_url"); if ($mode == "add") { $back_url = $_SERVER['HTTP_REFERER']; } $smarty->assign("back_url", $back_url); Are the single quote signs in `$back_url` the characters to the left of 1 on the keyboard, or are they actually single quotes that reside on the same key as double quotes? This is the actual link from the Continue Shopping: http://www.aquasanacanada.com/%60$back_url%60
__________________
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|