Announcement

Collapse
No announcement yet.

Calling a variable from within a variable

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

    Calling a variable from within a variable

    I would like to populate the Product Price Description using some standard text combined with a product level variable.

    Let us say my standard text is: "Your Price Is:"

    and the variable is x, with a value in a given case of £2.00,

    I would like Your Price Is: £2.00 to be displayed in this case.

    I have tried putting Your Price Is: [x] into the Product Price Description but this displays the [x] rather than the value. I am sure I am missing a simple trick on this but any help would be much appreciated!
    Flooring Sales Ltd
    Flooring Sales Ltd - Wood and Laminate Flooring Company
    Hadlow Flooring
    Herga Flooring

    #2
    yes, you're missing that you can use php in this area. ;o)

    Comment


      #3
      Well I am happy to use PHP if needed but that seems like an overkill if it can be done from within Actinic. Is that possible or not?
      Flooring Sales Ltd
      Flooring Sales Ltd - Wood and Laminate Flooring Company
      Hadlow Flooring
      Herga Flooring

      Comment


        #4
        The logic is if the your price variable has something in it, then show it, if not, show nothing.

        Have a blockif testing the contents of the new variable you create and you put something in the variable if you want to use it:

        Blockif (testing to see if empty or not)
        Your Price Is: £<my new variable>
        /block

        Comment


          #5
          There was some discussion about this stuff here: http://community.actinic.com/showthread.php?t=33422

          I don't know where or when this works but you could make sure you don't have any spaces between the variable name and the brackets.

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

          First Tackle - Fly Fishing and Game Angling

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

          Comment

          Working...
          X