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
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
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.
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
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.
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.
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
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.
yea sorry i copy and pasted selecting the check box there but also that way it was not working dunno why
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.