Glami.ro integration for WooCommerce: a product XML feed (glami_feed.xml, regenerated hourly) and the Glami tracking pixel (PageView, ViewContent, AddToCart, Purchase). A rewrite of the older nsu-glami plugin, with a status panel, WP-CLI commands and a consent hook.
SHOP/SHOPITEM XML feed built from every published simple and variable product, one item per visible variation. Written via a temp file and atomic rename, so the live feed is never half-written.wp_head; PageView everywhere, ViewContent on single products and mapped category pages, AddToCart on form submit and AJAX add-to-cart, Purchase once per order on the thank-you page.manage_woocommerce.wp-content/uploads/ws-glami/Updates are self-hosted: the plugin reads its Update URI header and checks https://websqu.ad/updates/ws-glami.json. New versions show up in the standard WordPress updates screen.
Stored as one option, ws_glami_settings. Pixel: enabled, API key, tracker host, locale. Feed: enabled, location (root or uploads), optional product-tag filter, manufacturer, CPC, size and colour attribute slugs, size system, backorder handling and delivery days, variable-product note, and the category map.
The category map is one mapping per line, shop-category-slug | Glami.ro | Category | Subcategory. Products without a mapped category are skipped; when several categories match, the deepest one is used.
wp ws-glami generate — build the feed now.wp ws-glami status — print the last run report and feed state.ws_glami_pixel_enabled — filter; return false from a consent plugin and no pixel is printed.wsglami_generate_feed — the cron hook hourly generation runs on.Deactivate and delete nsu-glami, install WS Glami, re-enter the API key and brand, review the category map (defaults are baked in, not copied over), then generate the feed. Activation clears nsu-glami's leftover cron events and options. The feed URL at /glami_feed.xml stays the same.
websquad — brandsquad OÜ, Estonia. Support: [email protected]