Can you clarify just where to place that bit of code? I have found a few different spots that I thought were the UPS shipping server behavior, but when I try adding the condition, the shipping does not get charged at all - there is no charge listed on the confirm page regardless of what is chosen from the select list on the checkout page.
On my confirm page, I have a large block of code beginning with:
<?php
if ((((isset($_POST["Checkout_x"]))?$_POST["Checkout_x"]:"") != "")) {
//WA eCart (Copyright 2007, WebAssist)
//WA eCart UPS Shipping - UPS
$Shipping_SuccessURL = "";
$Shipping_FailureURL = "shipping_failure.php";
$Shipping_Packaging = 0;
$Shipping_PackageArray = array();
$Shipping_PackageIndex = 0;
$Shipping_Counter = 0;
...and so on
I thought that was the shipping server behavior that has been set up in the cart wizard.
I also have the session:
<?php
if (!session_id()) session_start();
if((((isset($_POST["UPS_Service"]))?$_POST["UPS_Service"]:"") != "")) {
$_SESSION["UPS_Service"] = "".((isset($_POST["UPS_Service"]))?$_POST["UPS_Service"]:"") ."";
}
?>
I'm either not looking in the right place, or I'm not placing the code in the correct way. I'm not completely confident on if I should be working from the confirm page or the checkout page.
Also, I have restarted DW, and the flat-rate value is still failing to be saved in the cart object. I may not be working with the most updated version of ecart, which could make a difference. I can add that value through the code itself, however, to get around that issue, correct? I'm assuming I change the line $totalShipping += 0;//Result
Thanks for helping me through this. I must be making a silly mistake somewhere that is just cancelling out the shipping altogether. I just wanted to make sure I'm putting the code in the right place before I keep trying to figure out what else could be happening.
Thanks again - I appreciate it!