If $type
can only be "type1" or "type2", you should write it this way:
if( $type == "type1" ) $price = "249 kr";
else $price = "349 kr";
If the price now appears as "349 kr", you might have a wrong value in $type
.
You should also consider
if( $type == "type1" ) $price = "249 kr"; else
if( $type == "type1" ) $price = "349 kr";
else $price = "error";