<input type="radio" value="540" name="rol" id="njk">
<input type="radio" value="530" name="rol" id="lmt">
$(document).ready(function(){
var totalSum = {$view.price};
$('input[name=rol]').click(function(event) {
totalSum += parseInt($(this).val());
$('#totalsum').html(totalSum);
});
$('#totalsum').html(totalSum);
});