Show the type of shipping option instead of the number
Hello.
I am now adding multiple shipping options. I followed a solution (see below) that was posted in a previous thread which worked perfectly. On the confirmation page I would like to have Shipping: Shipping type (Ground etc) for the customer to see.
I then added the following code to the confirm.php page:
<td class="eC_SummaryLabel">Shipping: <?php echo((isset($_POST["shipping_options"]))?$_POST["shipping_options"]:"") ?></td>
This shows as; Shipping: 03 (for ground). Is there a way to actually post as Ground instead of 03?
Here is the solution I followed:
On the checkout page in the shipping part of the form you will need to add a new select list. The name does not matter so much as the options and values in it. After the select list is in place use these for the options:
<option value="01">Next Day Air</option>
<option value="02">2nd Day Air</option>
<option value="03">Ground</option>
<option value="07">Worldwide Express</option>
<option value="08">Worldwide Expedited</option>
<option value="11">Standard</option>
<option value="12">3 Day Select</option>
<option value="13">Next Day Air Saver</option>
<option value="14">Next Day Air Early AM</option>
<option value="54">Worldwide Express Plus</option>
<option value="59">2nd Day Air AM</option>
<option value="65">Express Saver</option>
Once this is in place you will need to edit the UPS shipping server behavior that is on the confirm page. In here you will use the lightning bolt for the service type and choose this new select list that you put in the checkout form.
You may also need to know...
On your confirm page you may need to go to Bindings > Form Data and select your checkout page to get the form bindings available on this page. After you do this you should see the form from the checkout page, on my confirm page it is eCart_checkout_form.
Thanks!
Regards,
Rob