block.json
48 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "surecart/price-choice", |
| 4 | "title": "Price Choice", |
| 5 | "description": "Displays a price choice for a product", |
| 6 | "category": "surecart", |
| 7 | "parent": ["surecart/price-selector"], |
| 8 | "keywords": ["price", "product", "choice", "checkout"], |
| 9 | "textdomain": "surecart", |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false |
| 13 | }, |
| 14 | "attributes": { |
| 15 | "price_id": { |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "label": { |
| 19 | "type": "string" |
| 20 | }, |
| 21 | "description": { |
| 22 | "type": "string" |
| 23 | }, |
| 24 | "quantity": { |
| 25 | "type": "number" |
| 26 | }, |
| 27 | "type": { |
| 28 | "type": "string", |
| 29 | "default": "radio" |
| 30 | }, |
| 31 | "checked": { |
| 32 | "type": "boolean" |
| 33 | }, |
| 34 | "show_label": { |
| 35 | "type": "boolean", |
| 36 | "default": true |
| 37 | }, |
| 38 | "show_price": { |
| 39 | "type": "boolean", |
| 40 | "default": true |
| 41 | }, |
| 42 | "show_control": { |
| 43 | "type": "boolean", |
| 44 | "default": false |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 |