Announcement

Collapse
No announcement yet.

Testing variable "MyAccountOrderStatus"

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

    Testing variable "MyAccountOrderStatus"

    Hi - I'm trying to do a blockif on the variable MyAccountOrderStatus (used in order tracking, settable on the Progress Tab). I want to test the variable, so that if it is, say, "City Link" I can then use the city-link URL.
    But Whatever I set the variable to - in this case "A" - it never passes the test so the tracking URL does not get displayed.

    This is in the My Account Bulk Area

    <actinic:block if="%3cactinic%3avariable%20name%3d%22MyAccountOrderStatus%22%20%2f%3e%20%20%3d%3d%20%27A%27" >

    <td><a href="http://www.city-link.co.uk/receiving-a-parcel/tracking/clan/<actinic:variable name="MyAccountOrderDeliveryTracking" />"><actinic:variable name="MyAccountOrderDeliveryTracking" />
    </a></td>

    </actinic:block>

    So my question is what is the correct way of testing the variable "MyAccountOrderStatus" ? The choices for this variable are set up in business settings.

    Any ideas ?
    Machinery Parts Specialist
    www.magic-parts.co.uk

    #2
    BlockIfs only work on the desktop, they're not an online option, they are used to help build pages, not change their contents while live. You would most likely need to look at using Javascript.

    Comment


      #3
      Hi - I'm in Design / Library / My Account Bulk Area

      Lots of blockifs already in there.
      Blockifs are working, I just can't get a positive outcome on that particular variable.
      I'm basically doing a "if variable="City Link" then..." and even though I know the varible is set to City Link, the Block doesn't work.

      I also do a "if variable NOT Equal "city link" do this..." and that WORKS.

      The variable I'm testing is MyAccountOrderStatus, which ocrrectly displays on-screen as city link.
      Machinery Parts Specialist
      www.magic-parts.co.uk

      Comment


        #4
        How many of your customers will be going into the design library of your site to see this order status? I presume you are wanting to provide a tracking link for their parcel? if so that will not happen via Blockifs.

        PS - is your spelling and capitalising identical to the variable content?

        Comment


          #5
          Um how many will go into my design library? None, its doesn't work like that.
          My customers will be on the order tracking page.

          Don't worry anyway I have got it to work now. Pretty easy when you know how.
          Machinery Parts Specialist
          www.magic-parts.co.uk

          Comment


            #6
            If it's a static tracking link, where they input the tracking number, for sure you can provide a link using a blockif as you have found by just probably spelling it the same as i suggested, but you then need to provide the tracking number too? City link as far as i know provide a different url per parcel and thus a generic link is not really usable though? unless you take then to a page where they can input tracking number i guess. Clunky but better than nothing agreed.

            Comment


              #7
              My Account Bulk Area is common code that is used online for all accounts. The Blockifs are used to create the code once off on your desktop before being uploaded and populated online. The code therefore in the Blockif will not change for different account holders online. If you only use City Link then it will show the URL but check what will happen online if not.

              Comment

              Working...
              X