So I query the recordset using the country that the customer has selected from the drop-down menu?
eCart Checkout Wizard pre-fills the Country drop down menu AND features a unique set of country codes. I assume that these codes are needed for passing to various payment providers - in our case Sage Pay - so I'm confused about how I edit this and am nervous about changing these codes in case they cause problems further down the line. PayPal, for example, needs specific country codes for verifying a billing address, if I remember correctly.
I'm lost with this Ray. How do we use the eCart Country drop down menu to decide what the shipping cost will be to the customer?
Will I have to copy EVERY country code into my new Shipping table and create a corresponding shipping price, making sure not to edit the country title or country code?
I'd appreciate your advice on it as I'm really not sure how we establish what the shipping cost for the customer should be based on the country drop down menu that eCart has created.
Thank you.
NJ
EDIT:
The eCart Country drop down menu looks like this..
<select class="formMenufield_Medium" name="Country" id="Country" rel="<?php echo(WA_coalesce(array(WA_getSavedFormValue("CheckoutWizard_NewFromBlank_Default","Country"),(isset($_GET["invalid"])?ValidatedField("confirmcart","Country"):"")))); ?>" tabindex="8" title="Please select your country." required>
<option value="" <?php if (!(strcmp("", WA_coalesce(array(WA_getSavedFormValue("CheckoutWizard_NewFromBlank_Default","Country"),(isset($_GET["invalid"])?ValidatedField("confirmcart","Country"):"")))))) {echo "selected=\"selected\"";} ?>>Select Country</option>
<option value="US" <?php if (!(strcmp("US", WA_coalesce(array(WA_getSavedFormValue("CheckoutWizard_NewFromBlank_Default","Country"),(isset($_GET["invalid"])?ValidatedField("confirmcart","Country"):"")))))) {echo "selected=\"selected\"";} ?>>United States</option>
<option value="GB" <?php if (!(strcmp("GB", WA_coalesce(array(WA_getSavedFormValue("CheckoutWizard_NewFromBlank_Default","Country"),(isset($_GET["invalid"])?ValidatedField("confirmcart","Country"):"")))))) {echo "selected=\"selected\"";} ?>>United Kingdom</option>
<option value="AL" <?php if (!(strcmp("AL", WA_coalesce(array(WA_getSavedFormValue("CheckoutWizard_NewFromBlank_Default","Country"),(isset($_GET["invalid"])?ValidatedField("confirmcart","Country"):"")))))) {echo "selected=\"selected\"";} ?>>Albania</option>
...etc.
If I need to associate a shipping price to whatever country the user selects then I'll need to database drive this list, won't I?
I still don't understand, however, how I then extract, also, the shipping price so that I can capture it and store it as a session value.
Thank you.
NJ