Announcement

Collapse
No announcement yet.

userdefined 1,2 & 3 in customers email

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

    userdefined 1,2 & 3 in customers email

    In the Advanced users guide (page60) it gives details of how to add the contents of the userdefined3 variable as you have 3 in the checkout you can use and is useful to include this in the conformation email the customer receives...

    This works well however how do you show userdefined1 & 2 as it doesnt show you how

    Help

    Thanks

    Jim

    #2
    Hi,

    To add all three options to the customer e-mail and the receipt page:

    Edit OrderScript.pl.
    Search for 'CUSTOMER_NAME' you will see...

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

    After the above line, insert...

    #
    # GeneralInfo
    #
    $ACTINIC::B2B->SetXML('HOWFOUND', $::g_GeneralInfo{'HOWFOUND'});
    $ACTINIC::B2B->SetXML('WHYBUY', $::g_GeneralInfo{'WHYBUY'});
    $ACTINIC::B2B->SetXML('GENUSERDEF', $::g_GeneralInfo{'USERDEFINED'});

    Search for 'Build the receipt', you will see...

    ################
    # Build the receipt
    ################

    Aftr this, insert the following...

    #
    # GeneralInfo
    #
    $::s_VariableTable{$::VARPREFIX.'HOWFOUND'} = $::g_GeneralInfo{'HOWFOUND'};
    $::s_VariableTable{$::VARPREFIX.'WHYBUY'} = $::g_GeneralInfo{'WHYBUY'};
    $::s_VariableTable{$::VARPREFIX.'GENUSERDEF'} = $::g_GeneralInfo{'USERDEFINED'};

    Save and exit.

    You will now be able to use the following tags in the customer email template: 'Act_CustomerEmail.txt'.

    <Actinic:HOWFOUND/>
    <Actinic:WHYBUY/>
    <Actinic:GENUSERDEF/>

    And the following NQV's in Act_Order04.html to display the information on the receipt page.

    NETQUOTEVAR:HOWFOUND
    NETQUOTEVAR:WHYBUY
    NETQUOTEVAR:GENUSERDEF

    Update the site.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Customer email

      I have used your modification and it works fine on the customer receipt page (Act_Order04.html) but even though I've pasted the the code into the Act_CustomerEmail.txt it still does not show in the email receipt.
      I have noticed that in Act_Order02.html the NETQUOTEVARs are called
      GENERALHOWFOUND
      GENERALWHYBUY
      GENERALUSERDEFINED
      Am I naming them correctly in the modified code?
      Mark

      Comment


        #4
        A good thought, but the difference in names in the OrderScript.pl is explained by the following line:

        $::g_GeneralInfo{'HOWFOUND'} = $::g_InputHash{'GENERALHOWFOUND'};

        i.e. the Perl variable 'HOWFOUND' (referred to by the patch provided by Tracey) is set by the value of the 'GENERALHOWFOUND' input field.

        It doesn't explain why yours is not working though. Could you let us know what Actinic version you are using, and also zip up your edited Perl script and email template and attach it to this thread?

        Comment


          #5
          Customer email

          The version of Actinic is 6.1.3.0.0.0.DHBA. The Orderscript.pl is attached in a zip file.
          Thanks
          Mark

          Comment


            #6
            Customer email

            Not sure if the zip file went. Here it is again...
            Attached Files

            Comment


              #7
              Customer email

              Forgot to attach the email template. Here it is...
              Mark
              Attached Files

              Comment


                #8
                I just tried this in my Actinic and it worked fine. I'm using 6.1.4 but that shouldn't affect it. The only other difference as far as I can tell is that I have put my user-defined variables in a different part of the email template.

                I would try re-applying the changes with fresh templates, and also compare your work with mine (attached).

                Hope that helps get you sorted.
                Attached Files

                Comment


                  #9
                  Customer email

                  Did you try both my Orderscript.pl and Customer Email template? I have noticed that your Customer Email file doesn't even contain the HOWFOUND, WHYBUY and GENUSERDEF. I assume this information is not included in your customer emails?
                  Thanks for your help.
                  Mark

                  Comment


                    #10
                    Customer email

                    Sorry to appear completely brain dead on this one, but I FTP'd to the acatalog directory of my site and the Orderscript.pl file was nowhere to be seen, nor in the CGI-BIN. Does it concaternate with another file in the setup when uploaded?
                    Mark

                    Comment


                      #11
                      I can confirm that

                      <Actinic:HOWFOUND/>
                      <Actinic:WHYBUY/>
                      <Actinic:GENUSERDEF/>

                      definitely are in the attached email. Check again. They are just above the address information.

                      I can't try your email template and Perl file as I have 6.1.4 and you have 6.1.3. It wouldn't work.

                      Also, OrderScript.pl is not uploaded to the site. It is a template file that produces os000001.pl - you will have that file in your cgi-bin (or equivalent).

                      Comment


                        #12
                        Customer email

                        Yes they are there. They were so obvious I missed them!!! Thanks very much for your help everyone, I have to say that I will resolve this. I will go over my work again.
                        Cheers
                        Mark

                        Comment

                        Working...
                        X