$.ajax({
url: Joomla.getOptions('system.paths').base+'/index.php?option=mypage&view=cartcheckout&task=cartcheckout_autoSave&tmpl=component&stepId='+stepId,
type: 'POST',
//async:false,
data:values,
dataType: 'json',
success: function(response)
{
// do something
},
error: function(response)
{
// show ckout error msg
console.log(' ERROR!!' );
return e.preventDefault();
}
});
My Joomla version is 3.9.3 Stable. I am getting error message on console
ERROR!!
Is my url correct?
Joomla.getOptions('system.paths').base+'/index.php?option=mypage&view=cartcheckout&task=cartcheckout_autoSave&tmpl=component&stepId='+stepId
How can I solve this problem?