Activation
This guide explains what happens when you activate or upgrade SpecCart, the menu structure that appears, and where to go next.
Prerequisites
Section titled “Prerequisites”Before activating SpecCart, ensure the following are met:
- WordPress 6.0 or higher
- PHP 8.1 or higher
- WooCommerce 7.0 or higher: must be installed and active
If any of these requirements are not met, SpecCart will display an error notice and prevent activation.
What Happens on Activation
Section titled “What Happens on Activation”When you activate SpecCart, the plugin automatically:
- Creates default settings: sensible defaults for the configurator, prescription upload, and file handling
- Protects the prescription upload folder: creates
wp-content/uploads/speccart-prescriptions/with an.htaccessfile that denies direct access and an emptyindex.html - Stores default settings: saves configuration options and timestamps
- Flushes rewrite rules: ensures custom endpoints work correctly, such as the secure prescription upload page customers reach from an emailed link
- Adds the SpecCart menu: new admin menu with Prescriptions and Settings pages
The first time a page loads after activation, SpecCart also creates its default lens options (below).
SpecCart checks the upload folder’s protection again on every admin page load, and puts the .htaccess file back if it has gone missing, for example after a server move.
Default Lens Options
Section titled “Default Lens Options”SpecCart creates these starter options the first time its settings are read. Prices are in your shop’s currency.
Lens usage:
- Single Vision Distance (0)
- Single Vision Computer (0)
- Single Vision Reading (0)
- Varifocal (Progressive) (0)
- Bifocal (0)
- Occupational Office (0, switched off)
- Non-Prescription (0)
Types (Varifocal tab):
- Varifocal Basic (0)
- Varifocal Advanced (60, recommended)
- Varifocal Elite (120)
- Occupational Office (80), shown when the Occupational Office usage is switched on
Lens colours:
- Clear Lenses (0)
- Transition Lenses (50), with Grey, Green, Brown and Xtractive colours
- Sunglasses Tint (25), with 50%, 75% and Polarised tints in grey, green and brown
- Blue Light Filter (20)
Lens packages:
- Anti Scratch Only 1.5 (0)
- Anti Glare + Anti Scratch 1.5 (30)
- Thin & Light 1.6 (50, recommended)
- Extra Thin 1.67 (80)
- Ultra Thin 1.74 (120)
Add-ons:
- Add Cleaning Kit (8)
- Premium Case (15)
- Accidental Damage Cover (25)
Restrictions: one rule that removes Transition lenses, the polarised tints and the 1.74 package from Bifocal orders, and rules that hide the 1.5 and 1.6 packages above a set prescription strength.
The Measurements module is switched off.
These defaults let you test the configurator immediately. You can customise all options in SpecCart > Settings.
What Happens on an Upgrade
Section titled “What Happens on an Upgrade”When you replace an earlier version of SpecCart with a newer one, WordPress does not run the activation steps again, and it does not need to. The first time a page loads after the upgrade, SpecCart:
- Keeps a copy of your current settings in the database, so they can be restored if needed
- Upgrades your settings to the new version, keeping every option, price and rule you have set
Upgrading from 1.6 to 1.8 adds:
- The Occupational Office lens usage, switched off until you switch it on in the Lens usage tab. Its type is linked to it
- Intermediate and Near ADD fields for each lens usage, set to hidden, optional or required, and their ranges on the Prescription tab
- Restrictions that hide the 1.5 and 1.6 index packages above a set prescription strength, where your packages use those indexes
- Where exactly one 1.5 package carries the Recommended badge, the badge is shared out by prescription strength across your 1.5, 1.6, 1.67 and 1.74 packages, so it follows the customer’s strongest power
- The Measurements settings, with the module switched off
The upload folder protection is checked again on the next admin page load.
Prescription Upload Folder Notice
Section titled “Prescription Upload Folder Notice”On servers that ignore .htaccess files, such as nginx, the folder protection has no effect. SpecCart tests this from the server: it writes a small test file into the upload folder and tries to fetch it over the web. If the file can be fetched, administrators see this notice at the top of the admin:
SpecCart: prescription uploads and fitting photos can be opened by anyone with the link, because this server ignores the plugin’s .htaccess file. Add this rule to the site’s nginx configuration:
location ^~ /wp-content/uploads/speccart-prescriptions/ { deny all; }
Add the rule to your site’s nginx configuration, or ask your hosting provider to. The result of the test is remembered for a day, so the notice can take up to a day to clear after the rule is in place. See Prescription File Access for more.
Admin Menu Structure
Section titled “Admin Menu Structure”After activation, a new SpecCart menu appears in your WordPress admin sidebar (below WooCommerce). It contains:
Prescriptions
Section titled “Prescriptions”The prescription management interface where you can view and manage pending prescriptions. This page shows all orders with lens configurations and allows you to review uploaded prescriptions, verify prescription data, and update prescription status.
Access: SpecCart > Prescriptions
Settings
Section titled “Settings”The global configuration interface with these tabs:
- General: currency symbol, decimal places, whether new products have the configurator on by default, price display, the prescription contact email, the help video, and lab email settings
- Branding: customise wizard appearance, logo, fonts and colours
- Lens usage: the lens usages customers choose from in the first step (single vision, varifocal, bifocal, occupational, non-prescription)
- Varifocal: the types offered after a lens usage that has them, such as the varifocal and occupational types
- Colours: manage lens colours, transition colours and sunglasses tints
- Packages: lens thickness and coating packages
- Add-ons: optional extras like cleaning kits, cases, damage cover
- Prescription: prescription field ranges, ADD fields, prism, upload file types and size, send later, the lab PDF and prescription upload links
- Contact details: an optional step that asks for the customer’s email and phone
- Restrictions: rules for option compatibility (for example, no Transition lenses with Bifocal)
- AI extraction: configure AI-powered prescription extraction from uploaded images
- Measurements: switches the Measurements module on or off
Access: SpecCart > Settings
Frame measurements
Section titled “Frame measurements”With the Measurements module switched on, the menu also has a Frame measurements page. It is hidden while the module is off.
Access: SpecCart > Frame measurements
First-Time Setup Flow
Section titled “First-Time Setup Flow”After activation, follow this recommended flow:
- Visit SpecCart > Settings > General: check Enable by default, which decides whether products use the configurator unless set otherwise on the product
- Review default lens options: adjust pricing and descriptions to match your offerings
- Customise branding: set colours, fonts and logos in the Branding tab
- Configure prescription settings: set allowed file types, size limits, and validation rules
- Enable on a product: edit any WooCommerce product and click the SpecCart tab in the Product Data panel, then select ‘Enable for this product’ under Lens Configurator
- Test the wizard: visit the product page and walk through the configurator
The configurator is ready to use with defaults, but you should customise pricing and options to match your business before going live.
Accessing Admin Pages
Section titled “Accessing Admin Pages”SpecCart Prescriptions:
- Sidebar: Click SpecCart
- Direct URL:
wp-admin/admin.php?page=speccart
SpecCart Settings:
- Sidebar: Click SpecCart > Settings
- Direct URL:
wp-admin/admin.php?page=speccart-global-settings
Frame measurements (Measurements module switched on):
- Sidebar: Click SpecCart > Frame measurements
- Direct URL:
wp-admin/admin.php?page=speccart-frames
Product Configuration:
- Edit any product and click the SpecCart tab in the Product Data panel
Next Steps
Section titled “Next Steps”Once activated, proceed to the Quick Start guide to configure your first lens options and test the customer-facing wizard.
- Quick Start: configure lens options and test the wizard
- Settings Overview: detailed guide to all settings tabs