Announcement

Collapse
No announcement yet.

Option tickbox

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

    Option tickbox

    Hi,

    I would like to have a second tick box (that should be required) just like terms and conditions and I do not know how to do that. Could somebody please help me?

    #2
    You might like to change User Defined field to a checkbox.

    If you open 'Act_order01.html' and look for:

    <INPUT TYPE="TEXT" NAME="INVOICEUSERDEFINED" SIZE="20" MAXLENGTH="255" VALUE="NETQUOTEVAR:INVOICEUSERDEFINED">

    Then you could change it to:

    <INPUT TYPE="checkbox" NAME="INVOICEUSERDEFINED" CHECKED="NETQUOTEVAR:INVOICEUSERDEFINED">

    This would then accept a value of true or false for INVOICEUSERDEFINED.
    http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
    http://www.dtbrownseeds.co.uk - More seeds and plants....
    http://www.mr-fothergills.co.uk - Well it used to be Actinic...

    Comment


      #3
      Thank you

      thanks for your quick reply, it works.
      The only thing is that the tickbox is already checked now, can we change that into 'not' checked??

      Comment


        #4
        Take away the CHECKED="NETQUOTEVAR:INVOICEUSERDEFINED" bit.
        http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
        http://www.dtbrownseeds.co.uk - More seeds and plants....
        http://www.mr-fothergills.co.uk - Well it used to be Actinic...

        Comment


          #5
          but what does that bit means then?

          Comment


            #6
            The 'checked' attribute of a checkbox defines whether it is set to ticked or not. Since a checkbox has 2 possible states, checked="true" or checked="false", this sets that state (although in the actual html page, <input...checked="false"..> would probably be ticked, as the 'checked' part is all that is required).

            In the resulting html on the live page, a pre-ticked checkbox will come out as:

            <INPUT TYPE="CHECKBOX" NAME="INVOICEPRIVACY" CHECKED>
            http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
            http://www.dtbrownseeds.co.uk - More seeds and plants....
            http://www.mr-fothergills.co.uk - Well it used to be Actinic...

            Comment


              #7
              thanks again

              That works perfectly , thanks for that

              Is it possible to show this tickbox under the terms and conditions tickbox??

              Comment


                #8
                All those 'rows' on the checkout page are grouped by a <tr><td....</td></tr>
                grouping.

                You would need to copy a row from the T&Cs and place it directly underneath the last </tr> within that row that controls T&Cs.

                Make a backup first before changing that html.
                http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
                http://www.dtbrownseeds.co.uk - More seeds and plants....
                http://www.mr-fothergills.co.uk - Well it used to be Actinic...

                Comment


                  #9
                  That works, only I just tested this script on the login accounts but if you do not tick the box, you are still able to make an order.
                  Is this a different .html file?

                  Comment


                    #10
                    problem:

                    1 (normal order) They second tickbox is required and that works well, if you do not tick then you can not get pass that
                    2 (login order) The same tickbox (so required), this doesn't work, you can pass if you don't tick it.

                    Can somebody tell me what to do?

                    Many thanks

                    Comment


                      #11
                      That might be because the INVOICEPRIVACY and other fields aren't set up by the logged in page.

                      Do you have a url I can see?
                      http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
                      http://www.dtbrownseeds.co.uk - More seeds and plants....
                      http://www.mr-fothergills.co.uk - Well it used to be Actinic...

                      Comment


                        #12
                        sorry can not show you a link, can you try to give me some solutions?

                        Comment


                          #13
                          If you do not want people to look at your site on a public forum, then the other possibility is you register an email support query directly with us at http://www.actinic.co.uk/support/register.html.

                          I'm afraid it is very tricky to diagnose site problems without a URL to look at.

                          Comment

                          Working...
                          X