外掛標籤
開發者團隊
原文外掛簡介
PrintAura is a print-on-demand service. A PrintAura product often comes in many colors and many sizes, so it can have more than 30 variations.
WooCommerce treats a product with more than 30 variations differently on its product page. Up to 30, the dropdowns offer only the combinations that exist: pick a color and the size list shows only that color’s sizes. Above 30, the dropdowns list every color and every size, and a shopper who picks a combination that does not exist is told so only after picking it.
Until now the fix was a line of code added to the shop by hand. With this plugin active, every product’s dropdowns offer only the combinations that exist, however many variations it has. There is nothing to set up.
What the plugin does:
It raises WooCommerce’s variation limit (the woocommerce_ajax_variation_threshold filter) for each product to that product’s own number of variations.
It never lowers a limit your shop already sets higher.
It stores nothing. Deactivate it and your shop behaves exactly as it did before.
The plugin works for every variable product on the shop, not only PrintAura’s.
Connecting your shop to PrintAura
While your shop is not connected, the Plugins screen shows a “Connect to PrintAura” button. It opens PrintAura, where you sign in, check the shop and the PrintAura store named on the page, and click Connect. You then approve PrintAura on your shop, as you would when connecting from PrintAura.
If the connection breaks (PrintAura’s order notifications are turned off or missing, or PrintAura has not been able to sign in to your shop for over a day), your shop’s admin shows a notice with a Reconnect button. Reconnecting takes you through the same steps. PrintAura never connects or reconnects your shop by itself.
The plugin’s row on the Plugins screen has a link to PrintAura: “Connect to PrintAura”, “Reconnect”, or, while the shop looks connected, “Check PrintAura connection”. (While PrintAura waits for the one-time code, there is none: finish with the code instead.) If you removed the shop in PrintAura, your shop still holds PrintAura’s webhooks and key, so for up to a day it cannot tell; that link opens PrintAura, which says whether the shop is connected and lets you connect it again.
The plugin works out the connection’s state from your shop’s own database: the webhooks WooCommerce holds for PrintAura and the API keys you approved for it. It stores nothing.
Health checks
When PrintAura checks your connected shop, it also reads a short health report from the plugin, using the API key you approved for PrintAura. The report says only how PrintAura’s webhooks on your shop are doing: for each one, the PrintAura connection it belongs to, its topic (for example “order.created”), whether WooCommerce has it on, and how many deliveries to PrintAura have failed in a row. It holds no order, product, customer or settings data. If your shop’s deliveries to PrintAura keep failing (a security or caching plugin, or your host’s firewall, can block them), your shop’s admin tells you, and PrintAura shows it on the shop’s page.
External services
The plugin itself sends nothing to PrintAura or to any other site, and loads nothing from another site. PrintAura reads the health report described above (wp-json/wc-printaura/v1/health) when it checks your shop, with the API key you approved for it; the route answers only a user who can manage WooCommerce.
The “Connect to PrintAura”, “Reconnect” and “Check PrintAura connection” buttons and links are links to PrintAura (https://app.printaura.com), the print-on-demand service this plugin is for. Only when you click one does your browser open PrintAura’s connect page, with your shop’s address in the link, so PrintAura can show you which shop you are connecting. What happens after that is between you and PrintAura, under its terms of service (https://printaura.com/terms-of-service/) and privacy policy (https://printaura.com/privacy-policy/).
