modules/phytoquickadd/
Direct path in the repo โ all PHP, SQL, templates, and assets
Overview
A tabbed back-office tool for adding products quickly โ with AI description generation, botanical taxonomy management, multi-category assignment, and bulk image upload that automatically feeds through the image protection pipeline.
Version History
v1.0 โ First Build
Single-page form: type a product name, generate an AI description, set a price, save. One category only, no image upload.
v2.0 โ Tabs, Categories, AI Toggle
4-tab layout. Dedicated “Add Category” tab with live dropdown tree. AI description toggle. Category management without navigating away.
v3.0 โ Taxonomy Packs, Multi-Category, Notes, Multi-Image Upload (current)
- Taxonomy Packs tab โ import full botanical family trees (genus, species, cultivar) in one click from GitHub-hosted packs
- Multi-category โ assign a product to multiple categories at once
- Notes + hashtags โ
#hashtagnotes saved as PrestaShop product tags automatically - Multi-image upload โ first image becomes cover; all images go through
phyto_image_secpipeline (watermark โ IPTC โ WebP) on save
Admin Pages
| Page | Purpose |
|---|---|
| Add Product | Main quick-add form with all tabs |
| Add Category | Category tree builder |
| Taxonomy Packs | Browse and import botanical packs |
Source Layout
| Path | Purpose |
|---|---|
phytoquickadd.php | Module entry + menu registration |
controllers/admin/ | Tab controllers for each admin page |
views/templates/admin/ | Smarty templates for each tab |
views/js/ | AJAX product save, taxonomy fetch, image preview |