Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Populating Invoice Address for State and Country

12 years 1 month ago #215378 by dupree1015
Hello,

I have figured out from previous posts how to create a field and populate it inside the Invoice Address fields, however, I am running into a challenge with State. First, do I need to create a drop down for "Country" in order for the "State" to appear?

Also, I noticed that in the invoice dropdown for state, there is a header that says U.S. - States and then the states listed below, the same for Canada - Provence, etc. I read in a previous post that in order for the Country and State to work, the dropdown fields need to match exactly, but I'm not sure how to create a header and the states below it for the state dropdown.

Last, when I created the state dropdown field, I first tried with the state abbreviations and that didn't populate the state in the invoice area so I then tried the state names spelled out, and the state didn't show up again.

I appreciate any assistance you can provide.

Thanks,

Cat'

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #215465 by krileon
Country needs to be populated for State to display. For CB to populate these two your CB fields must be designed exactly like CBSubs and have the same values as the CBSubs dropdown options do. You can find the values that CBSubs uses by inspecting the dropdown with Chrome or Firebug for Firefox; you can also find the XML used for the invoice address display below.

components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/xml/edit.front.invoice.xml


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum