1. edthenet
  2. RO Payments
  3. Monday, 30 October 2023
  4.  Subscribe via email
I have several RS-Forms with the payment option. But when i add different paymenttypes they get sorted automatically. I think the sortorder is based on the name, but i'm not sure. Is there a way to change the sortorder and is there a way to set one as a default?
Accepted Answer Pending Moderation
Hello,

But when i add different paymenttypes they get sorted automatically.
Are you using the payment package option?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 1
Accepted Answer Pending Moderation
Yes off course.
On this form https://soloamigos.nl/index.php?option=com_rsform&view=rsform&formId=78
you find 2 payment options on the bottom (bankcontact and ideal)
I want ideal the be the first and if possible set as default

In the form i have set the iDeal as the first, but i can't find a way to set the sortorder
On an older form this worked by setting the sortorder by determining the added fields in the backend
https://soloamigos.nl/index.php?option=com_rsform&view=rsform&formId=33

I can't see what i have differently
If it helps i can provide you with an export of the form(s)
  1. more than a month ago
  2. RO Payments
  3. # 2
Accepted Answer Pending Moderation
Hello,

The payment options are pulled by the RSForm field called Choose Payment and there is no sorting involved as it just requests the fields from the database without an ordering clause. This is the query RSForm executes:

SELECT `ComponentId`
FROM `u1b8s_rsform_components`
WHERE `ComponentTypeId` IN (5579) AND `FormId` = '41' AND `Published` = '1'
what you get here is ordered by whatever the database wants which depends on how the data is internally stored by the database.

To get the behavior you want, which I think would be a good improvement, you will need to talk to RSJoomla as they need to make changes to RSForms to get the functionality you ask. This is out-of-scope for RO Payments as it is not our code that needs to be modified.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 3
Accepted Answer Pending Moderation
RolandD,

I think i'm being misunderstood. It's not the sortorder of the payment plugins but the order of the payment choises.
I will add some screenshot to make it more clear

In the screenshot from the form editor i have set 2 payment choices (iDeal & Bancontact) in a specific order
On the final form the order is different
If I change the order in the form editor nothing changes on the form
Attachments (2)
  1. more than a month ago
  2. RO Payments
  3. # 4
Accepted Answer Pending Moderation
By the way, I also asked RSForms support and this was there answer:

I understand what you are asking. As previously explained, the order of payment plugins can be controlled from the plugins area by changing their actual order. If there is a single plugin that allows you to add multiple payment fields (choices), such as Bancontact and iDEAL, the order of these payment fields is controlled by the plugin's code, not RSForm!Pro. You should contact the plugin's developer directly regarding this matter.
  1. more than a month ago
  2. RO Payments
  3. # 5
Accepted Answer Pending Moderation
Hello Ed,

I do not think there is a misunderstanding, I understood you meant the payment choices. As for the answer from RSForm, that is their standard answer when you ask them about payments. However, you are using the Payment Package plugin which is an RSForms plugin and not an RO Payments plugin. That is why I posted the code from the RSForms plugin to show you what it does.

A simple test can be done with the Offline payment option from RSForms, just add this twice with a different name, you cannot control that order either.

There really is nothing for me to do here as it is RSForms pulling the names from the form you created. If it is any help I believe it comes from the file admin/helpers/rsform.php and then line 1512 for the componentExists() function. This is more an educated guess than tested.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!