Hello,
Finally getting around to putting the shipping type in place on this cart. The suggested methods were implemented but do not work as the value in the select list is the numeric value returned from the shipper not the visual reference.
<?php echo WA_eCart_DisplayMoney($eCart1, $eCart1->GetShipping()); ?>
<select name="shipSelect" id="shipSelect" onchange="document.getElementById('checkoutForm').submit()" >
<option value="<?php echo($groundShip); ?>" <?php if (!(strcmp($groundShip, $eCart1->GetShipping()))) {echo "selected=\"selected\"";} ?>>Ground $<?php echo($groundShip); ?></option>
<option value="<?php echo($twoDayAir); ?>" <?php if (!(strcmp($twoDayAir, $eCart1->GetShipping()))) {echo "selected=\"selected\"";} ?>>2nd Day Air $<?php echo($twoDayAir); ?></option>
</select>
I have the session value being saved and inserted but how to get the title rather then value from a select list to put in the session?
<?php // added 6_26_13 to save off shipping method
if (!session_id()) session_start();
if($_SERVER["REQUEST_METHOD"] == "POST") {
$_SESSION["eCartCheckoutForm_shipping_method"] = "".((isset($_POST["shipSelect"]))?$_POST["shipSelect"]:"") ."";
}
?>