I solved it myself, you need to call save customisations submit from core.js line 1836 in ps1.7.1.0
$body.on('click', '[data-button-action="add-to-cart"]', function (event) {
add
if( $('#customizationForm').length > 0 )
{
var customAction = $('#customizationForm').attr('action');
$('body select[id^="group_"]').each(function() {
customAction = customAction.replace(new RegExp(this.id + '=\\d+'), this.id +'=' + this.value);
});
// ajax to product page with custom action
var customization_entries = $('#customizationForm').serialize();
console.log(customization_entries);
$.ajax({
async:false,
type: 'POST',
data: customization_entries+ '&ajax=1',
dataType: 'json',
url: customAction,
success: function(data){
if(typeof(data.errors) !== 'undefined')
{
alert('Error while saving customization data');
return;
}
alert(data);
},
error : function(resultat, statut, erreur){
//"errors...";
},
complete: function(resultat, statut){
//important. update customization_id
$('#product_customization_id').val( resultat.responseText );
}
})
}