WP Manifestindependent plugin directory
manifest / ecommerce / tt24-vehicle-fit1

TT24 TecDoc Tools (TecAlliance)

Importador TecAlliance unificado (PRO): exact match, OEM/IAM con separador, PDFs/Imágenes, fitment JSON y metacampos TT24.

by TimeTec24 · github.com/ash120899/tt24-vehicle-fit1

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/ash120899/tt24-vehicle-fit1/archive/refs/heads/vehicle-fit.zip

TT24 Vehicle Fit – PRO-TEC (refactor DE)

Versión: 1.4.0 Fecha: 2025-12-12

Novedades

  • What's new in 1.4.0

    • Minimal matching path: only tt24_article_number (TecAlliance ArticleNumber) and _sku are queried before updating.
    • Linked Ref safe-fill limit is read from the importer settings (default 50 per article).
    • Preview UI in German: badges (PRIMÄR, REFS, KONFLIKT) and safe-fill checkbox "Auch verknüpfte Ref-Produkte…".
    • Deterministic tie-break for multiple primaries (status priority + latest post date) with explicit German summary.
    • Safe-fill only fills empty technical metas (supplier ID, UID, GTIN, OEM/IAM, compat, PDFs, condition) and never overwrites commercial content nor an existing tt24_article_number value.
    • Monthly OEM/IAM refresh (día 21) can optionally safe-fill linked Ref products via the same resolver and limit, controlled by the admin toggle "Ref-Produkte (Safe-Fill) ebenfalls synchronisieren".
    • Nota: el metacampo tt24_article_number es el ArticleNumber oficial de TecAlliance; tt24_tecdoc_article_id permanece para almacenar el legacy ID.
  • CPT de Logs: TT24 Sync Logs en el admin para ver cada corrida (resumen, contexto y metadatos).

  • Modo pro en CLI:

    • --mode=merge|replace
    • --dry-run=true|false
    • --verbose=true|false
    • --logfile=/ruta/al/log
    • --notify=email@dominio.com
    • --batch=<n>
  • Sincronización confiable de los 4 metabox: tt24_oem_list, tt24_iam_list, tt24_oem_norm, tt24_iam_norm.

  • Normalización A–Z/0–9 y limpieza de marca para OEM/IAM.

  • Auto-CRON mensual: día 21 a las 02:00 (hora del servidor), con reprogramación exacta al siguiente mes.

CLI

Uno por ID:

wp tt24 oemiam --id=41664 --fresh=true --mode=replace --verbose=true --logfile=$(wp eval 'echo WP_CONTENT_DIR;')/uploads/tt24-logs/sync-$(date +%F).log

Por SKU:

wp tt24 oemiam --sku=130332 --fresh=true --mode=replace

Bulk:

wp tt24 oemiam --all --batch=300 --fresh=true --mode=replace --notify=ops@tudominio.com --logfile=$(wp eval 'echo WP_CONTENT_DIR;')/uploads/tt24-logs/bulk-$(date +%F).log

Dry-run (sin guardar):

wp tt24 oemiam --id=41664 --fresh=true --dry-run=true --verbose=true

Cron del sistema (opcional)

0 2 21 * * /usr/bin/wp tt24 oemiam --all --batch=300 --fresh=true --mode=replace --notify=ops@tudominio.com --logfile=/ruta/a/wp-content/uploads/tt24-logs/cron-$(date +\%F).log --path=/ruta/a/wordpress > /dev/null 2>&1

Logs en Admin

Menú: TT24 Sync Logs → verás cada ejecución con:

  • Totales procesados, completados y errores
  • Tiempo (segundos)
  • Parámetros de contexto (modo, batch, fresh, log file)
  • Contenido completo del resumen y contexto

Notas

  • El build mantiene el mismo slug de plugin, por lo que al subir el ZIP WordPress permite “Reemplazar” sin desinstalar.
  • Si quieres que un run no modifique datos: usa --dry-run=true.
  • Para estado-verdad mensual, usa --mode=replace.