J-BusinessDirectory - How to change order of package features?

Support Forum

 
 

 

Is it possible to change order of package features? For example, I would like to put first all available features, then list of unavailable features for all packages.

 

I tried to reorder them by dragging and dropping and holding for up/down arrows, but after save, features are restored, so 'Featured Business listing' is always first, then folowed with 'Html description', etc...

 

1 replies

Hi,

 

Currently the only way to modify the order of the package features is to modify the order in an array.
You can edit {joomla}/administrator/components/com_jbusinessdirectory/helpers/helper.php

public static function getPackageFeatures(){
        $feaures = array(
                        FEATURED_COMPANIES=>JText::_("LNG_FEATURED_COMPANY"),
                        HTML_DESCRIPTION=>JText::_("LNG_HTML_DESCRIPTION"),
                        SHOW_COMPANY_LOGO=>JText::_("LNG_SHOW_COMPANY_LOGO"),
                        WEBSITE_ADDRESS=>JText::_("LNG_WEBSITE_ADDRESS"),
                        IMAGE_UPLOAD=>JText::_("LNG_IMAGE_UPLOAD"),
                        VIDEOS=>JText::_("LNG_VIDEOS"),
                        GOOGLE_MAP=>JText::_("LNG_GOOGLE_MAP"),
                        CONTACT_FORM=>JText::_("LNG_CONTACT_FORM"),
                        COMPANY_OFFERS=>JText::_("LNG_COMPANY_OFFERS"),
                        COMPANY_EVENTS=>JText::_("LNG_COMPANY_EVENTS"),
                        SOCIAL_NETWORKS=>JText::_("LNG_SOCIAL_NETWORK"),
                        PHONE=>JText::_("LNG_PHONE"),
                        CUSTOM_TAB=>JText::_("LNG_CUSTOM_TAB"),
                        ATTACHMENTS=>JText::_("LNG_ATTACHMENTS"),
                        OPENING_HOURS=>JText::_("LNG_OPENING_HOURS"));
        return $feaures;
    }

 
 
 

2 Item(s)

Show per page