Sidroprice lists

Documentation

WooCommerce

The Sidro plugin: sync, display next to the price and /cjenici/ on your domain.

  1. In Sidro: Data sources → WooCommerce · plugin → Create key. Copy the key right away.
  2. Download the plugin and install it: Plugins → Add New → Upload → Activate.
  3. WooCommerce → Sidro → Connection: paste the key and click Test connection.
  4. Status → Sync everything now.

Requirements: WordPress 6.2+, PHP 7.4+, WooCommerce 7.0+. HPOS compatible.

What the plugin does

  • Pushes the catalogue on every product change (in the background via Action Scheduler) and the full catalogue daily. Simple products and all variations; drafts and private products are not sent.
  • Pulls anchor prices hourly and stores them with the product.
  • Shows the anchor price under the price on product pages and listings (can be disabled), with the date and, for sales, the lowest price in 30 days. Shortcode: [sidro_sidrena_cijena] or [sidro_sidrena_cijena sku="KR-500"].
  • A /cjenici/ page on your domain listing all files; optionally serves the files themselves from your domain.
  • Product fields: unit, net quantity and special-sale name.

Without the plugin: REST API

  1. WooCommerce → Settings → Advanced → REST API → Add key, permissions Read (or Read/Write for instant updates via webhooks).
  2. In Sidro: Data sources → WooCommerce · REST API: shop URL (https), consumer key and secret.

Sidro then pulls the catalogue every morning. Display the anchor price with the widget.

Troubleshooting

  • 401 / key rejected: some hosts strip the Authorization header — Sidro retries with the key in the query; also check security plugins blocking /wp-json.
  • “did not return JSON”: a cache or CDN in front of /wp-json/ — exclude that path.