Announcement

Collapse
No announcement yet.

Order Number Variable

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

    Order Number Variable

    Hi everyone

    Sorry I have looked for the answer to this everywhere.

    Is it possible to add the order number as a variable to an email (e.g. Order Shipped Email)?

    The reason I ask is because it can then be inserted into a URL string for order tracking. Eg for city link courier tracking, the following link could be ised:

    http://www.city-link.co.uk/track_par...obno=&custref=[ORDER_NUMBER_VARIABLE]&hidebanners=

    This would be every helpful. I have tried ORDERNUMBERONLINEXML - no good. The order number is also in the ORDERDATA variable - just can't seem to seperate it.

    Thanks in advance.

    DCooke

    #2
    Dan,

    have you downloaded a copy of the advanced user guide from the Actinic site. The latest version of this has the answer, I think. Take a look at page 99. and quoted below.


    Purchase Order Number
    This section will show you how to place your customers' purchase order number into the email they are sent.
    Open 'OrderScript.pl' within your site folder in Notepad.
    Find the line:
    $ACTINIC::B2B->SetXML('CUSTOMER_NAME',$sName);
    You will find this in the sub 'GenerateCustomerMail' function.
    Once you have found this line, add the following code underneath:
    $ACTINIC::B2B->SetXML('PURCHASEORDERNUMBER', $::g_PaymentInfo{'PONO'});
    Once you have made this change, you will be able to use the tag <Actinic:PURCHASEORDERNUMBER/> in the 'Customer Email' layout.
    http://www.strawberry-tiger.co.uk
    Practical parenting products for babies and toddlers covering safety, development, sun protection, clothing, health, bedroom, nursery, travel, etc.

    Comment


      #3
      Thanks John. I think that mat just be for when a purchaser gives you a PO number. But its somewhere to start!

      Dcooke

      Comment

      Working...
      X