Search in support tickets

#281 – used credits appear in categories

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 16 April 2018 21:47 CEST
Chattelsit
Hello.
I am building an Adsmanager site, where customers buy credits to advertise.
I have made several 'sample' ads
When logged in as a user and navigating to the 'Post an Ad' page, in the list of categories, those categories where i have made a sample Ad show '1 credit' at the end of the line. e.g. Home>Furniture>Sofa-1 Credit
How can I make this (1 Credit) not appear in the categories list please?
Custom Fields
Joomla Version
3.8.6
PHP Version
7.1.9
Product
AdsManager
Product Version
Latest
Wednesday, 18 April 2018 18:30 CEST
loic
Hello,

You need to custom the code to do that.

Open the file templates/adsclarity/html/com_adsmanager/edit/default.php and in the line 120 to 128 :
                        case 'normal':
                                JHTMLAdsmanagerCategory::displayNormalCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true,"class"=>"form-control"),array("required"=>""));break;
                        case 'color':
                                JHTMLAdsmanagerCategory::displayColorCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true,"class"=>"form-control"),array("required"=>""));break;
                        case 'combobox':
                                JHTMLAdsmanagerCategory::displayComboboxCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true,"class"=>"form-control"),array("required"=>"", "class"=>"required"));break;
                            break;
                        case 'cascade':
                                JHTMLAdsmanagerCategory::displaySplitCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true,"class"=>"form-control"),array("required"=>""));break;


Replace all the "display_price"=>true by "display_price"=>false

Best regards.
 
Wednesday, 18 April 2018 21:28 CEST
Chattelsit
Hello Juloa,
I have done as you instructed in the code, but it has had no effect! :-(
I will try to attach a screenshot of the problem, showing me logged-in as a user on the front end in 'Post an Ad' page/select category.

Do I now undo the code changes I just made?

Kind regards

Nick
Attachment
Thursday, 19 April 2018 13:43 CEST
loic
Hello,

If the code you chenged do nothing, then the issue might come from another file.

Let the code as it is for now, I will check another file and come back to you.

Best regards.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.