Ki33 PHP DEVELOPMENT / 2026

WORDPRESS + WOOCOMMERCE / CUSTOM PHP PLUGIN

Update prices
and stock.Confirm every import.

A CSV update should be easy to inspect before it changes the catalogue. This plugin validates the complete file, shows the differences and waits for an administrator’s confirmation.

Independent concept by Ki33 Fictional products · Working local build

12fictional products
with unique SKUs
4products changed
by the sample CSV
62automated checks
repeated on a clean install

These numbers describe the demo dataset and verification, not commercial results.

01 / THE WORKING APPLICATION

Watch the real import.

Recorded in the running WordPress admin.
57 seconds · Russian captions · 1080p / 30 fps

Errors → preview → confirmation → result → repeated importDownload MP4 · 3 MB ↗

The WordPress/WooCommerce application runs locally on PHP and MariaDB. Netlify hosts this case study, the recording and downloadable files.

02 / ADMINISTRATOR WORKFLOW

A deliberate update.

One file, one review, one confirmation.

  1. 01

    Upload

    The administrator selects a UTF-8 CSV with sku, price, stock.

  2. 02

    Validate

    PHP checks every record. Any error blocks the whole file.

  3. 03

    Preview

    Compare the old and new prices and quantities before anything is saved.

  4. 04

    Confirm

    Apply through the WooCommerce API, then read the saved values back.

03 / EVIDENCE FROM THE APPLICATION

Four states. One working plugin.

Original captures: 1440 × 900.
Select an image to inspect it at full size.

WordPress admin before import, with 12 products and their original prices and stock
01 / Before

Original product data, read from WooCommerce.

Five server-side validation errors in the CSV; no changes can be applied
02 / Errors

Duplicate and unknown SKUs, negative values and a missing price.

Preview of old and new prices and stock for 12 products, with four planned changes and an explicit confirmation button
03 / Preview

Four planned updates. The catalogue has not changed yet.

Completed WooCommerce import: four products updated, eight unchanged, zero created
04 / Result

4 updated · 8 unchanged · 0 products created.

04 / IMPLEMENTATION

The checks happen
on the server.

Custom PHP inside WordPress, using WooCommerce’s product API for the actual updates.

WordPress 7.1.3WooCommerce 11.2.1PHP 8.4.26MariaDB 11.8.9
Permissions & request verification
Checks manage_woocommerce, edit_products, each product’s edit permission and separate nonces for validation and application.
A server-side import plan
The preview belongs to the current user, expires after 15 minutes and uses a single-use confirmation token. Hidden form values cannot override the planned prices.
Validate the whole file first
Required fields, exact columns, duplicate and unknown SKUs, price format and integer stock are checked in PHP. An invalid file cannot be applied.
Recheck before writing
Permissions and original product values are checked again. A stale preview is rejected when the catalogue has changed.
WooCommerce CRUD & a transaction
Product setters and save() update prices, quantities and availability. InnoDB transactions and locks protect the batch; a save failure rolls back the database changes.
Repeat without duplicates
Only existing products are updated. Re-uploading matching values reports no new changes, with no second application required.

05 / VERIFICATION

Tested beyond the happy path.

38 integration checks + 24 HTTP checks.
The same checks passed in a separate clean installation.

ScenarioVerified behaviour
Upload and previewProduct values stay unchanged until confirmation.
Invalid CSVAll five sample errors are shown; no products change.
Correct CSVExactly four existing products update; the other eight stay unchanged.
Repeat importNo new changes and no duplicate products.
Unauthorised requestAnonymous users, subscribers and invalid nonces cannot import.
Stale or modified requestChanged products, replayed tokens and tampered client prices cannot overwrite the approved plan.
Save failureAn injected failure on the second save rolls back the first product too.
ReproductionNew database, generated configuration, 12 seeded products; repeated start and graceful stop verified.

06 / INSPECT THE WORK

Code, samples and evidence.

Free official components and original code.
Independent concept by Ki33.

Try the plugin in WordPress

Install free WooCommerce, then upload the plugin ZIP through Plugins → Add Plugin → Upload Plugin. Open WooCommerce → CatalogOps · CSV. The examples use the 12 SKUs provided in the project’s seed data.

Scope of this concept

Existing simple products with stock management enabled and no sale price. CSV files up to 1 MB and 1,000 records. Variations, payments, CRM/ERP integrations and production hosting are outside this demonstration. Third-party hook side effects need separate compatibility checks.

Independent concept by Ki33Explore the rest of my work ↗