Fixed js issue buy now button not exist
This commit is contained in:
parent
c6a44b5414
commit
ca4d9ef9ba
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue