CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Billing Address Same as above using main.extra.tpl issue
Pages: [1]

Author Topic: Billing Address Same as above using main.extra.tpl issue  (Read 914 times)

ryeradio

  • I post frequently
  • ***
  • Posts: 185
  • Karma: 1
  • CiviCRM version: 4.2.1
  • CMS version: Drupal
  • MySQL version: MySQL5
  • PHP version: PHP5
Billing Address Same as above using main.extra.tpl issue
July 23, 2012, 12:32:11 pm
I have created a custom Main.extra.tpl file to add a "Billing Address Same as above" checkbox and code from this wiki http://wiki.civicrm.org/confluence/display/CRMDOC41/Add+%27Same+as+billing+address%27+button+for+convenience.

Everything works great except for the state field does not copy. I verified that I am using the correct location type. Does anyone have any ideas why the state would not work using this code?

Thank you.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Billing Address Same as above using main.extra.tpl issue
July 23, 2012, 01:59:06 pm

Might want to ensure that the country is also present and first copy the country over before copying the state/province over.

You'll need to do some debugging and tweaking of the code to get it to work

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Billing Address Same as above using main.extra.tpl issue
July 23, 2012, 03:37:12 pm
That feature should be in core in 4.2. We are running a patched version of 4.1.3 with it (& some other 4.2 backports) (git@github.com:fuzionnz/civicrm.git)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Billing Address Same as above using main.extra.tpl issue

This forum was archived on 2017-11-26.