Is there a way to get the customer internal id from current logged in user ? I don't have suitescript, so I'm not sure this is even possible.
PS: This is in checkout page
<script type="text/javascript">
var internalId = ? // get current customer id
$.getJSON( 'get_customer.php', { id: internalId } )
.done(function( data ) {
console.log(data);
});
</script>