Announcement

Collapse
No announcement yet.

Delivery Details in Order Received Email

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

    Delivery Details in Order Received Email

    We allow orders to be either Collected from our premises, or to be shipped to the same address as that of the person who orders.

    For those that specify Collection, which is setup as a Shipping Band on the Business Settings/Shipping & Handling tab, we would like to include in the Order Received email that Collection was chosen.

    Looking at the Act_OrderRecEmail.txt email template, it looks straight forward to amend it providing I can identify the relevant NETQUOTEVAR variable.

    Ideally, I'd like to put a line in, after the
    NETQUOTEVAR:CUSTOMER_DATA line
    that says
    SHIPPING METHOD: Collection/First Class/Second Class/Express Delivery in the UK/Air Mail (small packets)
    These being our Shipping Bands

    I've looked through the Advanced Guide at the NETQUOTEVAR variables but am not sure which contains that value.

    (Actinic V7)

    Thanks in advance

    Tony

    #2
    Hi Tony,

    By default the NETQUOTEVAR:ORDER_DATA variable which you will find right after NETQUOTEVAR:CUSTOMER_DATA brings in the following....

    __Order Status__________________________________________________

    Order Number: BK008210000044
    Shipping Method: Second Class Post
    Payment Status: Pending
    Date Received: 11/8/2004 08:44 GMT
    Payment Method: CREDIT CARD

    ....

    Here you will see the Shipping method selected by the customer if ther is more than 1 choice and offered as a selectable dropdown. To see what your customer will see you can go into the Orders tab, right click on an order and select View order, click on the mail tab and click on the 'New' button, in the resulting email select the template using the dropdown, choose 'Order Received' and you will see the contents of the email your customer receives.


    Hope this helps,
    Bruce King
    SellerDeck

    Comment


      #3
      Thanks Bruce.

      I looked at the email as per your instructions and, as you said, the email so generated showed the Order Status which includes the Shipping method.

      And these are the contents of the file
      \Actinic v7\Sites\Site1\Act_OrderRecEmail.txt

      Dear NETQUOTEVAR:CUSTOMER_NAME,

      NETQUOTEVAR:COMPANY_NAME

      We have received and are processing the following order:

      NETQUOTEVAR:CUSTOMER_DATA
      NETQUOTEVAR:ORDER_DATA
      NETQUOTEVAR:ORDER_LINES
      NETQUOTEVAR:ORDER_TOTALS
      NETQUOTEVAR:SSP_RATE_MESSAGE

      Sincerely,
      NETQUOTEVAR:SENDER

      NETQUOTEVAR:SENDER_ADDRESSLINE1
      NETQUOTEVAR:SENDER_ADDRESSLINE2
      NETQUOTEVAR:SENDER_ADDRESSLINE3
      NETQUOTEVAR:SENDER_ADDRESSLINE4
      NETQUOTEVAR:SENDER_POSTCODE
      NETQUOTEVAR:SENDER_COUNTRY
      NETQUOTEVAR:SENDER_PHONE
      NETQUOTEVAR:SENDER_FAX
      NETQUOTEVAR:SENDER_EMAIL

      NETQUOTEVAR:SSP_TRADEMARKS

      However, the email that the customers actually receive, and that is also sent to us, goes straight from Customer_Data to Order_Lines - there is no Order_Data information.

      Any thoughts on this please?

      Comment


        #4
        Hi Tony,

        Silly me .. This bit is in the Advanced USer Guide.. Page 69 ..

        From the Advanced User Guide :

        Shipping Method
        This will show you how to include the customer’s selected shipping class as a variable in the online receipt.
        Open ‘OrderScript.pl’ on Notepad and look for the lines:
        ################
        # Build the receipt
        ################
        Underneath it, enter the following code:
        #
        # Add shipping class into list of variables
        #
        $::s_VariableTable{$::VARPREFIX.'SHIPPINGCLASS'} = $::s_Ship_sShippingDescription;
        You can then add NETQUOTEVAR:SHIPPINGCLASS wherever you want the name of the shipping class to appear in Act_Order04.html.
        To then add the shipping class into the customer’s email receipt, open ‘OrderScript.pl’ and search for “read the template”.
        It will jump to the following lines:
        #
        # Read the template
        #
        Just above this, enter the following lines:
        #
        # Add shipping info
        #
        $ACTINIC::B2B->SetXML('ShippingClass', $::s_Ship_sShippingDescription);
        You can then enter <Actinic:ShippingClass/> into Act_CustomerEmail.txt wherever you want the shipping method to appear.


        Hope this helps,

        Kind regards,
        Bruce King
        SellerDeck

        Comment


          #5
          Brilliant Bruce!

          Worked perfectly, especially once I'd got my head round the structure of Act_Order04.html

          Now the shipping / delivery method appear both in the on screen order confirmation and the customers email receipt.

          (I'd looked in the NETQUOTEVAR part of the Advanced Guide not realising that tailoring info was elsewhere)

          Comment


            #6
            Bruce

            Can I get the payment type in there as well?

            If so how?

            Comment


              #7
              Hi Alistair,

              Can I get the payment type in there as well?
              Edit 'OrderScript.pl' in Notepad (found in your 'Site' folder.)

              Search for 'CUSTOMER_NAME' you will see...

              Code:
              $ACTINIC::B2B->SetXML('CUSTOMER_NAME',$sName);
              After this line, insert the following...

              Code:
              $ACTINIC::B2B->SetXML('PAYMENT_METHOD', $$::g_pPaymentList{$::g_PaymentInfo{METHOD}}{PROMPT});
              For the payment method, insert in Act_CustomerEmail.txt the following
              where you want the payment method to appear.

              Code:
              <Actinic:PAYMENT_METHOD/>
              ********************
              Tracey
              SellerDeck

              Comment


                #8
                Hi Tracey,

                Should the above method work for Actinic Business V9? I have tried to add “payment method” as described, but when I view the customer email in Actinic, the added line is not there and when the site is published to the web the file “Act_CustomerEmail.txt” reverts back to how it was.

                Thanks,

                Lee

                Comment


                  #9
                  Sorry, forget the last post. I just found this knowledge base article.
                  Lee
                  Last edited by KB2; 22-Mar-2010, 04:31 PM. Reason: Updating kb links

                  Comment

                  Working...
                  X