How to Add additional custom field class to Directory component

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Justified1103
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue May 28, 2013 2:20 pm

How to Add additional custom field class to Directory component

Post by Justified1103 » Fri May 15, 2020 9:23 am

Good day,

I got a directory component installed on the latest Joomla.

I want to add an additional custom field to the packages of the component, just to display the value in the front end.

The packages page will show Price, features etc

where it will list of each package:
I would like to add setup cost at the end of each package

at the end of each package i want to add the display for setup cost.

so i duplicated the price class, changed it to setupcost, i know you need to define the new property, because im getting an error backend in the package item edit an frontend
Notice: Undefined property: stdClass::$setupcost

How do I start doing this?

I tried to look into components helper, modals/forms + fields folders/files but cannot find where to define a new property class?

Please help in direction

 
User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12364
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: How to Add additional custom field class to Directory component

Post by toivo » Fri May 15, 2020 11:39 am

Which particular extension is that?

Does that extension support custom fields?
Toivo Talikka, Global Moderator

Justified1103
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue May 28, 2013 2:20 pm

Re: How to Add additional custom field class to Directory component

Post by Justified1103 » Fri May 15, 2020 12:46 pm

J-Business Directory is the directory component.

Its not really a custom field per say it would be an input field of the items displayed as packages.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 12364
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: How to Add additional custom field class to Directory component

Post by toivo » Fri May 15, 2020 1:25 pm

According to the information in JED, the extension has "possibility to add custom fields".

Have you followed the instructions in the documentation of custom attributes?

If that information was not useful, you should contact the developer of the extension directly through their support forum.
Toivo Talikka, Global Moderator

 

Post Reply

Return to “Extensions for Joomla! 3.x”