Announcement

Collapse
No announcement yet.

Exchange Rate Variable

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

    Exchange Rate Variable

    Hi there

    I am displaying my currencies in 2 differnt prices (nothing unusual about that), and have edited the exchange rate in the normal way which does infact display the values in the currencies as i want etc

    My problem now is that I would like to display on the site (and use for a small calculation somewhere!!) the exchange rate.

    I can not seem to see the variable in the list of variables to use and have no idea how to get this to display.

    if anyone could help, that would be awesome

    cheers guys ........ again!!

    The Moose

    #2
    If you cannot see it in the list, it's possible that it is not made available to be used in the design. You could therefore create your own new variable, insert the figure and use that for what you want instead.

    Comment


      #3
      ok, lets say i wanted to do that.

      i dont suppose anyone would be able to tell me how to do this ... plesae!!!

      Moose

      Comment


        #4
        oh, and i wanted to use that exchange rate, as i dont want to have to set it twice. im sure you understand this!!!

        moose

        Comment


          #5
          Originally posted by The Moose View Post
          ok, lets say i wanted to do that.

          i dont suppose anyone would be able to tell me how to do this ... plesae!!!

          Moose
          Read the inbuilt help on how to create a variable, it's very good with pictures too.

          Comment


            #6
            Originally posted by The Moose View Post
            oh, and i wanted to use that exchange rate, as i dont want to have to set it twice. im sure you understand this!!!

            moose
            I sure do understand and totally agree, but if you've looked down the list and cannot see it, then it is either named different to what you expect, you have competely missed it or it is not available to use in the design. This will mean you need to create one to use, if you are sure it's not there and you must have the rate in a variable to use.

            If you know any php, you may find you do not need to create a variable and can just use the figure in your php calculation for example.

            Comment


              #7
              Would it also be possible to create a new variable extracting the text from an exisitng variable such as Product Name and placing a comma in the spaces.

              i.e product name = Ford Fiesta 1600 Petrol
              new variable would change it to Ford,Fiesta,1600,Petrol

              This would save me a lot of work if it can be done.

              Kind regards

              Jason
              Regards

              Jason

              Titan Jewellery (Swift Design)
              Zirconium Rings
              Damascus Steel Rings

              Comment


                #8
                i dont know if that exactly is possible, but i do know that you would be able to use a PHP function to do this whereever you wanted in the site.

                If this would be of help, say so, and I will write you a quick function.

                Let me know

                Moose

                Comment


                  #9
                  Originally posted by Buzby View Post
                  Would it also be possible to create a new variable extracting the text from an exisitng variable such as Product Name and placing a comma in the spaces.

                  i.e product name = Ford Fiesta 1600 Petrol
                  new variable would change it to Ford,Fiesta,1600,Petrol

                  This would save me a lot of work if it can be done.

                  Kind regards

                  Jason
                  Variables do not have functions like that, you'd need php as mentioned. However php will not add commas and then put the variable contents back in as far as i know. You probably need to do a database query or an excel find/replace function to do that.

                  Comment


                    #10
                    I don't think you can change the actinic variable like that, but you can obviously change spaces for commas using it and do this where you want to have it displayed. I assumed the OP only wanted to display it with commas only in certain places otherwise a database wide search and replace would help. Moose

                    Comment


                      #11
                      Many thanks both of you for the info.

                      What I actually wanted was to automatically generate a meta tag using the product name. I thought that this would be possible with a variable.

                      Although PHP would, as you say generate the effect I am not sure this could be placed into the meta tag.

                      I thought it would be easy to use a copy of the productname variable and slightly adjust to use commas instead of spaces. Just an idea that I had that I will have to rethink.
                      Regards

                      Jason

                      Titan Jewellery (Swift Design)
                      Zirconium Rings
                      Damascus Steel Rings

                      Comment


                        #12
                        I'm pretty sure you could run php on the product name variable and get it to fill out the meta keywords. You'd be far better running a database or excel query though IMO.

                        Comment


                          #13
                          Seems too complex for me to do I think. What started out as what I thought would be a small job is obviously more tricky than I imagined.

                          Not to worry, I'll just move down to the next point on my to do list.
                          Many thanks

                          Jason
                          Regards

                          Jason

                          Titan Jewellery (Swift Design)
                          Zirconium Rings
                          Damascus Steel Rings

                          Comment


                            #14
                            If you are just using it as a meta description or keyword tag then it does not need commas so using the productnamevariable would work by just replacing the metavariable

                            Comment


                              #15
                              If you use
                              Code:
                              <actinic:block php="true">echo str_replace(' ',',','<actinic:variable name="ProductName" encoding="perl" selectable="false" />');</actinic:block>
                              It will output commas instead of spaces.
                              Norman - www.drillpine.biz
                              Edinburgh, U K / Bitez, Turkey

                              Comment

                              Working...
                              X