Documentation · PrintCalc for WooCommerce

Installation, usage and troubleshooting for PrintCalc for WooCommerce.

How to install PrintCalc

This guide takes you step by step from the download to having PrintCalc running in your WooCommerce store. No technical knowledge needed.

Requirements

  • WordPress 6.5 or later and PHP 7.4 or later.
  • WooCommerce 8.0 or later (tested up to 11.3). Compatible with HPOS and the Cart and Checkout blocks.
  • The PrintCalc-1.0.0.zip file, which you will find in the purchase email or in My account.

Install in WordPress

  1. Download PrintCalc-1.0.0.zip from the purchase email or from My account. Do not unzip it.
  2. In your WordPress dashboard, go to Plugins › Add New Plugin › Upload Plugin.
  3. Choose the zip file and click Install Now.
  4. Click Activate Plugin. If WooCommerce is not installed and active, PrintCalc tells you it needs it.
  5. Go to WooCommerce › PrintCalc: you will find the Defaults and Licence tabs.

Activate the licence

  1. Go to WooCommerce › PrintCalc › Licence.
  2. Paste your key (format CP-XXXX-XXXX-XXXX-XXXX) and click Activate.
  3. You will see the licence status, the plan and the sites in use.

During the first 7 days you do not need a key: click Start 7-day free trial on the same tab. No payment details are needed and the trial includes every feature. When it ends, calculator products cannot be ordered until you activate your licence; your orders and files are never touched.

Move to another site

Click Deactivate on this site on the Licence tab (or release the site from My account on todoplugin.com) and activate the same key on the new site.

Troubleshooting

  • PrintCalc says it is inactive. It needs WooCommerce. Install and activate WooCommerce, then reload the page.
  • The product says it can't be ordered online. Your trial has ended or the licence is not active. Open WooCommerce › PrintCalc › Licence.
  • The key is not accepted. Check for typos and make sure it is the PrintCalc key from your purchase email. If every site in your licence is in use, deactivate it on another site first.
  • Cannot reach the licence server. Check that your site can make outgoing connections and try again.

Usage

Defaults

Go to WooCommerce › PrintCalc › Defaults. These values apply to every calculator product that leaves the matching field empty in its PrintCalc tab, so you only set them once:

  1. Unit shown to customers: centimetres, millimetres or metres. Customers type width and height in that unit; prices are always calculated per square metre.
  2. Price per m², Minimum price per item and Minimum billable area.
  3. Minimum and maximum width and height.
  4. Quantity discounts and Finishes, which you can prepare for all products.
  5. File options: Allowed file types and Maximum file size. If your server accepts less than the value you enter, PrintCalc tells you: a higher value has no effect until the server limit is raised.
  6. Click Save changes.

The PrintCalc tab of a product

PrintCalc works on simple products. Edit a product, open the PrintCalc tab in Product data and tick Enable calculator.

  • Unit shown to customer: use the default unit or pick another for this product. Size limits are always in cm.
  • Price per m²: the price of one square metre, before finishes and discounts.
  • Minimum price per item: the size-based price of one item is never lower than this. Finishes are added on top.
  • Minimum billable area (m²): smaller items are billed as if they had this area.
  • Minimum width, maximum width, minimum height and maximum height (cm).
  • Allow file upload, File is required, Allowed file types (comma-separated extensions, for example pdf,jpg,png) and Maximum file size (MB).

Any field you leave empty uses the default (you will see "Default: …" as a hint). Save the product to finish.

Quantity discounts

Click Add discount and fill in From quantity and Discount %. The highest matching row applies to the quantity of each cart line. For example, with rows 10 → 5% and 50 → 10%, a line of 60 items gets 10% off. The discount does not apply to fixed finishes. Use Remove to delete a row.

Finishes and their four pricing types

Finishes are optional extras such as eyelets, hems or lamination. Click Add finish and fill in the Label, the Pricing, the Price and, if you like, Preselected (ticked by default). There are four pricing types:

  • Fixed (once per order line): charged once per line, shared across the quantity. Example: 15 for file preparation, whether the customer orders 1 or 20 items. It gets no quantity discount.
  • Per m² of area: price × real area. Example: lamination at 4 per m² on a 2 m² piece adds 8.
  • Per linear metre of perimeter: price × the perimeter, 2 × (width + height), in metres. Example: eyelets at 1 per metre on a 2 m × 1 m piece (6 m perimeter) add 6.
  • Per piece: a price for each item, added once per item. Example: 2 per reinforcement, 5 items add 10.

The quantity discount is taken off the base price and off the per-m², per-metre and per-piece finishes.

What the customer sees

On the product page the customer sees the calculator:

  1. They type the width and height in the chosen unit. If the size is outside the limits, a message shows the allowed range.
  2. They tick the finishes they want; each one shows its price ("+ … per m²", "+ … per linear metre", "+ … each" or "+ … once per order line").
  3. They upload their artwork file: the allowed types and maximum size are shown, and if it is required they cannot add to the cart without it.
  4. They see the price per item and the total update as they type, along with the area and the quantity discount applied. The Quantity discounts table is shown on the page.

On shop listings the price appears as "From …" (minimum size, one item, no finishes) and the button becomes Configure.

The price in the browser is only a preview: when the item is added to the cart, and on every cart update, the server recalculates the price from the width, height, finishes and quantity, and ignores any price sent by the browser.

Cart, order and emails

The size, area, finishes and file name appear in the cart, at checkout (classic and block), in the order and in the order emails. If an item's settings stop being valid, it is removed from the cart with a notice.

Download customer files

Open the order under WooCommerce › Orders. Next to the item you will see the customer's file and the Download file button. The download uses a signed link that checks your permissions, so only shop administrators can download it. If the file is no longer on the server, the order says so.

Where files are stored

Files are stored in wp-content/uploads/printcalc-files/YYYY/MM/ with random names, and are never linked publicly. Before accepting a file, PrintCalc checks its extension, its real content and its size; SVG files containing scripts are rejected. The default allowed types are pdf, jpg, jpeg, png, tif, tiff, ai, eps and svg.

The folder contains an .htaccess file that denies direct access on Apache. On Nginx or other servers add a rule that denies requests to /wp-content/uploads/printcalc-files/. The random names make files practically impossible to guess even without the rule, but you should add it.

Uninstall

Deleting the plugin removes its settings, the licence data and each product's settings. It does not delete customer files in uploads/printcalc-files, because your orders still refer to them. Delete that folder by hand when you no longer need them; files from items that were added to a cart but never ordered also stay there until you delete them. Before deleting the plugin, deactivate the licence on this site to free the seat.

Tips

  • Set the defaults first and leave each product's fields empty: a price change is then made in one place.
  • Set the minimum price and the minimum billable area so small pieces stay profitable.
  • Use "Per linear metre of perimeter" for eyelets and hems, and "Fixed" for file preparation.

FAQ

Does it work with variable products?

Not in version 1.0. The calculator works on simple products only.

Can customers change the price in their browser?

No. The browser only shows a preview; the server recalculates the price and discards any price it receives.

How is the price calculated?

Area is width × height (never less than the minimum billable area). The base price is area × price per m², never lower than the minimum price per item. Then finishes are added and the quantity discount is taken off (except on fixed finishes).

How are taxes handled?

Prices follow the same tax settings as your other products. Enter the price per m² the same way you enter normal product prices (with or without tax, as configured in WooCommerce).

What happens to the files if I delete the plugin?

Nothing: they stay in uploads/printcalc-files. Delete them by hand if you no longer need them.

Troubleshooting

I cannot upload my file

The message tells you why: file type not allowed, file too large, content that does not match the extension, or an SVG with scripts. If the limit comes from the server, upload a smaller file or ask your host to raise upload_max_filesize.

The price shows "Enter width and height to see the price"

The calculator needs both measurements, greater than 0 and within the product's limits.

Still stuck?

Write to us from the contact page with your WordPress and WooCommerce versions and a description of the problem. We will help.

Can't find what you're looking for?

Contact us