@searchweb
Ok, found the code that is hiding price:
<script type="text/javascript">
var catPriceEnabled = new Array();
catPriceEnabled[75] = 1;catPriceEnabled[76] = 1;catPriceEnabled[82] = 1;catPriceEnabled[85] = 1;catPriceEnabled[91] = 1;catPriceEnabled[93] = 1;catPriceEnabled[94] = 1;
$("#catId").change(function(){
var cat_id = $(this).val();
var url = 'http://demo.osclass.org/jobboard/index.php';
var result = '';
if(cat_id != '') {
if(catPriceEnabled[cat_id] == 1) {
$("#price").closest("div").show();
} else {
$("#price").closest("div").hide();
$('#price').val('') ;
}
$.ajax({
type: "POST",
url: url,
data: 'page=ajax&action=runhook&hook=item_form&catId=' cat_id,
dataType: 'html',
success: function(data){
$("#plugin-hook").html(data);
}
});
}
});
$(document).ready(function(){
var cat_id = $("#catId").val();
var url = 'http://demo.osclass.org/jobboard/index.php';
var result = '';
if(cat_id != '') {
if(catPriceEnabled[cat_id] == 1) {
$("#price").closest("div").show();
} else {
$("#price").closest("div").hide();
$('#price').val('') ;
}
$.ajax({
type: "POST",
url: url,
data: 'page=ajax&action=runhook&hook=item_form&catId=' cat_id,
dataType: 'html',
success: function(data){
$("#plugin-hook").html(data);
}
});
}
});
</script>
But I am not sure which part of code generate field which category is enabled (catPriceEnabled[75] = 1;catPriceEnabled[76] = 1;catPriceEnabled[82] = 1;catPriceEnabled[85] = 1;catPriceEnabled[91] = 1;catPriceEnabled[93] = 1;catPriceEnabled[94] = 1; ), probably this one:
<?php
$edit = false;
if(Params::getParam('action') == 'item_edit'){
$action = 'item_edit_post';
$edit = true;
}
if($edit) {
ItemForm::plugin_edit_item();
} else {
ItemForm::plugin_post_item();
}
?>