oc-content/themes/veronika/functions.php
// CHECK IF PRICE ENABLED ON CATEGORY
CHECK IF PRICE ENABLED ON CATEGORY
CHECK IF PRICE ENABLED ON CATEGORY
function veronika_check_category_price($id) {
  if(!osc_price_enabled_at_items()) {
    return false;
  } else if(!isset($id) || $id == '' || $id <= 0) {
    return true;
  } else {
    $category = Category::newInstance()->findByPrimaryKey($id);
    return ($category['b_price_enabled'] == 1 ? true : false);
  }
}
function veronika_check_category_price ( $ id ) { if ( ! osc_price_enabled_at_items ( ) ) { return false ; } else if ( ! isset ( $ id ) || $ id == '' || $ id <= 0 ) { return true ; } else { $ category = Category :: newInstance ( ) -> findByPrimaryKey ( $ id ) ; return ( $ category [ 'b_price_enabled' ] == 1 ? true : false ) ; } }
CHECK IF PRICE ENABLED ON CATEGORY
CHECK IF PRICE ENABLED ON CATEGORY