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
  • Page :
  • 1


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