close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Ecart continue shopping not working

Thread began 3/06/2009 7:17 am by lsadesl361446 | Last modified 3/06/2009 2:09 pm by lsadesl361446 | 3826 views | 7 replies |

Miguel

Ecart continue shopping not working

I added the cart view but when i test the continue shopping button its not redirecting to the producto page or the page i was before coming to the cart view what can i do to fix this

Sign in to reply to this post

Ray BorduinWebAssist

Edit the continue shopping server behavior. It should allow you to set the page, or have it go back to the last page where the add to cart button was pressed.

Sign in to reply to this post
Did this help? Tips are appreciated...

Miguel

i just compare it with an old site i did before the upgrade of ecart to work with cs4 it looks the same but the new one is not working

Sign in to reply to this post

Ray BorduinWebAssist

Are you using a Cookie or Session persistance cart? Maybe it needs a:

session_start();

It should set a session variable on the add to cart page, and access it on the cart page to go back to the correct page, so if sessions aren't working then this functionality may not work.

Another possibility is that the eCart redirect code isn't on the page... Does the eCart object show with a red exclamation point in the server behaviors window? If so there may be a missing piece of code causing the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

Miguel

i added the start session on the header of the site im building but didnt do anything

the internal code for the continue button is

<?php
// WA eCart Continue Shopping
if (isset($_POST["eCart1_Continue_100"]) || isset($_POST["eCart1_Continue_100_x"])) {
$Redirect_redirStr="";
if (false && isset($_SESSION['WAEC_ContinueRedirect'])) {
$Redirect_redirStr=siteToPageRel($_SESSION['WAEC_ContinueRedirect']);
}
if ($Redirect_redirStr != "") {
$eCart1->redirStr = $Redirect_redirStr;
}
$eCart1->cartAction = "Continue";
}
?>

now i notice that if i click on go to cart if i click it from someplace not the product or article page it adds on the link cart.php? when i click on the continue shopping now when i come from a categorie for example product.php?id=1&cat=20 the link when i click on continue shopping looks like this

cart.php?id=1&cat=20 but it keeps placing cart.php instead of the page i was on before.

Sign in to reply to this post

Miguel

ok well i had to trick the ecart and changed the continue shopping button with one i made my self with <?php
$referido = $_SERVER['HTTP_REFERER']; //
?>

it works this way i just wonder why since i upgraded ecart from the version i bout 1.4 to 1.5 it stopped working correctly all seems fine on the code but that button does not want to work

Sign in to reply to this post

Ray BorduinWebAssist

the line:

if (false && isset($_SESSION['WAEC_ContinueRedirect'])) {
$Redirect_redirStr=siteToPageRel($_SESSION['WAEC_ContinueRedirect']);
}

should be:
if (true && isset($_SESSION['WAEC_ContinueRedirect'])) {
$Redirect_redirStr=siteToPageRel($_SESSION['WAEC_ContinueRedirect']);
}

It looks like redirect to previous page was somehow disabled.

Sign in to reply to this post
Did this help? Tips are appreciated...

Miguel

yea sorry i copy and pasted selecting the check box there but also that way it was not working dunno why

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...