diff --git a/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php b/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php index 1f8a305a4..536f6a006 100755 --- a/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/view/configurable-options.blade.php @@ -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();