Announcement

Collapse
No announcement yet.

Custom Variable yes or no

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

    Custom Variable yes or no

    Hi, I would like to create a custom variable for my products.
    The variable would be 'Gelatine free' I could in theory have a yes or no selector on the product , if i set the variable to yes on a product I would like a 'yes' to appear next to the product in-store.

    Not to sure how to set this up, any ideas please
    Thanks
    Wes
    Treasure Island Sweets

    #2
    You could create a variable, assign it a value of no at the site level, and make it available at product level (maybe configure it to show on the properties tab). On products that are gelatin free, assign a yes value.

    Add the HTML code required to show the text 'Gelatin Free = Yes' to your product layout and then wrap that code in a condition that tests your variable value.
    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


      #3
      Bill has the idea. However you can make Variables of type True/False, so you cannot select anything but that.

      Create such a Variable called GelatineFree. Do this via Design / Library / Variables / Product. Right-click Product and choose New variable.

      Set

      Name: GelatineFree
      Prompt: GelatineFree
      Group: Product
      Place of Setting: Site, Section, Product
      Allow <Use Parent>..: Checked
      Tab Name: Properties
      Type: True/False
      Initial Value: Use Parent
      Top level Value: False


      Then add a bit of code to your product layout where you want this message displayed:-
      Code:
      	<actinic:block if="%3cactinic%3avariable%20name%3d%22GelatineFree%22%20%2f%3e%20%3d%3d%20true" >
      	Gelatine free.
      	</actinic:block>
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        hi, thanks will give this a go and let you know!
        wes
        Treasure Island Sweets

        Comment

        Working...
        X