- Posts: 6
- Thank you received: 0
Questions about Payment Form extension
How to add more than one Country fields?
- Ingmar Erdös
- Topic Author
- Offline
- New Member
-
Less
More
12 years 9 months ago #19577
by Ingmar Erdös
How to add more than one Country fields? was created by Ingmar Erdös
Hi Forumianers!
Hi Administrators!
I just purchased Payment Form and it is working as charm! Thank your for your work.
At this point I have just one question:
1.) How can I add more than one pre filled country pull downs? The predefined country field has no option to choose e.g. "Use country list as values" or so...
Thnx in advance for your helpfull answers.
AceLine
Hi Administrators!
I just purchased Payment Form and it is working as charm! Thank your for your work.
At this point I have just one question:
1.) How can I add more than one pre filled country pull downs? The predefined country field has no option to choose e.g. "Use country list as values" or so...
Thnx in advance for your helpfull answers.
AceLine
Please Log in or Create an account to join the conversation.
- Ingmar Erdös
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
12 years 9 months ago #19580
by Ingmar Erdös
Replied by Ingmar Erdös on topic Re: How to add more than one Country fields?
Hi there,
I changed some code and now every occurrence of the word "country" in the name of a field gives back a pulldown menu with all countries:
File: com_pmform/helper/fields.php
Line: 771
/**
* Render output of the dropdown
*/
function _renderDropdownOutput($row) {
if ($row->name == 'country') { <-- change this line
if (strpos($row->name, 'country') !== false) { <-- to this one
$this->_renderCountry($row);
} else {
Maybe you can change this for future customers or at last maybe I could help anybody who has got the same problem.
Best regards,
AceLine
I changed some code and now every occurrence of the word "country" in the name of a field gives back a pulldown menu with all countries:
File: com_pmform/helper/fields.php
Line: 771
/**
* Render output of the dropdown
*/
function _renderDropdownOutput($row) {
if ($row->name == 'country') { <-- change this line
if (strpos($row->name, 'country') !== false) { <-- to this one
$this->_renderCountry($row);
} else {
Maybe you can change this for future customers or at last maybe I could help anybody who has got the same problem.
Best regards,
AceLine
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 9 months ago #19602
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to add more than one Country fields?
Yes, that's the correct solution. I haven't heard anyone asks for second country dropdown before, so I haven't thought about it yet. Will consider adding support for this feature for future releases.
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.