mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Add quantity only if is product page
This commit is contained in:
parent
7394c809b7
commit
fadd47d9a8
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue