block.json
51 lines
| 1 | { |
| 2 | "apiVersion": 3, |
| 3 | "name": "surecart/product-donation-price", |
| 4 | "title": "Recurring Prices", |
| 5 | "description": "Displays an option to select between recurring prices.", |
| 6 | "category": "surecart", |
| 7 | "ancestor": ["surecart/product-donation-prices"], |
| 8 | "keywords": ["donation", "ad hoc", "recurring", "amount"], |
| 9 | "textdomain": "surecart", |
| 10 | "usesContext": ["surecart/product-donation/product_id"], |
| 11 | "supports": { |
| 12 | "reusable": false, |
| 13 | "html": false |
| 14 | }, |
| 15 | "attributes": { |
| 16 | "label": { |
| 17 | "type": "string", |
| 18 | "default": "Yes, count me in!" |
| 19 | }, |
| 20 | "recurring": { |
| 21 | "type": "boolean", |
| 22 | "default": true |
| 23 | } |
| 24 | }, |
| 25 | "variations": [ |
| 26 | { |
| 27 | "name": "recurring", |
| 28 | "title": "Recurring", |
| 29 | "description": "Add a button to add the product to the cart.", |
| 30 | "attributes": { |
| 31 | "recurring": true, |
| 32 | "label": "Yes, count me in!" |
| 33 | }, |
| 34 | "isDefault": true, |
| 35 | "isActive": ["recurring"], |
| 36 | "scope": ["inserter", "block", "transform"] |
| 37 | }, |
| 38 | { |
| 39 | "name": "non_recurring", |
| 40 | "title": "Non Recurring", |
| 41 | "description": "Add a button to add the product to the cart.", |
| 42 | "attributes": { |
| 43 | "recurring": false, |
| 44 | "label": "No, donate once." |
| 45 | }, |
| 46 | "isActive": ["recurring"], |
| 47 | "scope": ["inserter", "block", "transform"] |
| 48 | } |
| 49 | ] |
| 50 | } |
| 51 |