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

46 lines
680 B
JavaScript
Raw Normal View History

const blockAttributes = {
isPreview: {
type: 'boolean',
default: false,
save: false,
},
useShippingAsBilling: {
type: 'boolean',
default: true,
},
showCompanyField: {
type: 'boolean',
default: false,
},
requireCompanyField: {
type: 'boolean',
default: false,
},
showAddress2Field: {
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;