Announcement

Collapse
No announcement yet.

Help with code in checkout page needed

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

    Help with code in checkout page needed

    We have been given a method of putting our consignments directly into the DHL shipping system, which would save us a bit of time if it is feasable. I don't really have the knowledge to do this. We need a form put into the receipt page (so far so good - even I can do this) but it needs to pick variables from the order - such as the delivery address, order number and delivery Email address. Obviously we wouldn't want the 'submit' button.

    Is this something anyone can help with?

    The form is
    <form name="sendAddress" id="sendAddress" action="https://dhl.saletrack.co.uk/spsApi/address.asp" method="post">
    <input type="hidden" name="cid" value="250976" /> <!-- Mandatory-->
    <input type="hidden" name="oi" value="PO_No_33333" /> <!-- Optional-->
    <input type="hidden" name="postcode" value="DN1 1ND" /> <!-- Mandatory-->
    <input type="hidden" name="company" value="Company Name or Customer Name" /><!-- Mandatory-->
    <input type="hidden" name="contact" value="Customer Name" /> <!-- Optional-->
    <input type="hidden" name="street" value="14 Acacia Avenue" /> <!-- Mandatory-->
    <input type="hidden" name="area" value="Any Area" /> <!-- Optional-->
    <input type="hidden" name="town" value="Any Town" /> <!-- Mandatory-->
    <input type="hidden" name="county" value="Any County" /> <!-- Optional-->
    <input type="hidden" name="email" value="me@mysite.co.uk" /> <!-- Optional. If used will send delivery notifications-->
    <input type="hidden" name="add" value="1" /> <!-- Mandatory-->
    <input type="submit" name="submit" />
    </form>

    There is a complcation as I see it. If DeliveryCompany variable is empty in Actinic we need the DeliveryName put in that field instead. Also the postcode must have a space before the last 3 characters
    'cid' is our account number and must stay in the form
    'oi' would be the order number
    'add' value should stay as 1.
    the 'email' is the customer email.
    I think the other values are self explanatory.

    #2
    I'm sure i read an almost identical question a few days ago to do with DHL. Have a search and see if you can find the thread, i'm not sure if it got answered. You may be able to contact the guy/gal for some help.

    Comment


      #3
      I'm sure i read an almost identical question
      You sure did!

      Comment


        #4
        I think you mean David's earlier post here

        David, your earlier post has been viewed about 30~40 times already with no one replying. This is usually an indication that the main community contributors are not able to offer any help or advice.
        Duplicating your post can cause confusion - you could have simply re-posted into your original post to "bump" it, however Actinic's own staff respond to all posts that have received no reply from the community after a few days so sometimes it is best to be patient.
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment


          #5
          That's the puppy, well at least my memory is OK.
          David, if anyone can help it will probably be outside of normal forum help and to be honest it's probably a really uninspiring piece of work for someone to take on.

          Comment


            #6
            David,
            It is possibly feasible using Javascript.
            You would need a Page OnLoad event to call a function to format and retrieve some values (the email address alone needs some fiddling to get it on its own) then auto-submit the form.
            A bit fiddly, and as Lee said, most likely an uninspiring piece of work for most developers.
            Sorry not to have been more help.
            Fergus Weir - teclan ltd
            Ecommerce Digital Marketing

            SellerDeck Responsive Web Design

            SellerDeck Hosting
            SellerDeck Digital Marketing

            Comment


              #7
              Originally posted by fergusw
              I think you mean David's earlier post here

              David, your earlier post has been viewed about 30~40 times already with no one replying. This is usually an indication that the main community contributors are not able to offer any help or advice.
              Duplicating your post can cause confusion - you could have simply re-posted into your original post to "bump" it, however Actinic's own staff respond to all posts that have received no reply from the community after a few days so sometimes it is best to be patient.
              I was told I probably posted it in the wrong section, which I think is true because I had no replies, so I reposted it in what I thought was the right section. I am sorry it has annoyed you - I just needed some help.

              Comment


                #8
                Originally posted by candleshop
                I am sorry it has annoyed you - I just needed some help.
                David, I was in no way annoyed. I'm sorry you took that tone from my post. I was merely trying to point out why you might not be getting the response you perhaps anticipated.

                My earlier post should point you in a possible solution's direction i.e. Javascript.
                There was also a post about how to extract the email address on the receipt page - here

                Just some ideas and suggestions
                Fergus Weir - teclan ltd
                Ecommerce Digital Marketing

                SellerDeck Responsive Web Design

                SellerDeck Hosting
                SellerDeck Digital Marketing

                Comment

                Working...
                X