Home โ€บ Modules โ€บ phyto_grex_registry

phyto_grex_registry

Attach scientific taxonomy metadata (genus, species, grex, authority, conservation status) to WooCommerce products โ€” shown as a 'Scientific Profile' tab on the product page.

Plant Science v1.0.0 WooCommerce Browse Source on GitHub โ†—
modules/phyto-grex-registry/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

Phyto Grex Registry brings rigorous botanical taxonomy to WooCommerce product pages. Store owners enter genus, species, hybrid or grex name, registration authority, conservation status, and common name via a dedicated Scientific Profile meta box on the product edit screen. When at least Genus or Species is filled in, a collapsible Scientific Profile tab appears automatically on the single product page, presenting the data in a clean definition-list layout with colour-coded conservation status badges.

The plugin is a direct WooCommerce port of the phyto_grex_registry PrestaShop module. The meta key structure and field vocabulary are intentionally identical, making cross-platform data migration straightforward.


Fields

FieldMeta keyDescription
Genus_phyto_grex_genusBotanical genus โ€” e.g. Nepenthes, Heliamphora
Species_phyto_grex_speciesSpecific epithet โ€” e.g. rajah, heterodoxa
Hybrid / Grex Name_phyto_grex_grex_nameRegistered hybrid or grex, e.g. Trusham (RHS)
Registration Authority_phyto_grex_authorityNaming body โ€” e.g. RHS, ICPS, IUCN
Conservation Status_phyto_grex_conservation_statusIUCN / CITES category (select)
Common Name_phyto_grex_common_nameVernacular or trade name
Notes_phyto_grex_notesFree-text internal notes

Conservation Status Options

Stored valueLabelBadge colour
not_evaluatedNot EvaluatedGrey
least_concernLeast ConcernGreen
vulnerableVulnerableAmber
endangeredEndangeredOrange-red
critically_endangeredCritically EndangeredRed
cites_appendix_iCITES Appendix IDeep red
cites_appendix_iiCITES Appendix IIOrange

WooCommerce Hooks Used

HookTypePurpose
add_meta_boxesActionRegisters the Scientific Profile meta box on the product edit screen
save_post_productActionSaves all taxonomy fields as _phyto_grex_* post meta
woocommerce_product_tabsFilterInjects the Scientific Profile tab (priority 25)
wp_enqueue_styleFunctionLoads frontend.css only when the tab is rendered

Plugin-level filters

FilterArgumentsPurpose
phyto_grex_tab_titlestring $titleOverride the tab label
phyto_grex_fieldsarray $fields, int $product_idAdd, remove, or reorder displayed fields

Source Layout

FilePurpose
phyto-grex-registry.phpPlugin header, constants (PHYTO_GREX_VERSION, PHYTO_GREX_PATH, PHYTO_GREX_URL), WooCommerce dependency check, bootstrap
includes/class-phyto-grex-admin.phpPhyto_Grex_Admin โ€” meta box registration, render, and save
includes/class-phyto-grex-frontend.phpPhyto_Grex_Frontend โ€” product tab injection and Scientific Profile card output
assets/css/frontend.cssDefinition-list card layout + conservation status badge styles

PrestaShop Equivalent

This plugin is a WooCommerce port of phyto_grex_registry in the PhytoCommerce PrestaShop module suite. Both implementations store data under the same field names and expose the same “Scientific Profile” UI pattern, so shops migrating between platforms can transfer product metadata without data transformation.

View Full Source โ†— โ† Back to All Modules