Announcement

Collapse
No announcement yet.

includind payment method specifics in customer email

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

    includind payment method specifics in customer email

    Hi,

    I need to include some information based on the payment method in the customer email; including a conditional block to test the paymentmethodname variable don't yield any results.

    Lazyeye

    #2
    Hi there,

    Edit 'OrderScript.pl' in Notepad.

    Search for 'CUSTOMER_NAME' you will see:

    $ACTINIC::B2B->SetXML('CUSTOMER_NAME',$sName);


    After this line, insert the following:

    $ACTINIC::B2B->SetXML('PAYMENT_METHOD',
    $$::g_pPaymentList{$::g_PaymentInfo{METHOD}}{PROMPT});


    Insert following where you want the payment method to appear in the email layout:

    <Actinic:PAYMENT_METHOD/>
    Regards,

    Toby Blanchard

    Comment


      #3
      great! thanks.

      Comment


        #4
        Hi
        I am Trying to implement this. Could someone please check that I am doing it correctly:

        OrderScript.pl:
        # Customer name
        #
        $ACTINIC::B2B->SetXML('CUSTOMER_NAME',$sName);
        #
        # Payment Method
        #
        $ACTINIC::B2B->SetXML('PAYMENT_METHOD',
        $$::g_pPaymentList{$::g_PaymentInfo{METHOD}}{PROMPT});
        #
        # Order number and date


        Email Layout:
        Dear <actinic:variable name="CustomerNameOnlineXML"/>,

        Thank you for shopping at <actinic:variable name="CompanyName"/>.
        We have received and are processing the following order:

        ******************************************************
        Order Number: <actinic:variable name="OrderNumberOnlineXML"/>
        Order Date: <actinic:variable name="OrderDateOnlineXML"/>
        Payment Method: <Actinic:PAYMENT_METHOD/>


        When the email is sent through I get this:

        We have received and are processing the following order:

        ******************************************************
        Order Number: DA99BG10000014
        Order Date: 30 November 2007 15:32 GMT
        Payment Method: <Actinic:PAYMENT_METHOD/>


        Any help appreciated
        Dean

        Comment


          #5
          Hi Dean,

          It may be that this version only works for V8 whereas you originally posted in the V7 forum.

          There is another thread with a slightly different variation in the V7 forum here: http://community.actinic.com/showthread.php?t=20490

          Mike
          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment


            #6
            Thanks Mike
            I have converted the site to work with version 8

            Comment


              #7
              Hi
              Can Anyone help me with this one please. I am using v8 and have implemented the code as above but still getting problems.

              Thank You
              Dean

              Comment


                #8
                Try PaymentMethodName instead of Payment_Method.
                ie
                <actinic:variable name="PaymentMethodName" />
                instead of
                <Actinic:PAYMENT_METHOD/>

                Comment


                  #9
                  Thanks for the suggestion.
                  The email returns:
                  NETQUOTEVAR:PAYMENTMETHODNAME

                  When designing the email it looks like it's going to work.
                  I am sure after reading the KB that the answer is in the OrderScript but I think I must have done something slightly wrong.

                  Dean

                  Comment


                    #10
                    Dean,

                    I have tried this on a local site and it works as mentioned above. I would suggest raising a support ticket @ http://www.actinic.co.uk/support/register.htm.
                    Bruce King
                    SellerDeck

                    Comment

                    Working...
                    X