![]() |
This looks like a good solution, but I got a little confused as to what the final code for the redirect section of cart.php should look like. Would it be possible for you to cut and paste the final, edited section altogether?
Thanks for your help! Quote:
|
Quote:
Excelent work.Just a small mistake in the code here "<TD>[img]/{$ImagesDir}/but2.gif[/img]</TD></TR> " it should be "<TD>[img]{$ImagesDir}/but2.gif[/img]</TD></TR> " . I could not get but2.gif because path wasn't right . Hope it helps . |
Suggestion
I would like to suggest guys to implement multiple solutions together to meet the redirect need. Letting customers themself to choose from WHERE to go after adding item to cart.
E.g. In the cart page, show Checkout | Back to Home | Back to Last Category I have not try but it should be a pretty good idea. Anyone have this tested please post the final solution here and share to each other. (I m not a php guy so I have no idea to do it myself). Thanks to all of you who shares here~~ :) |
This is a very simple and handy mod. Thanks for sharing.
Only problem with it is that when you are directed back 2 pages, the items that were added the cart do not appear. I'm afraid this might be confusing to customers. Any way to make the javascript refresh the page after it sends you back 2 pages? TIA! Quote:
|
Continue shopping works.
Thanks Embliano, andreas, and swordfish and all the rest of this great xcart team. It works, and yes no need to create the button its already there. The only thing is the right rounded off edge seems to be missing.
Any one know how to correct this? Again thanks! :lol: As they say, too much information.....should have read "Isleman" post above and saved myself a headache! :D |
Not sure if anyone else had problems implementing elomibao's code, but just in case... here is what I eventually got it working as....
In cart.php, the redirect section should end up like this: Code:
# and further down, the top line in this block needs to be added so you end up with: Code:
if ($mode == "added") $smarty->assign("cshopping","1"); then the tpl mods as previously posted. |
Going from inthepink's code I did this...
create a tpl. file in buttons called continue_shopping.tpl add the following code to it... Code:
{* source: http://forum.x-cart.com/viewtopic.php?t=1124 *} add to config.php.... Code:
x_session_register("last_cat"); You can then use.... Code:
{include file="buttons/continue_shopping.tpl"} whereever you like to give you a continue shopping button. I've got it next to the checkout button and also below 'Your shopping cart is empty' sweet! |
Works GREAT! =D>
Thanks!! |
Thanks Swordfish and andreas04031. Your post worked fine for me in 4.016.
Reference: Posted: Mon Mar 07, 2005 5:52 pm Post subject: Easy continue shopping botton. Small correction on code From Code:
>[img]/{$ImagesDir}/but2.gif[/img] to Code:
>[img]{$ImagesDir}/but2.gif[/img] Cheers Chris |
Quote:
That "/" had me going too! |
All times are GMT -8. The time now is 03:22 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.