Add quantity only if is product page

This commit is contained in:
carmenmaymo 2023-09-03 11:04:17 +02:00
parent 7394c809b7
commit fadd47d9a8
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -21,7 +21,10 @@ console.log(buttonConfig)
);
//PRODUCT DETAIL PAGE
this.productQuantity = document.querySelector('input.qty').value
if(this.context === 'product') {
this.productQuantity = document.querySelector('input.qty').value
}
this.updatedContactInfo = []
this.selectedShippingMethod = []
this.nonce = document.getElementById('woocommerce-process-checkout-nonce').value