Skip to content

Measurements Module

The Measurements tab holds one switch, Measurements module. The module adds a fitting height step to the lens wizard, a fitting photo request to the order screen, and the Frame measurements screen to the SpecCart menu. Your lab uses the fitting height (segment height) to line multifocal lenses up with the customer’s eyes.

The module ships switched off. Nothing described on this page appears for customers or staff until you switch it on.

  1. Go to SpecCart > Settings > Measurements
  2. Turn on Measurements module (the switch shows On)
  3. Click Save changes in the header bar

Switch it off the same way. The setting is included in the SpecCart export file.

With the Measurements module switched on, varifocal, bifocal and occupational orders get a Fitting height step after Colour and coatings: “Add your fitting height. Your lab uses it to line the lenses up with your eyes.” Other lens usages do not get the step.

The customer chooses one of three ways to add it:

ChoiceWhat happens
Take a photo nowThe customer takes a photo with their phone or webcam, face only, looking straight ahead. When the frame has measurements (see Frame measurements), the wizard works out a segment height for each eye at the customer’s PD and shows it on the step. From 1.8.6 the segment height is one figure, given for both eyes. When the frame has none, the photo is kept and the step says “We can’t work out a number for this frame, so our lab will measure your fitting height from your photo.”
Upload a photoThe customer uploads a photo they already have of their face, looking straight ahead (JPG, PNG or WEBP). The step says “Photo received. Our lab will measure your fitting height from it.”
Send it laterThe customer orders now. “You can order now. We will email you a link to take your photo, and your glasses are made once we have it.”

From 1.8.6 a segment height goes on a basket line only when that line’s own fitting choice is a photo taken in the wizard (on this device or a phone after the QR code). A second pair of the same frame added in the same visit with Upload a photo or Send it later has no segment height: the lab measures it from its own photo. An uploaded prescription whose only PD was read from the file now gets its segment height at that PD.

The customer can replace or delete their photo on the step. The wizard tells them their photo is kept with their order, seen only by your staff, and deleted with the order. The basket shows the fitting height as Photo received or To be sent later, with an Edit link back to the step.

SpecCart keeps one fitting photo per pair, stored with the order and visible only to staff. It is deleted when the order is deleted or the customer’s personal data is erased, not when the order is completed.

When a customer chooses Send it later, SpecCart emails them “Your fitting photo for order #[number]” once the order reaches Processing, with one Take your fitting photo link per pair. Staff can also send a link from the order (see below). The link opens a page on your site, made for phones, where the customer takes their fitting photo. When the photo has been received the page says so, and the photo appears on the order.

Opening the link again shows “We already have your fitting photo”, with the day it was sent and a Retake button. If the customer has the link open in two tabs and takes a photo in each, only the first one is saved: the other tab shows “We already have your fitting photo” instead of replacing it, so staff get one note and one email. Retake from that screen still replaces the photo. From 1.8.7, any other address under /measure/ that is not a link SpecCart sent (a mistyped or cut-off link) shows “This link isn’t valid” with a Contact us button, rather than your theme’s 404 page. Your own /measure/ page, and any page you have under it, are left as they are.

With the Measurements module switched on, the SpecCart Lens Configuration box on a varifocal, bifocal or occupational prescription order has:

  • Segment height at PD: type a PD to see the segment height worked out for it (right and left, in mm), or “Not measured at PD …” when there is none for that PD. It shows beside the fitting photo. From 1.8.5, while a fitting photo link is out and the photo has not arrived and nothing has been measured, the box shows only a tile reading Fitting photo and Awaiting, with the date the link was sent (“Link sent …”); the Segment height at PD field appears once there is a measurement to read.
  • Request fitting photo: emails the customer a link to take a fitting photo. A dialog shows who it goes to and asks you to confirm. The link works until the order is Completed or cancelled, and can be used again to retake. After sending, the order screen shows “Fitting photo requested. We emailed a link to [email] on [date].” If the email cannot be sent, the order gets a note saying so.

The lab PDF prints the segment height for the order’s PD in its Height column when one was worked out.

A segment height is worked out from the PD, so with PD requirement set to Optional (see Prescription) a customer can reach the Fitting height step with no PD. When the frame has measurements, the step then shows a box in place of the number: “Segment height is worked out from your PD. Add your PD to see it, or continue without it.” (“Add your two PD values on the Prescription step to see it” when the customer ticked I have two PD values.) The box has an At PD list that starts on “Select your PD”, so the customer can pick one there to see the height. Under Required, must be filled in the sentence ends after “to see it” and the PD list starts on the customer’s PD. On the photo page a customer opens from a link, the result panel says only “Measurement taken” with a green tick when the order has no PD, with no segment height beneath it. The order’s lab PDF leaves Height blank and prints “No PD given” under its measurements table.

With PD requirement set to Required with a default (see Prescription), a single PD the customer leaves on “63 (average)” gets the segment height at 63 (from 1.8.4). The Fitting height step shows Right eye and Left eye at PD 63, with its At PD list resting on “63 (average)” so the customer can change it, and asks nothing more. From 1.8.6 the sentence under the numbers says “Worked out for this frame at the average PD of 63. If you know your own PD, choose it above.”; once the customer chooses a PD from the list, a “63” included, it says “Worked out for this frame at the PD you chose. It updates if you change your PD.” The basket, the order box, the lab PDF and the photo page a customer opens from a link all give the height at 63, and the PD keeps its mark “Shop default, not chosen by the customer”. A customer who chooses a single “63” from the list, on the wizard, the upload link page or the At PD list on the Fitting height step, counts as having confirmed it, and gets the height at 63 too. For any other 63 not confirmed (a 63 read from an upload, or two values that add up to 63) the order box still says “Not shown at PD 63 until the customer’s PD is confirmed as 63.” You can confirm it yourself with the tick The customer’s own PD is 63 on the Prescriptions screen (see Orders with a default PD). From 1.8.5 the same holds when the prescription arrives later through the emailed upload link: the order line gets the segment height for the PD that came, at 63 for the shop’s default, as an order added to the basket with its prescription does.

After the fitting photo, the result panel (in the wizard, on the link page and on a phone after the QR code) says “Measurement taken” with a green tick, then the segment height where there is one; on a phone after the QR code, “Measurement taken” is followed by “Your measurements are on your other screen.” A scan that does not fit the frame, and a frame with no measurements, keep “Photo taken” with their own sentence, as nothing was measured. On the Fitting height step the photo’s box shows the same tick, drawn once when the photo is saved and still when the step is opened again. With reduced motion switched on in the device’s settings, the tick is drawn without the animation.

The segment height is steadier than it was. It used to jump by about 4 mm when the customer’s PD moved across about 63.5 to 64. The height is now held within the bridge of the nose, so neighbouring PDs give neighbouring heights. Heights already stored on orders are not recalculated.

The SpecCart > Frame measurements screen holds the measurements of each frame’s lens openings that segment height is worked out from. It shows how many frames are measured and how many need a look, and lists the frames in three views:

  • Needs a look: frames flagged for checking, or with no measurement. Open one to check the lens boxes on the product photo, fix a box by hand, then confirm it with Looks right, or leave it with Can’t tell. Measure again measures that frame afresh.
  • Measured: frames with measurements in use.
  • Bridge differs: frames whose listed bridge width is more than 2 mm from the one measured on the photo, so you can check the listing or the boxes.

A product with no lens width on its product page cannot be measured, and the screen says how many there are.

Import frame measurements loads a frame measurements file (JSON). Frames are matched by SKU. A frame someone has confirmed is never overwritten; every other matched frame takes the file’s measurements. What the file contains on the import screen describes the format.

Export frame measurements downloads the measurements you have, in the same format, for example to keep a copy or to import on another site.

Measure frames without geometry measures every measurable frame that has no measurements yet, from its product photo. It runs in your browser tab, so keep the tab open: leaving the page stops it, and frames already done keep their results. At the end it shows how many were measured, sent to review and failed, with the reason for each failure. Measured frames are used for segment height straight away; frames sent to review wait in Needs a look until someone confirms them.

While any published product with a lens width has never been measured (a new frame added to the shop, for example), the Products list and the product edit screen show a notice: “SpecCart: 3 frames have not been measured, so customers buying them get no segment height.” Measure frames opens Frame measurements and starts Measure frames without geometry straight away. Frames that were measured and failed, or that wait in Needs a look, are not counted: they are on the Frame measurements screen already. The notice can take up to five minutes to catch up with a product added to the shop; it goes as soon as the frames are measured.

Whenever a frame’s measurements are saved or changed (a measuring run, Measure again, Looks right, a box fixed by hand or an import), SpecCart clears that product’s page from the site’s page cache, so customers get the segment height on their next visit. This works through the Nginx Helper plugin where it is active with purging switched on. With no page cache plugin SpecCart knows of, nothing is cleared, and a cached product page shows the new measurements only once the cache expires.

From 1.8.9, every time the camera runs, on the lens wizard or on an emailed capture link, the page sends one short technical report when the run ends, so a camera that never manages a measurement on some phone does not go unnoticed. There is no setting: it is always on.

What is sent: whether it was a PD or a fitting photo, which page it was on, how the run ended (measured, cancelled, a retake and why, no camera, camera refused), how long it took, the camera’s picture size, the screen’s size and orientation, how many frames were read and how many had a face, how often each check failed (for example “Keep your head level”), and whether the face tracker gave impossible results. The server adds the time and the browser name.

What is never sent: a photo or any part of one, the face’s points, a PD, a segment height, a prescription, a name, an email address, the customer’s IP address or the page’s address.

Where it is kept: one line per run in wp-content/uploads/speccart-prescriptions/logs/camera-reports.jsonl, inside the prescriptions folder, which the web server does not serve. When the file passes 2 MB it is renamed camera-reports.1.jsonl, replacing the previous one, so at most about 4 MB is kept. No more than 60 reports an hour are taken from one address, and 600 an hour from the whole site.

With the Measurements module switched off:

  • The wizard has no Fitting height step
  • No fitting photo emails are sent
  • The order box has no Request fitting photo button
  • The Frame measurements screen is not in the SpecCart menu

An order that already holds a fitting photo or segment height still shows it in the order box.

  • Prescription: the PD the segment height is worked out at
  • Lens Usage: the usages that get the Fitting height step