Questions about Payment Form extension

How to add more than one Country fields?

  • Ingmar Erdös
  • Topic Author
  • Offline
  • New Member
  • New Member
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

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

  • Ingmar Erdös
  • Topic Author
  • Offline
  • New Member
  • New Member
More
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

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

More
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

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

Moderators: Tuan Pham Ngoc