close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Todays eCart (5) errors

Thread began 3/02/2012 8:47 am by Steve | Last modified 3/02/2012 5:58 pm by Steve | 2038 views | 17 replies |

Steve

Todays eCart (5) errors

Hello,
Today after duplicating values from a prior working cart and deleting those created from the wizard I find that moving to the checkout page yields the following error:

" Missing/Illegal Combination of Package/Dimensions "

I've added the echoing code as noted in this Thread:
showthread.php?t=15278


which yields the following empty results on the shipping_failure page

Direct Pay:
Full Request: n/a
Full Response: n/a

Express Authorize
Full Request: n/a
Full Response: n/a

Express Process:
Full Request: n/a
Full Response: n/a

UPS:
Full Request: n/a
Full Response: n/a

FedEX:
Full Request: n/a
Full Response: n/a

USPS:
Full Request: n/a
Full Response: n/a


Note: the cart/display page prior to checkout have identical eCart code so not sure what aspect to trace next?

Sign in to reply to this post

Jason ByrnesWebAssist

the thread you reference is for code specific to power store.


what shipping provider are you using? In the bindings panel, there will be a binding group for your shipping provider, in that binding group is a binding for the full request and full response for that provider, add those bindings to the page.

Sign in to reply to this post

Steve

Hi Jason,
Using UPS.

Results are as follows from adding the two bindings items:


Full Request:

--removed client details--Rating and Service1.0001Raterate015YA450
Dana PointCA92629US
030212in10in8inIN1.0LBS



Full Response:

Rating and Service1.00010FailureHard110602Missing/Illegal Combination of Package/Dimensions

Attached image showing the values set in the Extension... I will remove the 'in" after each value as that might be the problem...

Sign in to reply to this post

Jason ByrnesWebAssist

yes, package length width and height should not include the dimensions, that is aded to the value by the Size Units setting.

Sign in to reply to this post

Steve

Success...

Was able to fully checkout but one issue where the URL query string is still in the URL when passed to the checkout.php page causing an error.

For instance ...checkout.php?ProdId=5

Sign in to reply to this post

Jason ByrnesWebAssist

what was the error?


was this coming from the cart page or another page?

on the page that contains the checkout button, go to the server behaviors panel and double click the checkout server behavior, make sure the address entered for the checkout page does not contain the uRL variables.

Sign in to reply to this post

Steve

The error is a page failure/not found due to not being able to parse the queryString value.

The ProdId starts by existing on the Product Detail page.
Then the Checkout page link/checkout behavior fires on any $_POST (which I will change as I want to remain on the Product page after adding a product - as shown in attached image).

Once the value exists on the Display (Order summary page) it is retained and passed to the checkout page where the error causes a failure.

Checkout code:

<?php
//WA eCart Trigger Redirect Check Out
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (true) {
$eCart1->UpdateCart();
$eCart1->cartAction = "CheckOutUpdate";
}
$Redirect_redirStr="display.php";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") === false) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}

$eCart1->redirStr = $Redirect_redirStr;
}
$eCart1->cartAction = "Checkout";
}
?>



Add to cart code:

<?php
// WA eCart AddToCart
if (isset($_POST["eCart1_1_ATC"]) || isset($_POST["eCart1_1_ATC_x"])) {
$ATC_itemID = $_POST["eCart1_1_ID_Add"];
$ATC_AddIfIn = 0;
$ATC_RedirectAfter = "";
$ATC_RedirectIfIn = "";
if (isset($totalRows_rsProduct) && $totalRows_rsProduct > 0) {
$row_rsProduct = WAEC_findRecordMySQL($rsProduct, "ProductID", $ATC_itemID);
if ($row_rsProduct) {
$ATC_itemName = "".$row_rsProduct['ProductName'] ."";// column binding
$ATC_itemDescription = "".$row_rsProduct['ProductShortDesc'] ."";// column binding
$ATC_itemThumbnail = "".$row_rsProduct['ProductImage'] ."";// column binding
$ATC_itemWeight = floatval("".$row_rsProduct['ProductWeight'] ."");// column binding
$ATC_itemQuantity = "".$_POST["eCart1_1_Quantity_Add"] ."";// column binding
$ATC_itemPrice = floatval("".$row_rsProduct['ProductPrice'] ."");// column binding
mysql_data_seek($rsProduct, 0);
$row_rsProduct = mysql_fetch_assoc($rsProduct);
}
}
$ATC_itemQuantity = floatval($ATC_itemQuantity);
if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0) {
$eCart1->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice);
if ($ATC_RedirectAfter != "" && $eCart1->redirStr == "") {
$eCart1->redirStr = $ATC_RedirectAfter;
}
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
}
else {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'];
}
}
}
?>
<?php
// WA eCart Redirect
if ($eCart1->redirStr != "") {
header("Location: ".$eCart1->redirStr);
}
?>
Sign in to reply to this post

Jason ByrnesWebAssist

in the checkout button code, remove this chunk so that it will not append the query string:

php:
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "")     {

      if (strpos($Redirect_redirStr, "?") === false)     {
        $Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
      }
      else     {
        $Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
      }
    }
Sign in to reply to this post

Steve

Perfect! Thanks


Now I just need the weights to properly calculate as no mater how many items in the cart the same Shipping cost is being returned. Any suggestions on where to look next?

Sign in to reply to this post

Jason ByrnesWebAssist

what is the full code for the package weight option?

Sign in to reply to this post
loading

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...