=== DynamiCard ===
Contributors: shabti, dynamiapps
Tags: gift cards, woocommerce, surecart, elementor, gutenberg
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.41
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let customers design and buy personalized gift cards on your WooCommerce or SureCart store - drag-and-drop designer, dynamic fields, native checkout.

== Description ==

DynamiCard lets your customers design and purchase personalized gift cards right on your WooCommerce or SureCart store. You build the card design with a drag-and-drop canvas editor (text, images, QR codes, shapes, freehand drawing), then build the purchase form with a Gutenberg block - dropping in whichever fields the gift card needs: recipient name, a personal message, a dollar amount, and more. Whatever the customer types shows up live on the card design as they fill out the form, before they even check out.

= Free features =

* Gutenberg block-based gift card form (design picker + configurable fields + submit button)
* Drag-and-drop card design editor - text, images, QR codes, shapes, freehand drawing, alignment guides, undo/redo, layers
* One gift card design
* Text, textarea, email, and fixed-amount field types
* Dynamic `{field}` tokens - anything a customer types can appear live on the card design
* Full WooCommerce or SureCart checkout integration (a "Gift Card" product is created automatically)
* Thank-you page card display for designs with no recipient-email field
* Every customer-facing message and label is fully configurable - nothing hardcoded

= Pro features =

* Unlimited gift card designs (free is limited to one)
* Sell a specific WooCommerce product (including variations) or SureCart product through the form instead of a set amount
* Multi-recipient email repeater - one purchase, sent to a whole list of people
* Customer photo upload field
* Customer-entered custom ("other") amount
* Per-field style overrides (accent colors)
* Real, auto-generated coupon codes and expiration dates (a WooCommerce coupon or a SureCart promotion code, matching whichever store you use), baked into the card design right after payment
* A native Elementor widget - build the same form visually in Elementor, not just Gutenberg

Upgrade to DynamiCard Pro from the plugin's settings page inside your WordPress admin.

== Installation ==

1. Upload the plugin to `/wp-content/plugins/` or install it directly from the WordPress plugins screen.
2. Activate the plugin.
3. Make sure WooCommerce or SureCart is installed and active - DynamiCard needs one of them for cart/checkout. A "Gift Card" product is created automatically the first time it's needed. If both are active at once, pick which one to use under DynamiCard's settings page ("Checkout Provider").
4. Add the "Gift Card Form" block to any page. Inside it, add a Design Picker block, one or more Field blocks (one per piece of information you want to collect), and a Submit Button block.
5. Create your gift card design(s) from the plugin's Gift Card Designs screen.

== Frequently Asked Questions ==

= Does this require WooCommerce or SureCart? =

Yes, one of the two - DynamiCard uses whichever is active for cart/checkout, and creates a "Gift Card" product automatically the first time it's needed. If both are installed, choose which one to use under DynamiCard's settings page.

= Which SureCart setup does the "Amount" field need? =

Nothing extra to configure for the amount-based checkout itself - DynamiCard creates and manages its own ad-hoc-priced "Gift Card" product/price in your SureCart account automatically. The one manual step is for designs with no recipient-email field configured (which show the card directly instead of emailing it): add the `[dcgc_thankyou_card]` shortcode to the WP page you've assigned as that checkout form's Thank You Page.

= Can customers pick a specific product as their gift card instead of entering a dollar amount? =

Yes, with DynamiCard Pro's Products field type - customers can pick a specific product (including variations, for variable products) instead of typing in an amount.

= What happens to Pro-only fields if my license lapses? =

Nothing breaks. Any Pro-only field (Products, Recipient Emails, Image Upload) or setting (custom amount, per-field colors, real coupon codes) is automatically downgraded to safe free-tier behavior rather than causing an error - re-activating your license immediately restores full functionality, with nothing to reconfigure.

= Does this work with Elementor? =

Native Elementor support (a Gift Card Form widget mirroring the Gutenberg block) is available with DynamiCard Pro. The free version only includes the Gutenberg block.

== Source Code ==

The `build/` directory contains compiled/minified JavaScript and CSS (Gutenberg blocks, the drag-and-drop card design editor, and the front-end gift-card form). The uncompiled source is publicly available at:

https://github.com/frontend-wp/dynamicard-source

To build it yourself:

1. `cd app && npm install && npm run build`
2. `cd blocks && npm install && npm run build`

Both build into a shared `build/` directory, matching this plugin's layout.

== Screenshots ==

1. The drag-and-drop gift card design editor.
2. The Gutenberg gift card form block, built from a design picker, fields, and a submit button.
3. A customer filling out a gift card form, with their entries appearing live on the card design.

== Changelog ==

= 1.0.41 - 20-07-2026 =
* Added public source repo

= 1.0.35 - 20-07-2026 =
* Initial release.
