Q:

update data on page load JS

This script allows you to calculate in real time the prices based on the number of selected product.
https://jsfiddle.net/sucwcokv/4/
But there is a problem .. if i se minimum 5 pieces for one product, the script does not re-calculate the price.
<input type="number" min="5" value="5" title="Qta" class="input-text qty text" size="4" />

Example with problem:
https://jsfiddle.net/pzh57aaL/
there is a way to calculate it at the beginning?

A:

Simply add
updateTotal();

at the end of your javascript and it will calculate on page load too.
Updated fiddle

