Announcement

Collapse
No announcement yet.

User Definable 3 - as checkbox?

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

    User Definable 3 - as checkbox?

    I thought I'd seen the answer to this somewhere but can't remember where:

    I want to use the General Information User Definable Info field - but I want it as a checkbox not a text field - is it possible to change this?

    All I'm trying to acheive is a way to add a checkbox for the customer to opt in for mailings - so if not above is there another sinple way?

    Thanks

    Duncan

    EDIT: Knew I'd seen it - AUG - Turning a Text Field into a Check Box

    #2
    All I'm trying to acheive is a way to add a checkbox for the customer to opt in for mailings - so if not above is there another sinple way?
    otherwise use another option ie change the text on the privacy option

    Comment


      #3
      Duncan,

      This is a neat trick that will turn any text field in the checkout into a check box. This will extend the ability of your Actinic store to take different types of information, and the responses will still look meaningful in the printed reports.
      This example is based on the 'User Definable' field in the 'Invoice Address' part of the checkout.

      1. Go to 'Design | Text | Web Site (cont) | Invoice Address' and select the 'Show' box next to the 'Invoice User Defined' field.
      2. Click 'OK'.
      3. Next change 'Checkout Page 1' in the 'Select Page Type' field in the 'Design' tab.
      4. Click on the 'User Definable' text (or whatever you have changed it to).
      5. Locate the following line:
      <input type="text" name="INVOICEUSERDEFINED" size="20" maxlength="255" value="INVOICEUSERDEFINED" />
      6. This is the code for the user defined field, and by default it is a text field. Change the above code to read:
      <input type="checkbox" name="INVOICEUSERDEFINED" value="CHECKED" <Actinic:Variable Name="InvoiceUserDefined"/>>
      This will turn the text field into a check box. This will stay checked if a customer leaves the invoice address page and then re-enters it for any reason. The value that will appear in the order processing reports to indicate whether the customer ticked the box is the word 'CHECKED'.

      This is from the Advanced Users Guide
      Bruce King
      SellerDeck

      Comment


        #4
        Thanks Bruce.
        I have this working well just as you described - very useful.

        Comment

        Working...
        X