Announcement

Collapse
No announcement yet.

tick boxes

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

    tick boxes

    Hi

    I want to place a couple of tick boxes in the checkout section, (near additional info), for a newsletter submission.

    how can I do that?

    cheers
    still thinking of one...

    #2
    yeah yeah.. I know.. it was in the advanced help all along, this one actually:

    Code:
    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.
    Open 'Act_Order01.html' and locate the following code in the template:
    
    <input type="TEXT" name="INVOICEUSERDEFINED" size="20" maxlength="255" value="NETQUOTEVAR:INVOICEUSERDEFINED">
    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" NETQUOTEVAR: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'.
    So anyway, the minute I became aware of the [aboves] existence, I hastily implemented the procedure to the letter - and it worked!!!

    except, one tiny little matter: the default for the tick box, isn't 'ticked'
    at first I thought it was me, so I tried again, only this time I copied the code straight in the body of Act_Order01, but still the tick box isn't 'ticked'

    naturally, I'm still putting my money on it being something I have/haven't done..

    What am I doing wrong?
    still thinking of one...

    Comment


      #3
      You did not do anything wrong, the Instructions clearly say " The value that will appear in the order processing reports to indicate whether the customer ticked the box is the word 'CHECKED'."

      The user has to check the box, it soes not appear checked by default, but once selected will remain selected till the cutomer checks out.

      To change the code to appear as checked by default, please use this bit..
      <input type="CHECKBOX" name="INVOICEUSERDEFINED" checked="checked" value="CHECKED" NETQUOTEVAR:INVOICEUSERDEFINED>

      Save and update the site,

      Kind regards,
      Bruce King
      SellerDeck

      Comment


        #4
        Excellent!!

        thank you very much for your help Bruce; may the rest of your week be filled with things that are nice..
        still thinking of one...

        Comment

        Working...
        X