function cw_core_parse_discount($str) { $arr = explode('%', $str); return array(cw_detect_price($arr[0]), isset($arr[1])); }
function cw_aom_validate_price($price) { return cw_detect_price($price); }