Writing php script properly to show new description
I did a pro-service to help me create a shipping dropdown. It works great for US shipments. I need to edit the dropdown for International shipping.
This is the code for creating the dropdown to show for shipping options and value:
<td class="eC_SummaryLabel">Shipping</td>
<td id="eCart1_JSON_Display_Shipping"><select name="shipSelected">
<?php
foreach ($ShippingOptions AS $key=>$val) {
?>
<option value="<?php echo($key); ?>" <?php echo($key == $_SESSION['shipChoice']?"selected":""); ?>><?php echo($val[0]); ?>: $<?php echo(number_format($val[1]+3,2)); ?></option>
<?php
}
?>
</select></td>
</tr>
How can I edit this so as to ship "Shipping $9.00" if there is no value because it was a domestic shipment? I have the cart adding $9.00 to the total, but I need to show the description of where the $9.00 came from in the shipping dropdown. I am attaching the cart.php and web credentials so you can see the site live if it helps.