block.json
41 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "surecart/coupon", |
| 4 | "title": "Coupon", |
| 5 | "description": "Display a coupon form.", |
| 6 | "category": "surecart", |
| 7 | "keywords": ["coupon", "promo"], |
| 8 | "textdomain": "surecart", |
| 9 | "ancestor": ["surecart/form", "surecart/totals"], |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false, |
| 13 | "multiple": false, |
| 14 | "order-summary": true |
| 15 | }, |
| 16 | "attributes": { |
| 17 | "lock": { |
| 18 | "remove": true |
| 19 | }, |
| 20 | "text": { |
| 21 | "type": "string", |
| 22 | "default": "Add Coupon Code" |
| 23 | }, |
| 24 | "button_text": { |
| 25 | "type": "string", |
| 26 | "default": "Apply" |
| 27 | }, |
| 28 | "placeholder": { |
| 29 | "type": "string", |
| 30 | "default": "Enter coupon code" |
| 31 | }, |
| 32 | "collapsed": { |
| 33 | "type": "boolean", |
| 34 | "default": true |
| 35 | }, |
| 36 | "disabled": { |
| 37 | "type": "boolean" |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 |