5

"My billing address is same as above" field by default is checked. I would like to keep it "UNTicked" by default. How can I do it?

I have tried to modify the template file in civicrm/templates/CRM/Core/BillingBlock.tpl and change <input type="checkbox" id="billingcheckbox" value="0"> value to 1, 2. But that doesn't seem to work.

Can anyone give me a hint how to do it from the template file please?

2
  • Never mind. Figured it out
    – Tapash
    Dec 23, 2015 at 20:26
  • How did you solve it? You could submit your own answer and in a couple days mark it as the answer. Dec 23, 2015 at 20:36

1 Answer 1

6

Further down (halfway) to the Billingblock.tpl change the following value from true to false

// detect if billing checkbox should default to checked
          var checked = false;
2
  • 1
    Did you modify the core file billingblock.tpl or create a custom one? If you did not create a custom one (or even better use a .extra.tpl) then your changes will be lost when you upgrade next. Dec 23, 2015 at 22:16
  • I have placed a modified billingblock.tpl in custom template directory.
    – Tapash
    Dec 23, 2015 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.