Announcement

Collapse
No announcement yet.

Add another condition in a test

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

    Add another condition in a test

    Hi. I have a text "free delivery" which appear when price is more than 251 euros ex vat.
    The test is <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceRaw%22%20%2f%3e%3e251%20%20AND%20%3cactinic%3avariable%20name%3d%22PageTitle%22%20%2f%3e%20%21%3d%20%22Vente%20de%20Billards%20professionnels%22" >
    I would like to add another conditions : this text must appear for products for which price is more than 251 euros but not for product for which sShippingCategory is Billard.
    How can I modify the test ?
    Thanks
    Didier
    www.supreme.fr
    _____________________
    Saint Malo. France

    #2
    If price is greater than 251 AND category != "Billard"

    Comment


      #3
      I was having a quick look at this also - but what is the actinic variable for category? I couldn't see it.

      Comment


        #4
        I've never looked at it Duncan, i presumed when Didier wrote 'sShippingCategory' that he had already found it etc.

        If it is not available at variable level, then i guess its a case of a new variable with 'none' and 'billard' as options, with 'none' as standard and all 'billard' products have theirs changed manually. Then run the condition on the new variable instead.

        Comment


          #5
          No I did not find it. sShippingCategory come from the access database and is corresponding to the shipping category into product details tab, but I do not know what variable I must insert in the condition. In fact I need to find what is the variable corresponding to the field sShippingCategory !
          Didier
          www.supreme.fr
          _____________________
          Saint Malo. France

          Comment


            #6
            My posts tells you what to do if it is not available.

            Comment


              #7
              The variable is probably available, but I don't know how I can find it.
              Didier
              www.supreme.fr
              _____________________
              Saint Malo. France

              Comment


                #8
                It's probably not Didier if you cannot find it, so just create your own new one, it'd take about 2 minutes to do this, so not really worth the hassle of trying to find anything. It is most likely that it does not exist anyway.

                Comment


                  #9
                  Thanks Lee, but my problem is that I do not have any idea of how I can create a new variable ! My level is too poor.
                  Didier
                  www.supreme.fr
                  _____________________
                  Saint Malo. France

                  Comment


                    #10
                    It's easier than setting up a blockif and you've tackled that willingly. Have a read of the help within actinic, it will help you a lot. Have a go and if you get stuck, let us know what you have done and how far you have got and we can guide you the rest of the way. Also look at existing ones. You sound defeated before you have even started.

                    You need to show willing to have a go and learn Didier, otherwise contact your designer to do it for you. We're here to help and offer assistance, not do things for you, it can be a fine line at times.

                    Comment


                      #11
                      Thanks for your help Lee ! I try to do my best. Understanding programmation is not easy when it is in French : it is a lot more difficult in English ! I try to understand the way of working with version 8, as I used to work on v5 then v7, and it is completely different.
                      I never ask you to do the job for me, I don't ask you to tell how I can create a new variable : I simply thought that, if the field sShippingCategory exists in the access database, then probably there is a corresponding variable in Actinic. And I thought, that perhaps somebody has already used it in a test and can help me to find it. No more !
                      Don't worry, no problem, I will ask my designer, Bill Campbell to help me.
                      Didier
                      www.supreme.fr
                      _____________________
                      Saint Malo. France

                      Comment


                        #12
                        Your English is very good and your ability to understand what somebody means is also very good, yet you cannot read the help which guides you through the process? The help in the software is written in English, which is the language we use in the forum also, you need to be able to read and understand English for either method to be able to help you. The help in actinic on setting up variables is VERY good and in good English, it also has pictures to help you along the way, if you have any chance of being able to do this, i suggest that being your best route.

                        If that is not feasible for you, then i am not sure what posting in a forum can do for you and contacting your designer probably is the best step forward.

                        Just so you understand, it would take me 2 minutes to set it up on your store, IF i had your store in front of me, it would take me 30 minutes to explain it all in plain English for you to understand in the forum. I could have done it in the time it has taken to write this reply, but it is important that you don't feel persecuted in anyway, that is not the intention, but you do have to be prepared to get stuck in and read yourself.

                        You have been told 3 or 4 times the variable does not exist as far as we know, so take the steps i mentioned and create your own. Look at existing ones to learn how also. Your English is better than many English people i know, so i don't see it as a reasonable excuse to not read the help, people have jumped to try and help you, probably a little more than most because of the possible language barriers, please don't use this as an excuse to not try yourself though.

                        Have a go, when you get stuck, give us a picture of where you are up to and there will be a number of us willing to jump in and help you finish it off.

                        Comment


                          #13
                          Originally posted by leehack
                          Your English is very good and your ability to understand what somebody means is also very good ... Your English is better than many English people i know.
                          Thank you Lee, very kind !
                          I do understand perfectly what you mean, and I think there is a real misunderstanding on this thread. I repete that I don't ask for someone else to do the job for me. My site has been designed by Bill Campbell, and when I need an information he is always present to help me.
                          For this variable, I really thought that if a field exists in the access database, it must have a corresponding variable into Actinic (it seems logic to me) : and I just ask for a help to find it, as very often name in access are different from the name in Actinic.
                          Now it seems that 80% of the questions on this forum have an answer in the guide or in the help ! So what you tell me on this thread can be told to a lot of people !
                          Anyway, I asked Bill to help me, and he did it. But I can assure you that it was quite impossible for me to set the informations when I create the variable, not because of my english level, only because of my "Actinic" level !
                          Sorry again.
                          Thanks
                          Didier
                          www.supreme.fr
                          _____________________
                          Saint Malo. France

                          Comment

                          Working...
                          X