=== Printa Calculate ===
Contributors: printa
Tags: woocommerce, 3d printing, calculator, manufacturing, ecommerce
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect 3D printing calculation to WooCommerce and manage the workflow through Printa Portal.

== Description ==

Printa Calculate brings 3D printing calculation to WordPress and WooCommerce and connects the resulting workflow to Printa Platform.

Add Printa Calculate to a WordPress page with the `[printa_calculate]` shortcode. Customers can upload and configure a 3D model, receive a calculated price and continue directly to your existing WooCommerce checkout.

= From 3D model to WooCommerce checkout =

Printa Calculate can:

* Embed Printa Calculate directly on a WordPress page.
* Let customers upload and configure 3D models.
* Calculate the order price using your Printa Calculate configuration.
* Receive a verified checkout handoff from Printa Calculate.
* Create and use a WooCommerce product for the calculated 3D printing order.
* Apply the calculated price to the WooCommerce cart.
* Use the store's existing WooCommerce checkout and payment methods.
* Store relevant Printa Calculate information with the WooCommerce order.
* Synchronize relevant order and payment information with Printa Platform.

= More than a calculator - Printa Portal =

Printa Calculate is part of Printa Platform. Your Printa account also gives you access to Printa Portal, a central workspace for managing your 3D printing workflow.

Printa Portal brings the workflow together beyond the WordPress checkout. Depending on the features available for your Printa account, Portal provides tools for:

* Orders and production workflow.
* Customer requests.
* Quotes.
* Invoicing.
* Printa Calculate configuration.
* Company settings.
* Users and access.
* License and Printa Credits management.

This means Printa Calculate does not have to end when the customer reaches WooCommerce. Printa Platform can connect the customer-facing calculation with the administrative and production workflow behind it.

= Coming soon - Printa AI =

Printa Platform is continuing to grow beyond calculation, order management and production.

Printa AI is an upcoming set of intelligent tools designed specifically for 3D printing workflows.

Planned Printa AI capabilities include tools for model analysis, repair and optimization, with additional AI-powered functionality being developed for Printa Platform.

Printa AI features will use Printa Credits, giving businesses a flexible way to access AI-powered tools when they need them.

Printa AI is currently in development. Features, availability and credit requirements may change before release.

A Printa Platform account and valid Printa Calculate configuration are required to use the service.

More information about Printa Platform is available at:

https://printa.nu/

== External service ==

This plugin connects to Printa Platform and Printa Calculate, external services operated by Printa Kristianstad.

The external service is required for the core functionality of the plugin. The 3D model analysis, calculation, checkout handoff verification and related Printa Platform functionality are performed by or verified through Printa Platform.

Depending on how the plugin and WooCommerce store are used, information sent to Printa Platform may include:

* The Printa company identifier and public integration key.
* Printa Calculate session and checkout handoff information.
* Calculated order information.
* Information about the selected material and other calculation selections.
* WooCommerce order identifiers and order status.
* Payment method and payment status.
* Transaction identifiers when available.
* Customer contact and order information required to associate the WooCommerce order with the corresponding Printa Platform order.

Customers may also upload 3D models and related files directly through Printa Calculate. These files are processed by Printa Platform to provide the requested calculation and related functionality.

The service is operated by:

Printa Kristianstad  
Sweden  
https://printa.nu/

Terms of service:
https://printa.nu/villkor-for-printa/

Privacy policy:
https://printa.nu/integritetspolicy/

The plugin does not independently send data to unrelated advertising services.

== Installation ==

1. Install and activate WooCommerce.
2. Upload the `printa-calculate` plugin directory to `/wp-content/plugins/`, or install the plugin through the WordPress plugin installer when available.
3. Activate Printa Calculate in the WordPress Plugins screen.
4. Open the Printa Calculate settings page in WordPress.
5. Enter the Printa Calculate configuration provided by Printa Platform.
6. Add the shortcode `[printa_calculate]` to the WordPress page where the calculator should appear.
7. Test the complete flow from Printa Calculate to the WooCommerce checkout before making the page public.

== Frequently Asked Questions ==

= Is WooCommerce required? =

Yes. This plugin uses WooCommerce for the cart, checkout, order and payment flow.

= Do I need a Printa Platform account? =

Yes. Printa Calculate is provided as part of Printa Platform and the plugin requires a valid Printa configuration.

= Does the plugin process 3D models inside WordPress? =

No. Printa Calculate and Printa Platform perform the model processing and calculation required by the service.

= Which payment methods can I use? =

The customer completes the purchase through WooCommerce. The available payment methods therefore depend on the payment methods configured in the WooCommerce store.

= Does the plugin send information to Printa Platform? =

Yes. Communication with Printa Platform is required for the plugin to provide its core functionality. See the External service section above for details.

= Where can I find the terms and privacy information? =

Printa terms:
https://printa.nu/villkor-for-printa/

Printa privacy policy:
https://printa.nu/integritetspolicy/

== Privacy ==

Printa Calculate is an integration with the external Printa Platform service.

When the integration is used, information necessary to perform calculations, verify checkout handoffs and associate WooCommerce orders with Printa Platform orders may be transferred between the WordPress/WooCommerce site and Printa Platform.

The exact personal information processed depends on the store configuration and the information supplied by the customer.

Store owners are responsible for informing their customers about the services and processors used by their store and for complying with applicable privacy and data protection requirements.

For information about how Printa processes personal data, see:
https://printa.nu/integritetspolicy/

== Screenshots ==

1. Printa Calculate embedded on a WordPress page.
2. Printa Calculate settings in the WordPress administration area.
3. A calculated 3D printing order transferred to WooCommerce checkout.

== Changelog ==

= 2.0.1 =

* Hardened the WooCommerce checkout handoff flow.
* Added a WordPress nonce-protected finalize step before WooCommerce cart changes.
* Added short-lived server-side handoff state after Printa Platform verification.

= 2.0.0 =

* Prepared Printa Calculate for WordPress.org distribution.
* Added WordPress.org compatible plugin metadata and external service documentation.
* Improved security, privacy information and internationalization.
* Moved frontend JavaScript and CSS to local plugin assets.
* Verified compatibility with WordPress 7.1, WooCommerce 11.0.1 and PHP 8.0.

== Upgrade Notice ==

= 2.0.1 =

Security hardening for the WooCommerce checkout handoff flow.
