hide dcc fields when variation can not be placed in cart // PCP-23

This commit is contained in:
David Remer 2020-07-10 11:03:42 +03:00
parent 713d5bdda1
commit c663fca067

View file

@ -25,6 +25,7 @@ class SingleProductBootstap {
}
render() {
console.log(this);
const actionHandler = new SingleProductActionHandler(
this.gateway,
new UpdateCart(
@ -33,9 +34,11 @@ class SingleProductBootstap {
),
() => {
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.hosted_fields.wrapper);
},
document.querySelector('form.cart'),
new ErrorHandler(),