=== 3D Crystal Designer ===
Tags: woocommerce, product customizer, personalized gifts, 3d preview, crystal
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.0
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let your customers design their own 3D crystal: they upload a photo, see it inside the crystal in 3D, choose size and light base, approve and order.

== Description ==

3D Crystal Designer is a WooCommerce plugin for shops that sell photo crystals. On the product page, a customer uploads a photo, sees it inside the crystal in a live 3D preview, picks the size, the number of people and a light base, approves the design and adds it to the cart.

Every order carries what you need to make it: the approved preview (normal and lit), the customer's original photo, the photo prepared for etching, and a ZIP of all of them with a `details.txt` of the choices. You prepare the 3D engraving file in your own software, so the plugin works with whichever engraving machine you use.

**Features**

* Photo upload on the product page, with checks on the picture before it is used.
* Live 3D preview of the crystal with the photo inside, including the light base.
* Sizes, number of people and light bases as options, each with its own price.
* The approved design is copied to the order line, the order screen, emails and My Account.
* "Download crystal files (ZIP)" button on the admin order.
* Upload manager: choose how long customer files are kept and how they are organised.
* Optional AI features on paid plans, using your own AI provider key (the plugin does not charge for AI; your provider bills you).
* One crystal designer per product: switch it on only for the products you choose.

**Plans**

Free: 1 crystal product, 3D preview and ordering, the design and photos in every order. Paid plans (Starter, Growth, Business) raise the number of crystal products and sites and add AI features with your own key. A plan limit only stops you switching the crystal on for one more product; products that are already on keep selling and nothing is deleted.

**Licensing and privacy**

Paid licences are sold and checked by Freemius (freemius.com). The plugin does not send usage data unless an administrator opts in. If you use the optional AI features, the customer's photo is sent to the AI provider whose key you entered (OpenAI, Google Gemini or Stability AI); their terms apply, and you should tell your customers. The plugin suggests wording for this in Settings, Privacy (Policy Guide). The plugin removes hidden data such as the location in a photo (EXIF) before the picture is sent to an AI service.

== Installation ==

1. Make sure WooCommerce is installed and active.
2. Upload the plugin zip in Plugins, Add New, Upload Plugin, then activate it.
3. Open 3D Crystal, Settings, and set your light bases and upload rules (and your AI key on paid plans).
4. Edit a product, switch the crystal on in the "3D Crystal" box, and place a test order.

== Frequently Asked Questions ==

= Do I need WooCommerce? =

Yes. 3D Crystal Designer adds the designer to your WooCommerce crystal products.

= Do I need an AI key? =

AI features are included on the paid plans and use your own key. The Free plan has no AI features, and the designer works without them.

= What happens when I reach my plan limit? =

You cannot switch the crystal on for one more product. Everything already switched on keeps selling and nothing is deleted.

= Does the plugin create the 3D engraving file? =

No. You get the approved design, the previews and the original photos, and prepare the 3D file in your own software.

= Can I get a refund? =

Yes. Every paid plan has a 14-day, no-questions-asked refund on your first purchase. Renewal payments are not refundable. Email support@3dcrystaldesigner.com.

= My site runs on Nginx. Are the customers' photos protected? =

On Apache and LiteSpeed the plugin protects its photo folder by itself (a `.htaccess` file). Nginx ignores that file, so add these lines to your site's `server { }` block, using the folder name shown in 3D Crystal, Settings, Upload manager (`c3d-customer-files` unless you changed it), then reload Nginx:

    location ^~ /wp-content/uploads/c3d-customer-files/ {
        add_header X-Content-Type-Options "nosniff" always;
        add_header X-Robots-Tag "noindex, nofollow" always;
        location ~* \.(php[0-9]*|phtml|phar|pht|phps)$ { deny all; }
    }

The plugin only ever saves pictures there, and every photo is saved as a fresh copy of the picture alone; these lines make sure nothing in the folder can ever run as a script. Your host can add them for you.

= How do I report a security issue? =

Please email support@3dcrystaldesigner.com with "Security" in the subject, and do not post it publicly. We reply within 3 working days. See SECURITY.md in the plugin folder for details.

== Changelog ==

= 1.0.0 =

* First release as a stand-alone plugin: the 3D crystal designer, light bases, the design files and ZIP in every order, the upload manager, and Freemius licensing.
