FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
packages
/
blocks
/
Blocks
/
AddToCartButton
Edit File: block.json
{ "name": "surecart/add-to-cart-button", "apiVersion": 3, "title": "Add To Cart Button", "description": "Display a button to add a specific price to the cart.", "category": "surecart-product-page", "keywords": ["name", "customer"], "textdomain": "surecart", "parent": null, "version": "1.0.0", "supports": { "interactivity": true, "html": false }, "attributes": { "button_text": { "type": "string", "default": "Add To Cart" }, "ad_hoc_label": { "type": "string", "default": "Amount" }, "backgroundColor": { "type": "string" }, "textColor": { "type": "string" }, "gradient": { "type": "string" }, "radius": { "type": "number" }, "help": { "type": "string" }, "placeholder": { "type": "string" }, "price_id": { "type": "string" }, "variant_id": { "type": "string" } }, "script": "surecart-components", "style": [ "wp-block-button", "surecart-wp-button", "surecart-themes-default", "surecart-input-group", "surecart-spinner", "surecart-button", "surecart-form-control", "surecart-form-group", "surecart-text" ], "viewScript": ["wp-url", "wp-api-fetch", "wp-i18n", "wp-a11y"], "viewScriptModule": ["@surecart/product-page", "@surecart/cart"] }
Save
Back