Fixed js issue buy now button not exist

This commit is contained in:
jitendra 2019-06-07 15:42:58 +05:30
parent c6a44b5414
commit ca4d9ef9ba
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@
var buyNowLink = $('.btn.buynow').attr('data-href');
var quantity = document.getElementById('quantity').value;
if (this.selectedProductId != '') {
if (this.selectedProductId != '' && buyNowLink) {
var splitted = buyNowLink.split("/");
splitted.pop();