close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UPS Shipping not being charged due to customer selecting and incorrect state and zip code

Thread began 4/21/2017 4:27 pm by Robert Crespo | Last modified 4/24/2017 4:43 pm by Ray Borduin | 107 views | 8 replies |

Robert Crespo

UPS Shipping not being charged due to customer selecting and incorrect state and zip code

Greetings WedAssist, I have a bit of a problem with one of my websites during the checkout process. The problem I have run into is that when a customer uses an incorrect address and zip code, there is no UPS error that is triggered. The customer can then make a purchase with NO SHIPPING being charged which is really not good. Since eCart 6 does not use the shipping_failure.php page to prevents such disasters from happening, I am at a complete loss as to how to fix this. Please let me know what I need to do. I have attached my files for you to review.

Regards,
Robert Crespo

Sign in to reply to this post

Ray BorduinWebAssist

The shipping is done on the confirm_cart.php page. Can I see a copy of that?

Sign in to reply to this post

Robert Crespo

Thank you for getting back to me. I have attached the confirm_cart.php

Sign in to reply to this post

Ray BorduinWebAssist

Currently line 358 is:

php:
<?php if ((isset($_POST["CheckoutWizard_submit"]) || isset($_POST["CheckoutWizard_submit_x"])) && $_SESSION['WAVT_confirmcart_Errors']=="" && !isset($_POST["forShipping"])) { ?>


You could add another check to that like:

php:
<?php 

if ((isset($_POST["CheckoutWizard_submit"]) || isset($_POST["CheckoutWizard_submit_x"])) && $_SESSION['WAVT_confirmcart_Errors']=="" && !isset($_POST["forShipping"])) { 
  if (!
$_SESSION["eCart1_UPS_Quote"]) {
?>
<strong>Unable to find that shipping address.  Please make sure the entered address and zip code are correct.</strong>
<?php
  
} else {
?>



Then you would have to add another close bracket to the php code above the fins </div> (there is already one there you would need two, so update:

php:
<?php ?>



to:

php:
<?php }  } ?>
Sign in to reply to this post

Robert Crespo

Ray,

Well, this only works partially. I updated the code, but when I get I put in an incorrect state and zip, the message appears, but the customer can still make a purchase without the shipping charge being applied which in NOT good. I need a system where the credit card field are not displayed when the there is a UPS shipping error. Please see the attached JPG and my updated confirm_cart.php page.

Sign in to reply to this post

Ray BorduinWebAssist

You put the:
<?php } } ?>

on line 377. That one should just be:
<?php } ?>

The double should be on line 391

Sign in to reply to this post

Robert Crespo

Ray, thank fixed the problem. Now all I need to do is a little custom CSS work to make the notification more prominent. I also want to make the error message appear right below the "continue" button. Any suggestions on where to adjust the code to make that happen?

Sign in to reply to this post

Ray BorduinWebAssist

Delete line 362 where the message is now, but leave the surrounding code.

Then just place this code wherever you want the message to appear (on the cart_confirm page at the top will be just below the continue button) and style it however you want:

<?php
if ((isset($_POST["CheckoutWizard_submit"]) || isset($_POST["CheckoutWizard_submit_x"])) && $_SESSION['WAVT_confirmcart_Errors']=="" && !isset($_POST["forShipping"])) {
if (!$_SESSION["eCart1_UPS_Quote"]) {
?>
<strong>Unable to find that shipping address. Please make sure the entered address and zip code are correct.</strong>
<?php
} }
?>

Sign in to reply to this post

Robert Crespo

Ray, that fixed it! Thank you for your help. Now all I need to do is some custom CSS to make the error message more noticeable. Have a great day.

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