mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
hide dcc fields when variation can not be placed in cart // PCP-23
This commit is contained in:
parent
713d5bdda1
commit
c663fca067
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,7 @@ class SingleProductBootstap {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
console.log(this);
|
||||||
const actionHandler = new SingleProductActionHandler(
|
const actionHandler = new SingleProductActionHandler(
|
||||||
this.gateway,
|
this.gateway,
|
||||||
new UpdateCart(
|
new UpdateCart(
|
||||||
|
@ -33,9 +34,11 @@ class SingleProductBootstap {
|
||||||
),
|
),
|
||||||
() => {
|
() => {
|
||||||
this.renderer.showButtons(this.gateway.button.wrapper);
|
this.renderer.showButtons(this.gateway.button.wrapper);
|
||||||
|
this.renderer.showButtons(this.gateway.hosted_fields.wrapper);
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
this.renderer.hideButtons(this.gateway.button.wrapper);
|
this.renderer.hideButtons(this.gateway.button.wrapper);
|
||||||
|
this.renderer.hideButtons(this.gateway.hosted_fields.wrapper);
|
||||||
},
|
},
|
||||||
document.querySelector('form.cart'),
|
document.querySelector('form.cart'),
|
||||||
new ErrorHandler(),
|
new ErrorHandler(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue