=== ArtPrintery for WooCommerce ===
Contributors: printhousehq
Tags: print on demand, art prints, framed prints, woocommerce, fulfillment
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell art prints and framed prints. ArtPrintery prints each paid order and ships it to your customer.

== Description ==

ArtPrintery for WooCommerce connects your store to ArtPrintery, a print-on-demand service for artists: art prints and framed prints.

You keep selling in WooCommerce. When a customer pays, the plugin sends the order to ArtPrintery. We print it, pack it and ship it to your customer, and the tracking number comes back to the order in your store.

Orders for India are made in our own workshop. Orders for other countries are made by our production network close to your customer.

**What you can do**

* **Link products.** For each product or variation, choose what we print: art print or framed print, size (metric or inch, both shown), paper or frame colour and orientation. Optionally choose the workshop product used for orders delivered within India. Then pick where the image comes from.
* **Same artwork every time.** Choose a design from your ArtPrintery artwork library.
* **A different image on each order.** If a customizer or upload plugin saves a link to the shopper's image on the order item, tell us which field holds it. The "Find it in my recent orders" button looks for it for you.
* **Automatic sending.** Paid orders (Processing or Completed) are sent once, in the background, and retried if something goes wrong. Checkout is never slowed down.
* **Status in your store.** Each order shows its ArtPrintery status, anything we need from you, and the tracking number. Updates are added as order notes.
* **Prices.** See what you pay per print and for shipping, country by country.
* **Shopper uploads (optional).** Show an upload box on a product page so shoppers can send their own image.

A ArtPrintery account and API key are required. The plugin works with WooCommerce High-Performance Order Storage (HPOS) and with the block checkout.

== External services ==

This plugin connects your store to the ArtPrintery service (https://artprintery.com). It cannot print or ship anything without it. The service is provided by ArtPrintery.

Nothing is sent until you save a ArtPrintery API key in the plugin settings. After that, the plugin sends the following to the ArtPrintery API, always from your server (never from the shopper's browser) and always over HTTPS:

* **When you open the Product links tab, the Prices tab, or edit a product:** your API key and store name, to read your product links, the list of print products, your artwork library and the price list. No customer data is sent.
* **When you save or remove a product link:** the WooCommerce product ID, variation ID, product name and the link settings you chose.
* **When you press "Find it in my recent orders":** the names and values of order item fields from your last 50 orders, but only fields whose value contains an https link. No customer names or addresses are sent. ArtPrintery does not store this data.
* **When a paid order contains a linked product (or a shopper-upload product):** the order ID and number, currency, the customer's name, email address and phone number, the shipping address (name, company, street, city, state, postcode, two-letter country code), and for each linked line: the line ID, product and variation IDs, product name, SKU, quantity and all of that order item's meta fields (this is where a shopper's image link is stored). Lines for products that are not linked are not sent. This is needed to print the order and deliver it.
* **About once an hour, for each order that is still being made or shipped:** the ArtPrintery order number, to read its status and tracking number.
* **When a sent order is cancelled or fully refunded:** the ArtPrintery order number, to cancel printing.
* **When a shopper uploads an image on a product with "Shopper uploads" turned on:** the image file and the chosen size and border.
* **If you turn on "Faster tracking updates":** the address of a REST endpoint on your site, so ArtPrintery can tell your store when an order changes. These messages are signed and verified.

Every request also carries your API key and the plugin version.

The plugin does not track you or your shoppers, and it sends no usage statistics.

By using the service you agree to the ArtPrintery terms. Please read them and the privacy policy:

* Terms of service: https://artprintery.com/terms
* Privacy policy: https://artprintery.com/privacy

== Installation ==

1. Install and activate WooCommerce.
2. In WordPress, go to Plugins > Add New, search for "ArtPrintery for WooCommerce", install it and activate it. Or upload the `artprintery-for-woocommerce` folder to `/wp-content/plugins/`.
3. Go to WooCommerce > ArtPrintery.
4. Paste your ArtPrintery API key and press Save. You create the key in your ArtPrintery dashboard. Give it these permissions: `catalog:read`, `catalog:write`, `artwork:read`, `orders:read`, `orders:write`. Add `artwork:write` if you use shopper uploads and `webhooks:write` if you turn on faster tracking updates.
5. Press "Check the connection".
6. Open the Product links tab and link the products you want us to print.

== Frequently Asked Questions ==

= Do I need a ArtPrintery account? =

Yes. The plugin connects your store to your ArtPrintery account with an API key.

= What can you print? =

Art prints (matte or silk paper) and framed prints (black, white or wood frames), in metric and inch sizes. The choices are listed when you link a product.

= Which countries do you ship to? =

Open the Prices tab. The country list there shows every country we deliver to, with your cost per print and for shipping.

= When is an order sent to ArtPrintery? =

When WooCommerce says the order is paid and its status is Processing or Completed. Only the lines for linked products are sent. An order is sent once, even if WooCommerce fires the payment event twice.

= Does it work with products that have variations? =

Yes. Link each variation you want us to print. A product without variations is linked as a whole.

= What does "Action required" mean? =

We cannot print the order yet. Usually the image is missing, the image link does not work, the image is too small, your ArtPrintery balance is too low, or the product link has no print for the order's country. Some orders wait on us instead: when a live price could not be fetched yet, or when production reports a problem. Those clear by themselves. The order screen shows the reason and a link to fix it in your ArtPrintery dashboard.

= What happens if ArtPrintery cannot be reached? =

The plugin tries again several times over the next day. If it still fails, it adds an order note. You can then use "Send to ArtPrintery" under Order actions.

= Where is my API key stored? =

In your WordPress database (the options table). It is used only for requests from your server and is never shown in full or sent to a browser.

= What is removed when I delete the plugin? =

The plugin's settings (including the API key), its saved copy of your product links and its scheduled jobs. Order notes and the ArtPrintery order number saved on each order stay, because they are part of your order history. Your product links stay in your ArtPrintery account.

== Privacy ==

For orders that contain a linked product, the plugin sends the customer's name, email address, phone number and shipping address to ArtPrintery so the order can be printed and delivered. See the "External services" section for the full list and the links to the terms and privacy policy. You may want to mention ArtPrintery in your store's own privacy policy.

On your site, the plugin stores your settings and API key, a copy of your product links, and on each sent order: the ArtPrintery order number, status, tracking number and any open problems.

== Screenshots ==

1. Product links: see which products are linked and link a new one in three steps.
2. The order screen shows the ArtPrintery status, anything that needs your attention and the tracking number.
3. Prices by country.

== Changelog ==

= 1.2.0 =

* New: link a product to any catalogue print: art print or framed print, metric or inch size, paper (matte or silk), frame colour and orientation.
* New: optional workshop product for orders delivered within India, next to the print for every other country. Links made before keep working for India and invite you to add the worldwide print.
* New: the Prices tab groups prices by size and lists the papers or frame colours that share a price.
* New: the order box shows what ArtPrintery charges for the order in its own currency, and explains orders waiting on a price or on production.
* New: shopper uploads can be prepared for any catalogue size and orientation.

= 1.1.0 =

* New: Product links tab to choose what is printed for each product and variation.
* New: "Find it in my recent orders" to find the order item field that holds the shopper's image.
* New: link settings inside the product editor, for simple products and for each variation.
* New: Prices tab with your cost per print and shipping for each country.
* New: order box and orders-list column with status, "Action required" messages and tracking.
* New: option to mark the WooCommerce order as Completed when it ships.
* Changed: orders are sent in the background with Action Scheduler and never during checkout.
* Changed: products without variations are now matched by their product ID.
* Changed: deleting the plugin now removes its settings.
* Removed: the "Create or update products" button and the retail markup setting.

= 1.0.1 =

* Enforce paid-order checks on manual sending and retries.
* Sync cancellations and fully refunded orders.
* Check all open orders in turn.

= 1.0.0 =

* First release.

== Upgrade Notice ==

= 1.2.0 =

Product links can now name a print for every country. Open Product links and add one to links that print only for India.

= 1.1.0 =

Adds product links, prices and order status. After updating, open WooCommerce > ArtPrintery > Product links and link your products.
