Hi Ken,
I can see this error when I checked frontpage on Cornerstone:
jquery.js?ver=1.12.4:4 POST https://www.zerofinance.hk/zh/cornerstone-endpoint 500 (Internal Server Error)
On the frontend, loading the page, shows this error too:
(index):3344 Uncaught TypeError: Cannot read property 'replace' of undefined
at calculate ((index):3344)
at (index):3340
That specific error is pointing to this part of JS code:
calculate();
jQuery('#am1').val(numberWithCommas('5000'));
function calculate(){
var p=jQuery('#am1').val().replace(/,/g, '');
var mon=jQuery('#mon1').val().replace(/,/g, '');
var r=jQuery('#interest').val();
var r=r/1200;
var pr=p*r;
var x=(1+r);
x=Math.pow(x, mon);
var emi=pr*(x/(x-1));
emi=Math.round(emi);
jQuery('#pay').val("$ "+numberWithCommas(emi));
//console.log(numberWithCommas(emi));
}
Please try to remove that code and try again. Let’s fixed JS error first.