2 Shipping Options
Is it possible to let a customer choose from 3 different UPS shipping options? Ground or Air?
If so, could you explain the process for completing this?
Thank you.
Is it possible to let a customer choose from 3 different UPS shipping options? Ground or Air?
If so, could you explain the process for completing this?
Thank you.
On the checkout page, add the following select list:
<select name="UPS_Service" id="UPS_Service">
<option value="01">Next Day Air</option>
<option value="02">2nd Day Air</option>
<option value="03" selected>Ground</option>
</select>
then on the confirm page, locate the collection of hidden form elements near the bottom and add another one with the same name as the select list to capture the value posted from the checkout page:
<input name="UPS_Service" type="hidden" id="UPS_Service" value="<?php echo((isset($_GET["UPS_Service"]))?$_GET["UPS_Service"]:"") ?>" />
then in the UPS Server behavior on the confirm page, click the lightning bolt next to service type and select the UPS_Service form element.
When I applied these changes to the testing server, I thought everything was working correctly; however, when I applied them to the live site. I get this error message using both CC and Paypal.
Missing/Illegal Service/Code
Thank you for your help
my apologies, the code I gave for the hidden element to use on the confirm page:
<input name="UPS_Service" type="hidden" id="UPS_Service" value="<?php echo((isset($_GET["UPS_Service"]))?$_GET["UPS_Service"]:"") ?>" />
is not correct, it should be:
<input name="UPS_Service" type="hidden" id="UPS_Service" value="<?php echo((isset($_POST["UPS_Service"]))?$_POST["UPS_Service"]:"") ?>" />
This seems to work if paying by credit card. But with Paypal Payments Pro when I log in it gives me the price of the item and when I go to pay I get "shopping cart is empty message."
Can you assist with this error?
When I try to submit a transaction using PayPal Pro it does not show the shipping on the confirm.php page and if I press checkout it says Your Transaction could not be completed.
Thanks
I have created a support ticket so we can look into this issue further.
To view and edit your support ticket, please log into your support history:
supporthistory.php
If anyone else is experiencing this same issue, please append to this thread.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.