Announcement

Collapse
No announcement yet.

Using company address variables in Contact Us page

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

    Using company address variables in Contact Us page

    Hello,

    I want to add the company address details in to a Contact Us page. At the moment, I have it set up like this:

    Block if [if CompanyStreetAddress2 is not empty]
    CompanyStreetAddress2
    /block

    But what I end up with on my site is:

    NETQUOTEVAR:COMPANYSTREETADDRESS2

    instead of the second line of (Business Settings | Company/Contact).

    This is the same for all lines of the address, postcode and phone number: I have picked the one above as an example. Anyone have any ideas how I can insert these variables correctly?

    Thanks a lot.

    #2
    I think you need
    Code:
    <actinic:variable name="CompanyStreetAddress2" /> != ""

    Comment


      #3
      Originally posted by completerookie
      I think you need
      Code:
      <actinic:variable name="CompanyStreetAddress2" /> != ""
      I haven't been very clear. I just put that there to illustrate what condition I'm using. The problem I'm having is with the variable showing up properly on my site.

      Even if I omit the condition completely, I still get NETQUOTEVAR.... etc.

      Here's my code
      Code:
      block if
           CompanyStreetAddress2
      /block

      In other words, putting CompanyStreetAddress2 gives me "NETQUOTEVAR:COMPANYSTREETADDRESS2" instead of "Wheathamstead".

      Comment


        #4
        Anyone got any thoughts on this problem I'm having?

        Have I explained it correctly?

        Comment


          #5
          Are you typing CompanyStreetAddress2 or are you using right click to insert a variable?
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #6
            Originally posted by wjcampbe
            Are you typing CompanyStreetAddress2 or are you using right click to insert a variable?
            I've done it both ways. It seems to have the same result.

            Comment


              #7
              not totally sure, but are you actually creating the condition and product correctly.
              when I create a new layout to conditionally display CustomerStreetAddress2 the code generated is as follows:
              Code:
              <actinic:block if="%3cactinic%3avariable%20name%3d%22CompanyStreetAddress2%22%20%2f%3e%20%21%3d%20%22%22">
              	<actinic:variable name="CompanyStreetAddress2" />
              </actinic:block>
              try cutting and pasting the code and see if that works.

              Comment


                #8
                Originally posted by completerookie
                not totally sure, but are you actually creating the condition and product correctly.
                when I create a new layout to conditionally display CustomerStreetAddress2 the code generated is as follows:
                Code:
                <actinic:block if="%3cactinic%3avariable%20name%3d%22CompanyStreetAddress2%22%20%2f%3e%20%21%3d%20%22%22">
                	<actinic:variable name="CompanyStreetAddress2" />
                </actinic:block>
                try cutting and pasting the code and see if that works.
                That's giving the same result.

                As a matter of interest, how do you see the raw code rather than the Actinic formatted "block if", etc.?

                Comment


                  #9
                  Hi there. The variables to use are:

                  <actinic:variable name="CompanyName" />
                  <actinic:variable name="Address1" />
                  <actinic:variable name="Address2" />
                  <actinic:variable name="Address3" />
                  <actinic:variable name="Address4" />
                  <actinic:variable name="PostalCode" />
                  <actinic:variable name="Country" />

                  Comment


                    #10
                    Originally posted by cdicken
                    Hi there. The variables to use are:

                    <actinic:variable name="CompanyName" />
                    <actinic:variable name="Address1" />
                    <actinic:variable name="Address2" />
                    <actinic:variable name="Address3" />
                    <actinic:variable name="Address4" />
                    <actinic:variable name="PostalCode" />
                    <actinic:variable name="Country" />
                    Perfect! Thanks very much.

                    Comment

                    Working...
                    X