make sure we only allow one cart/checkout block per page/post (https://github.com/woocommerce/woocommerce-blocks/pull/1384)
This commit is contained in:
parent
a4be92ec15
commit
25c32dff45
|
@ -28,6 +28,7 @@ registerBlockType( 'woocommerce/cart', {
|
|||
supports: {
|
||||
align: [ 'wide', 'full' ],
|
||||
html: false,
|
||||
multiple: false,
|
||||
},
|
||||
example,
|
||||
attributes: {},
|
||||
|
|
|
@ -25,7 +25,11 @@ registerBlockType( 'woocommerce/checkout', {
|
|||
'Display the checkout experience for customers.',
|
||||
'woo-gutenberg-products-block'
|
||||
),
|
||||
supports: {},
|
||||
supports: {
|
||||
align: [ 'wide', 'full' ],
|
||||
html: false,
|
||||
multiple: false,
|
||||
},
|
||||
example,
|
||||
attributes: {
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue