What about....If you create a blank page, then add a 'clear cart' button
that seems to add the appropriate code to the page
as far as i can see - if you run the clear cart bit without testing for the button or redirecting that should do the job?
require_once("WA_eCart/eCart1_PHP.php");
?>
<?php
$eCart1->GetContent();
?>
<?php
// WA eCart Clear Cart
if (isset($_POST["eCart1_Clear_1"]) || isset($_POST["eCart1_Clear_1_x"])) {
$eCart1->ClearCart();
$Redirect_redirStr="xxxxxxx.php";
if ($Redirect_redirStr != "") {
$eCart1->redirStr = $Redirect_redirStr;
}
$eCart1->cartAction = "ClearCart";
}
?>
ie
<?php
require_once("WA_eCart/eCart1_PHP.php");
$eCart1->GetContent();//do we need this?
$eCart1->cartAction = "ClearCart";
?>
or have I missed something?