close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Shipping calculation - best approach and advice on database driven shipping rates please.

Thread began 8/10/2015 12:43 pm by Nathon Jones Web Design | Last modified 8/10/2015 8:54 pm by Nathon Jones Web Design | 399 views | 3 replies

Nathon Jones Web Design

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...