Announcement

Collapse
No announcement yet.

variable for "can be purchased online" is false

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

    variable for "can be purchased online" is false

    Hi all,

    I'm trying to find a variable to the effect that if an item cannot be purchased online e.g. box is unticked.

    I want to put some text like "This item can only be purchased over the phone"

    etc.

    Thanks

    Matt
    http://www.itwiz.co.uk

    http://www.AntiV.net - The Discount Antivirus Store

    #2
    Check the blockifs around the add to cart button, should be something in there to get you started. Or should i say that's where i would look first as it's that code that makes the add to cart button disappear on non-orderable products.

    Comment


      #3
      IsAddToCartButtonShown


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        Originally posted by jont View Post
        IsAddToCartButtonShown
        Depends whether you have clicked can be ordered or not.

        Comment


          #5
          ... surprising well named variable there from Actinic


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            ok, thanks all
            I have
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29false">

            but i get a syntax error and it appears regardless of whether the box is ticked or not. Any clues please?!
            http://www.itwiz.co.uk

            http://www.AntiV.net - The Discount Antivirus Store

            Comment


              #7
              The blockif doesn't look closed.

              Comment


                #8
                I think what you're after is a variable called CanBeOrderedOnline (which is different to IsAddToCartButtonShown)

                Code:
                <actinic:block if="%3cactinic%3avariable%20name%3d%22CanBeOrderedOnline%22%20%2f%3e%20%3d%3d%20FALSE" >
                SORRY - THIS ITEM CAN ONLY BE ORDER BY TELEPHONE
                </actinic:block>
                That will show the message if the Can Be Ordered Online box is UNticked.

                You'll then need to wrap a similar block if round the add to cart button, but set to TRUE.

                Comment


                  #9
                  works like a charm. Thankyou very much
                  http://www.itwiz.co.uk

                  http://www.AntiV.net - The Discount Antivirus Store

                  Comment

                  Working...
                  X