Announcement

Collapse
No announcement yet.

AUG Free Delivery Code - Amend Per Country

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    AUG Free Delivery Code - Amend Per Country

    Hi,

    I'm currently using code on our site originally from the v8 AUG which shows how much money needs to be spent to receive free delivery.

    See http://www.enjoymuzic.com/ for a visual.

    I believe that this is the script being used...

    Code:
    <script language="javascript" type="text/javascript">
    function de(prc) {
    var data, endata;
    data = new String(prc);
    data = data.split(" ");
    endata = cut(data[0]);
    return endata;
    }
    function cut(dpt) {
    stng = dpt.replace("£", "");
    stang = stng.replace(".", ".");
    return stang;
    }
    var left;
    price = de(getCartItem(1));
    if (price >= 35) {
    document.write("You have qualified for FREE delivery!");
    }
    else {
    left = (35 - price).toFixed(2);
    document.write("Spend £"+left+" for FREE delivery!");
    }
    </script>
    We intend to open up our website and start selling to other EU member countries.

    Does anyone know a way in which this code can be changed to only appear to visitors within the UK?

    I hope someone can help as I'm useless with javascript!

    Thanks in advance.


    David

    #2
    Hi,

    I'm afraid that I'm no javascript expert but would someone who bought from another country but wanted it delivering to a UK address qualify for the free delivery? Also, you can't tell where it is going to be shipped to until they choose the country in checkout (or when they add to basket if you use 'Request Location Information Early') so it's not going to be an easy task to show it to UK customers only - unless a javascript expert would like to correct me on this!

    It may be easier to change the message to something like 'Spend £35.00 for free UK delivery'. Then you wouldn't need to hide it.
    ********************
    Tracey
    SellerDeck

    Comment

    Working...
    X