Sorry, I'm not an expert in this area, I just need to implement it somehow. All I could find in the template is a script, which I understand needs to be changed, but I don't know how... Help implement this option. Thank you!!!
<script>
$(document).ready(function(){
var cat_id = <?php echo osc_item_category_id(); ?>;
var catPriceEnabled = new Array();
<?php
$categories = Category::newInstance()->listAll( false );
foreach( $categories as $c ) {
if( $c['b_price_enabled'] != 1 ) {
echo 'catPriceEnabled[ '.$c['pk_i_id'].' ] = '.$c[ 'b_price_enabled' ].';';
}
}
?>
if(catPriceEnabled[cat_id] == 0) {
$(".item-details .price.elem").hide(0);
}
});
</script>