Announcement

Collapse
No announcement yet.

Problem checking ShipCountryOnlineXML in customer email

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

    Problem checking ShipCountryOnlineXML in customer email

    Hi - in the customer email I want to check the shipping country and display an additional message if the country is Scotland.

    I have tried the following within a block but nothing is displayed:

    Code:
    <actinic:variable name="ShipCountryOnlineXML" /> == "Scotland"
    If I put the following without a condition then it displays:

    Code:
    Country = <actinic:variable name="ShipCountryOnlineXML" />
    I assume that there is some encoding screwing this up - any ideas?
    Regards
    David

    #2
    Bump... Bump.. Bump..
    Regards
    David

    Comment


      #3
      I'm not sure I understand what you're trying to do. Blockifs run when the site is created during an upload and the customer email is created by the perl scripts online when the order is confirmed.

      I might be missing something but I don't see how a blockif is going to do anything when an order is created online.

      It might be best to explain what you're trying to do and how. At worst, it will help me understand it and at best you might find someone else joins in with the solution.

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

      First Tackle - Fly Fishing and Game Angling

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

      Comment


        #4
        Hi Mike - What I want to do is display a message on the customer's email if the delivery country is 'Scotland'
        Regards
        David

        Comment


          #5
          As mentioned above the emails are created by Perl scripts when the customer is on the site. You can't use BlockIf's that are conditional on what the customer entered there (they're only for when the site is being built).

          You will need Perl script tweaks to do that. Not trivial.

          Instead, consider putting an "If you're in Scotland..." type message on every email.

          Or (less risky than tweaking the Perl), you could use JavaScript to detect the Ship Country and display a message somewhere in the checkout (not the email) conditional on that.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Thanks for the replies.

            It will have to be a "If you're in Scotland..." type message
            Regards
            David

            Comment

            Working...
            X