This plugin authenticates against the Prodaxis API gateway with a per-company API key
and exposes the [prodaxis_print_quote] shortcode, which lets a visitor upload an
STL model, choose a material, color and template, and get an estimated print
price, time and filament length.
Because the gateway derives the company from the API key, one WordPress site
quotes against exactly one company’s print options: whichever key you configure
under Settings -> Print Quote.
X-API-Key headerThe API key never reaches the browser — all requests happen on the WordPress
server.
This plugin is an interface to the Prodaxis API gateway, a third-party
service that holds your company’s 3D-print materials and performs the price
calculations. The plugin has no use without access to that service, and no data
is sent anywhere until you configure the gateway URL and an API key under
Settings -> Print Quote.
Once configured, when a visitor requests a quote the plugin sends the following
to the gateway URL you configured, server-side (never from the visitor’s
browser):
X-API-Key request header.The gateway returns the estimated price, print time and filament length. The
uploaded model and selections are transmitted to your configured gateway solely
to produce the quote.
When a visitor places an order, the plugin additionally sends their order
details (name, optional company, email, phone, shipping address or pickup
locker code, the chosen delivery method and quantities) to the same gateway,
server-side, to create the order and start the payment.
Payment is collected by Stripe (https://stripe.com/): the visitor’s browser is
redirected to a Stripe-hosted checkout page operated on the merchant’s Stripe
account. No card data ever touches this plugin or your WordPress site. See
Stripe’s Privacy Policy: https://stripe.com/privacy
If you paste an InPost Geowidget token under Settings -> Print Quote, the quote
widget also offers a map-based Paczkomat (parcel locker) picker. In that case
the visitor’s browser loads InPost’s official Geowidget v5 assets from InPost’s
CDN:
These assets are loaded only when all of the following hold: the page contains
the [prodaxis_print_quote] shortcode, you have configured a Geowidget token,
and the shop offers a parcel-locker delivery method. The map itself initializes
only after the visitor clicks the “Choose a Paczkomat on the map” button; it
then talks to InPost’s services to display pickup points, sending your
Geowidget token (a browser-safe credential generated in the InPost Parcel
Manager, https://manager.paczkomaty.pl) with those requests. If no token is
configured, no InPost resource is ever requested and visitors type the locker
code manually.
[prodaxis_print_quote]
Renders an interactive quote-and-order tool. On wide containers it shows a
split configurator (persistent 3D preview and live quote on the left, options
on the right); on narrow containers (mobile, sidebars) it collapses into a
guided card. A visitor:
The browser never talks to the gateway directly. The file and selections are
sent to WordPress (admin-ajax), which proxies them server-side using the same
cached service-account token:
Because slicing is asynchronous, the widget shows a “calculating” state and
polls every couple of seconds, giving up after about three minutes.
Changing the material and recalculating reuses the already-uploaded file;
choosing a different file re-uploads. Requests are protected with a WordPress
nonce.
Optional attributes:
accent – hex accent color for the widget (default #0f4c81)template_style – cards (default) or compact template selectorpowered_by – brand shown in the footer line; omitted hides itExample: [prodaxis_print_quote accent="#0f9d6b" template_style="compact"]
localhosthttp://host.docker.internal:8086 instead, sinceupload_max_filesize /The print-quote widget’s 3D preview is powered by Three.js (r185 / 0.185.0),
bundled locally under assets/js/vendor/ so the widget needs no external
requests:
These are loaded as ES modules: the viewer script imports the bundled build and
its STLLoader / OrbitControls addons directly. The MIT license is
GPL-compatible. Apart from the optional InPost Geowidget described above (which
loads only when you configure its token), no other external scripts or services
are loaded in the browser.