By Andy on Sunday, 12 July 2020
Posted in Pre Sales
Replies 5
Likes 0
Views 1K
Votes 0
I'm working with the PayPlans demo and can see how I can use ORDER > CUSTOM DETAILS to add some additional fields to the order form of a plan.

Is there any way a can add intro text into that XML structure though?

So for example the format given for the XML is..

<config>
<fields name="subscriptionparams">
<fieldset name="subscriptionparams">
<field name= "statement" type = "textarea" rows = "4" cols = "25" label = "Eligibility Statement"/>
</fieldset>
</fields>
</config>



For PayPlans to work for my project I want to be able to add, above that custom text area a basic line of text... for example words like "Please provide an eligibility statement that includes X, Y and Z"

I've added a screenshot below to explain a bit better what I need...

Is there a way to do this?
You can take a look at the file /components/com_payplans/themes/wireframe/forms/renderers/customdetails.php
·
Sunday, 12 July 2020 17:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andy,

Unfortunately it is not possible to add a pre / post text before the field but you can create a template override for the theme file that generates the custom details and read off the attribute that you add in the xml file. Should not be too difficult.
·
Sunday, 12 July 2020 16:50
·
0 Likes
·
0 Votes
·
0 Comments
·
OK thanks Mark... with that optimism, I'm coming back to PayPlans today!

What file would I be looking to override to work on that order page where the custom details show?
·
Sunday, 12 July 2020 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
OK will do. Thanks. Just bought my new PayPlans license. I'll likely await full release of 4.2 before I start configuring
·
Sunday, 12 July 2020 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Andy, welcome back on board
·
Sunday, 12 July 2020 20:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post