woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/checkout/attributes.js

42 lines
616 B
JavaScript

const blockAttributes = {
isPreview: {
type: 'boolean',
default: false,
save: false,
},
showCompanyField: {
type: 'boolean',
default: false,
},
requireCompanyField: {
type: 'boolean',
default: false,
},
showApartmentField: {
type: 'boolean',
default: true,
},
showPhoneField: {
type: 'boolean',
default: true,
},
requirePhoneField: {
type: 'boolean',
default: false,
},
showPolicyLinks: {
type: 'boolean',
default: true,
},
showReturnToCart: {
type: 'boolean',
default: true,
},
cartPageId: {
type: 'number',
default: 0,
},
};
export default blockAttributes;