RecordToko
Sell your Discogs records in WooCommerce too, kept in step both ways.
Install in
Built for record shops and collectors who sell on Discogs and want their own webshop next to it – without keeping two inventories by hand.
RecordToko imports your Discogs marketplace inventory into WooCommerce and keeps the two in step. A record sold on Discogs goes out of stock in your shop; a record sold in your shop goes offline on Discogs. With the built-in Fair/Shop Scan module (off until you switch it on) you can also sell at a record fair or across the counter of a physical shop: scan the small QR sticker on the sleeve with your phone, tap Sold, and your webshop and Discogs follow.
Setup: see Installation. Every screen, setting and message: see the FAQ.
Overview
- Import your Discogs inventory from the inventory-export CSV, or fetch the export from Discogs inside wp-admin. Every record becomes a complete WooCommerce product: cover image, track list, label and catalogue number, media and sleeve condition, your notes, genres and styles as categories, stock and shipping weight.
- A mandatory dry run shows what will be created, updated or left alone before a single product changes.
- Price rules: a percentage or fixed adjustment of the Discogs price, an optional floor price, rounding, and hand-set prices that stay locked through every re-import.
- Two-way sync that understands copies: a Discogs sale lowers the shop stock by one within minutes; a paid shop order lowers the Discogs quantity, or sets a single-copy listing to Draft (reversible). A daily reconciliation repairs any drift.
- Nothing is deleted on Discogs by default, and RecordToko never raises a Discogs quantity. Sold is sold: the plugin never puts a record back on sale by itself.
- New Discogs listings in your shop within minutes (optional).
- Record details: condition and release ID on every product and, new in 0.7.0, the catalogue number – filled in daily for older linked products.
- Practice mode, on by default for both directions: everything the sync would do is logged and nothing changes until you switch it off.
- List on Discogs: create Discogs listings from shop products – always as Drafts first – with Discogs’ own price suggestions per condition.
- Orders dashboard: your latest Discogs and shop orders side by side, 30- and 90-day totals per channel, and your slowest movers.
- VAT tools for second-hand sellers: margin scheme with the mandatory mention per country, a margin report, purchase prices, a small-business exemption mode and a turnover monitor.
- Fair/Shop Scan (optional module): sell at a fair or in your shop by scanning QR stickers with your phone. No app store; works without a connection.
- Restore points: a daily snapshot of stock, price and status of every record linked to a Discogs listing, kept 14 days, restorable in one click.
- Every action is written to a change log, and the plugin stays well within Discogs’ rate limits.
Requirements
- WordPress 6.5 or newer and PHP 7.4 or newer.
- WooCommerce 8.0 or newer, installed and active. RecordToko uses WooCommerce’s background scheduler (Action Scheduler, which ships with WooCommerce) for imports and the sync.
- A Discogs seller account. A Discogs personal access token is needed for the sync, for “List on Discogs” and for Discogs orders on the Orders tab. A CSV import also works without a token, at Discogs’ lower rate limit (25 instead of 60 requests per minute).
- For Fair/Shop Scan: your shop on HTTPS, pretty permalinks (any setting other than “Plain” under Settings Permalinks; the Fair/Shop Scan page warns otherwise), a phone with a camera, and a label printer for the stickers (see “Why this printer”). Tested with an iPhone (Safari) and a Mac (Chrome).
How syncing works
The sync runs in the background and needs your Discogs access token; without one nothing is scheduled and the Sync tab says so.
- The order check (every 5 minutes by default): a Discogs sale lowers the shop stock by one copy, so a record cannot sell twice.
- The daily reconciliation compares your whole Discogs inventory with the shop and repairs differences. It catches sales made during practice mode, raises the shop stock when Discogs really holds more copies (added by you), and takes a record out of stock when you deleted its listing on Discogs – unless unusually many listings go missing at once: then a safety brake leaves the missing records alone and tells you. A product whose listing sold out is unlinked here, so it can be listed again when stock returns; raise its stock only after that, or this run sets it back to 0. It adds new listings the order check missed (up to 25 a day), and fills in missing condition, catalogue number and release ID on older products still linked to a Discogs listing: only missing values, never overwriting, not while “Practice mode — shop stock” is on, and not on a day the safety brake stopped the run.
- A shop sale (a paid order, a Fair/Shop Scan sale, a stock edit by hand, Products Bulk edit, or records added to or removed from an order in wp-admin) sets a single-copy listing to Draft (reversible) or lowers a multi-copy listing by one. A cancelled or refunded order puts a single-copy listing back on sale once the copy is really back in the shop.
- Sold in both channels at once: the first paid order wins and the Sync tab shows the conflict. Stock never goes below zero; RecordToko never cancels a Discogs order.
When the plugin changes a listing, your own details (notes, offers, location, weight, your own reference) go back to Discogs unchanged. More: see FAQ.
Fair/Shop Scan: selling at a fair or in your shop
Put a small QR sticker on each sleeve, next to your own price label. When a record sells at a fair or across your counter, scan the sticker with your phone and tap Sold: the shop stock goes down by one and RecordToko takes the Discogs listing offline, as after a shop sale. You never sell a record online that already left at a fair.
- The app, Scanner, is a web app served by your own shop (
/scanner/by default): no app store. It goes on your phone’s home screen, or in Chrome on a laptop. - Fair mode (the default): a scan only lowers the stock – no order, revenue or invoice. Shop mode: every scan also becomes a completed WooCommerce order (see FAQ).
- Who can scan: administrators and shop managers automatically, on every product. Anyone else, such as a helper at a fair, needs the capability
recordtoko_scan(for example via a role-editor plugin), and then sees and sells published products only, with no other admin access. The scan log records who scanned, kept 30 days: tell your staff. - Offline: scans wait on the phone and are sent later; each counts once.
- Your customer scans the same sticker with an ordinary phone camera and sees your Discogs listing of the record, or its release page once sold. Only your logged-in app turns a scan into a sale.
- The app never talks to Discogs itself, deletes anything on Discogs (unless you switched on deleting in RecordToko – the app then warns you), or shows or prints a price.
Printing stickers
Each sticker is a 29 × 26 mm PDF page for a 29 mm continuous roll: a QR code, “Artist – Title” and the grading, for example “VG+ / VG”. Never a price. Print a batch from the app’s Stickers tab, or one again from Search.
- iPhone: the ordinary print sheet; iOS takes the size from the PDF.
- Laptop: Chrome only. Chrome’s own print dialog prints exactly at 29 × 26 mm. Browsers that always use the Mac’s system print dialog (tested: Vivaldi) turn the sticker a quarter turn, and Safari shrinks it. The printer driver must offer a 29 × 26 mm paper size: see Installation.
Why this printer
Fair/Shop Scan was built and tested with the Brother QL-820NWB (the QL-820NWBc variant):
- No Brother software – the hard requirement. Printers that need their maker’s app were ruled out: one more app to keep working is exactly the chore that makes people stop printing labels. iPhone and Mac print from their ordinary print dialog (the Mac once the driver offers the 29 × 26 mm size).
- Wi-Fi, the roll inside the printer and an automatic cutter for every sticker.
- Thermal printing: no ink or toner, nothing that smudges or flakes off a sleeve.
- At a fair too: on a battery (sold separately), with your phone’s hotspot as its network, you print a replacement sticker on the spot.
The roll and other printers: see FAQ.
Third-party libraries
Fair/Shop Scan bundles these libraries:
- chillerlan/php-qrcode 4.4 – MIT licence. Creates the QR codes.
- chillerlan/php-settings-container 2.1 – MIT licence. Used by php-qrcode.
- FPDF 1.9 – FPDF licence (free use, modification and distribution). Creates the sticker PDF.
- jsQR 1.4 – Apache License 2.0. Reads QR codes from the camera in browsers without a built-in QR reader (such as Safari on the iPhone).
The bundled PHP copies are prefixed with RecordToko’s own namespace so they cannot clash with other plugins; licence files are included.
Privacy
- Stored on your site: your Discogs access token, settings, a change log, and per product the Discogs link and record details. Fair/Shop Scan adds a scan log (which scan, which product, which user, when), kept 30 days so a scan never counts twice, the date a sticker was printed per product, and each user’s app language. No customer data.
- On the phone: the app’s scan queue, the Today list (one week) and short product details for offline use, in the browser’s own storage. The camera image is decoded in the browser; it is never stored or sent anywhere.
- Sent where: your server talks only to Discogs – the API at api.discogs.com and, for cover images, i.discogs.com. A customer who scans a sticker is redirected to discogs.com or your shop; the redirect sets no cookie and keeps no record of the scan. The “Listen” tab (on by default; Settings tab) makes visitors’ browsers load YouTube preview images – see External services.
- Privacy policy: RecordToko suggests text for your privacy policy (in wp-admin: Settings Privacy, policy guide) about the YouTube previews, the QR redirect, the staff scan log and that no customer data goes to Discogs.
- No telemetry: no usage data is collected or sent.
- Uninstalling removes the plugin’s settings, your access token, its caches, the change log and the Fair/Shop Scan data (kept while the old separate plugin “RecordToko Fair Scan” is still installed, because it shares it). Your WooCommerce products stay, including the Discogs details stored with each product.
Discogs API usage and disclaimer
This application uses Discogs’ API but is not affiliated with, sponsored or endorsed by Discogs. ‘Discogs’ is a trademark of Zink Media, LLC.
Responses from the Discogs API are cached for at most 6 hours. The details an import writes into products (cover image, track list, label, catalogue number, genres/styles) stay in your shop, each product page with the “Data provided by Discogs” notice and a link to the release, as the Discogs API terms of service require.
You use the API with your own token, so the Discogs API Terms of Use apply to your shop too: see the FAQ “What do the Discogs API terms mean for my shop?”.
External services
Discogs API (api.discogs.com) and Discogs images (i.discogs.com), a service operated by Zink Media, LLC (“Discogs”). Required for the plugin’s core functionality: importing your inventory and keeping it in step with your shop.
What is sent and when:
- Import and preview: the release IDs from your inventory, to fetch catalogue data (title, artist, label, catalogue number, track list, genres, styles, videos); records that left the shop before are checked on Discogs first. The cover image of each new product is downloaded from i.discogs.com.
- “Fetch from Discogs”: a request for your own inventory export, and its download.
- Sync (from the moment you save an access token, also in practice mode): every few minutes your recent Discogs orders are read – and your newest For Sale listings when the automatic import is on and “Practice mode — shop stock” is off – and once a day your whole inventory. Changes are only sent after you switch off “Practice mode — Discogs”: when a record sells in your shop its listing is set to Draft or its quantity is lowered; prices are sent when you choose to push them; “List on Discogs” creates Draft listings and reads Discogs’ price suggestions. Your Discogs username is looked up once with the token.
- Likewise only after that: a cancelled or refunded order puts a listing back on sale; with “Delete the Discogs listing instead of setting it to Draft” on, a sale deletes the listing; “Publish selected drafts (For Sale)” publishes your Drafts.
- When you use these screens: the release search on the List on Discogs tab sends the words you type to Discogs’ database search; the Orders tab reads your latest Discogs orders.
- Authentication: your Discogs personal access token is sent with every API request.
- Nothing else is sent: no customer data, no telemetry.
Service information: Discogs Terms of Service, Discogs Privacy Policy, Discogs API Terms of Use.
YouTube (img.youtube.com, www.youtube-nocookie.com), operated by Google LLC, for the “Listen” tab on product pages. That tab is on by default; switch it off on the Settings tab (“Listen tab”). While it is on and a product has videos, the tab shows preview images from img.youtube.com (lazy-loaded): the visitor’s browser loads them when the tab’s content is shown – in most themes when the visitor opens the tab, in themes that show all tabs at once when the page is viewed. A video loads from youtube-nocookie.com only after the visitor clicks it. Your server sends nothing to YouTube. YouTube Terms of Service, Google Privacy Policy.
discogs.com, for customers who scan a QR sticker (Fair/Shop Scan only). The sticker leads to an address on your own shop, which redirects the customer’s browser to the record’s page on www.discogs.com (or to your shop). Your server sends nothing to Discogs for this, and the redirect sets no cookie.
Fair/Shop Scan makes its QR codes and PDFs on your own server and decodes the camera image in the browser: no external service or CDN is used for that.
Written by Joobi from the project's own listing. See the source page
0.7.0 – 2026-11-21
- New: Fair/Shop Scan, a module inside RecordToko (formerly the separate plugin “RecordToko Fair Scan”). Off by default; switch it on under WooCommerce Discogs Sync Settings “Selling at a fair or in a shop”. A phone app (Scanner, at /scanner/ on your shop, installable on the home screen, works offline) sells a record by scanning the QR sticker on its sleeve: the shop stock goes down and RecordToko takes the Discogs side, as with a webshop sale. Customers who scan the same sticker land on the record’s Discogs listing. Print stickers (29 × 26 mm) from the app.
- Fair/Shop Scan settings (WooCommerce Fair/Shop Scan): mode Fair (a scan only lowers the stock) or Shop (each scan is also a completed order), the app address, and who can scan (shop managers and administrators, on every product; others with the capability recordtoko_scan, on published products only). A brake of 120 sales or undos per user per minute; the app’s queue waits and sends the rest later.
- If the separate plugin “RecordToko Fair Scan” is still active, the module stays off and says so; deactivate the plugin and switch on the module. Stickers, settings and scan history carry over, the app keeps its address.
- New: imports also store the catalogue number on every product (media and sleeve condition and release id were already stored). The daily reconciliation fills in missing condition, catalogue number and release id on older products that are still linked to a Discogs listing, from the inventory it already reads: only missing values, never overwriting, not while “Practice mode — shop stock” is on, and not on a day the safety brake stopped the run.
- The QR and PDF libraries are bundled under RecordToko’s own prefix, so they cannot clash with other plugins.
0.6.2 – 2026-11-20
- New: with “Add new Discogs listings to the shop automatically” on, every order check (every 5 minutes by default) also looks at your newest For Sale listings on Discogs and adds the new ones to the shop: up to 10 per check, oldest first, each checked on Discogs right before it is added, exactly as before. A record you put up for sale is in the shop within minutes, a batch of a hundred within the hour. Before, new listings waited for the daily reconciliation and came in at most 25 a day.
- The quick check costs one Discogs request when nothing is new and writes to the activity log only when it adds something or fails. A record that fails three checks is left to the daily reconciliation, so it cannot flood the log. The quick check pauses while a manual import runs, after a reconciliation that hit its safety brake and in practice mode for the shop (the daily run still reports what would be added).
- The daily reconciliation keeps adding what the quick check cannot see (up to 25 a day), and the two never run at the same time, so a record is never created twice.
- The Sync tab shows when the last run that found new listings took place.
0.6.1 – 2026-10-30
- Fix: when the plugin changes a Discogs listing (taking it offline after a shop sale, lowering the number of copies, pushing a new price, putting it back on sale), it now sends back all of the listing’s own fields exactly as Discogs holds them: notes, whether offers are allowed, location, weight and format quantity. Before, these were left out of the change, and Discogs may clear fields that are left out. Only matters with practice mode for Discogs switched off.
- Fix: a listing’s own reference (external ID) is no longer replaced by the shop product ID; only a listing without one gets the product ID.
- Fix: listing notes go back to Discogs as you typed them. The Discogs API returns notes HTML-escaped (for example “->” as “->”); sending that text back could store the escaping twice, a little worse with every change.
- New: after every change to a listing the plugin reads it back. If Discogs changed any of your own fields anyway, the log gets a “sync-attention” line with the old values, so you can put them back by hand.
- Fix: records added by the automatic import of new Discogs listings no longer show escaped characters such as “->” in the notes of their product description.
0.6.0 – 2026-09-24
- Fix: records imported by 0.4 or earlier (always 1 copy in the shop) no longer stay at 1 when Discogs holds more copies. The first reconciliation counts only real evidence as shop sales: shop orders of that record that were never booked, and an empty shop stock that no order or Discogs sale explains. The shop then follows the Discogs quantity. A shop sale of a listing that was never read does that first read on the spot.
- Fix: sites that ran 0.5.0 or 0.5.1 are repaired once on update. Records untouched since then get their phantom “shop sales not yet reflected on Discogs” removed. Records that changed since keep every open sale and are listed in an admin notice for a count by hand. Every step is written to the log, and an interrupted repair continues on the next admin page.
- Fix: every way a record leaves the shop by hand is booked now: the first hand edit (also after a relist), Products Bulk edit, records added to or removed from an existing order in wp-admin, and orders that were still unpaid when you updated. Before, a record sold at home could be put back in stock by the next reconciliation.
- Fix: a cancelled or refunded order only puts a Discogs listing back on sale when the copy is really back in the shop; a multi-copy listing that went offline because every copy sold stays offline, with a note to relist it by hand at the right quantity.
- Fix: a record relisted from the shop after it sold out on Discogs is no longer set to 0 and unlinked by its old, sold listing, and a late Discogs order for the old listing no longer lands on it.
- Fix: an import never raises the stock of an existing record any more (an export can be older than the last reconciliation, and would put copies sold on Discogs back); the daily reconciliation raises it when Discogs really holds more. An import no longer creates products for sold listings, and a record that was in the shop before and left it is only created again after Discogs confirms, live, that it is for sale — with any shop sales that were still open kept out.
- Fix: WooCommerce’s “Duplicate” no longer copies a record’s Discogs link (the record data stays). Records listed from the shop get stock management turned on, so the shop can follow Discogs.
- Fix: restoring a restore point never raises the stock of a record linked to Discogs (copies may have sold since); prices, statuses and unlinked products are restored as before. Raise a linked record by hand if copies came back.
- Fix: “Publish selected drafts” skips a record that sold since its draft was made, and records linked from the shop without stock management (before 0.6.0) get stock management once, so a sale on Discogs takes them out of stock.
- Fix: the VAT margin report no longer crashes in a month with a refund, and refunds (per line or for the whole order) now lower the margin sale; the turnover monitor and the Orders tab count refunds too.
- Security: the Discogs token is no longer sent back to the browser on the Settings page (leave the field empty to keep it), a value that is not a Discogs token is refused, and a new token makes the plugin look up the Discogs account again.
- New setting “Add new Discogs listings to the shop automatically” (off by default). Records put up for sale on Discogs after your last import are added during the daily reconciliation, at most 25 a day, each one checked on Discogs right before it is added. Records you delete from the shop and records you listed from the shop are skipped. Listings a manual import failed on are retried. Two failures in a row, a Discogs rate limit or a reconciliation that hit its safety brake stop it for the day. The Sync tab shows how the last run went. Practice mode only logs what would be added.
0.5.1 – 2026-09-24
- Reconciliation now finds linked records whose listing has disappeared from your Discogs inventory, checks each one, and sets stock to 0 + unlinks it when Discogs confirms the listing is gone. A safety brake leaves everything untouched when unusually many listings are missing at once.
- A listing that no longer exists on Discogs is logged as “listing gone” instead of an error when a shop sale tries to reach it; the link is archived so the record can be listed again.
- New setting “Treat Draft/Expired listings as sold out” (off by default).
- New admin warning when the reconciliation hit the safety brake.
0.5.0 – 2026-09-24
- Copies: the sync reads the quantity of every Discogs listing; a Discogs sale lowers the shop stock by one instead of to zero; a shop sale lowers the Discogs quantity where Discogs accepts it and otherwise asks you to (single-copy listings are still set to Draft).
- Sold is sold: imports and the daily reconciliation never raise the stock of a record you sold or took off sale in the shop; stock only rises when the number of copies on Discogs rises. Existing shop stock is taken as the truth on the first run after this update.
- Listings that sold out on Discogs are unlinked from the product, so a returned or restocked record can be listed again.
- Practice mode split per direction (Discogs writes / shop stock), with an admin-wide warning while Discogs sales are not applied and a list of shop sales not yet reflected on Discogs.
- Daily restore points (stock, price, status; 14 days) with one-click restore and CSV download.
- Imports understand both Discogs inventory export formats, including the newer one with condition codes.
- Fix: products listed from the shop without an RTK SKU are now found by the sync.
0.4.1 – 2026-08-26
- The “Listen” tab (YouTube previews from the Discogs release) can now be switched off under Settings; it stays on by default.
- Neutral wording in two code comments.
0.4.0 – 2026-08-26
- Bulk listing: queue Draft creation for every listable record in one click — processed in the background, one record at a time, within Discogs’ rate limits; records without a linked release are skipped and logged.
- New Orders tab: your latest Discogs and shop orders combined in one read-only overview, with 30/90-day order counts and revenue per channel.
- Slow movers: the ten records that have been in stock the longest, with their age.
- New FAQ: which marketplace next? Voting happens in the support forum (eBay is the frontrunner; Vinted has no open API).
0.3.0 – 2026-08-26
- New “List on Discogs” tab: create Discogs listings from shop products — always as Draft first, with a review queue, per-condition price suggestions from Discogs, a built-in release search for hand-added records, and separate deliberate publishing (per record or in bulk).
- Price lock: a price you edit by hand is kept through every re-import; unlock it on the product page to hand control back to the price rule.
- Product editor: media/sleeve condition fields and a Discogs release link on every product.
- Imports now store the release id and conditions, so listing your stock needs no re-import.
0.2.0 – 2026-08-26
- Two-way sync: Discogs orders set shop stock to 0 within minutes (configurable poll); paid shop orders set the Discogs listing to Draft (reversible), with automatic relisting on cancellation/refund and an optional delete mode.
- Daily reconciliation between your full Discogs inventory and shop stock, repairing any drift.
- Practice mode (default ON): the sync logs everything it would do without writing anything, until you switch it off.
- Conflict handling: stock never goes negative; double sales are logged prominently with clear advice — RecordToko never cancels a Discogs order itself.
- Per-record “do not offer on Discogs” switch in the product editor.
- Optional price push from shop to Discogs (off by default).
- VAT tools: margin-scheme mode with the mandatory per-country mention (product page + order confirmation), purchase-price field, margin report (period totals with carry-over, and per-item), exempt mode for small-business schemes, turnover monitor and a five-country reference guide.
- Listen tab with YouTube previews from the Discogs release, shipping-weight import (grams, converted to your store unit) and three new price-rule modes.
0.1.1 – 2026-08-25
- Strict price validation: comma-decimal prices in a hand-edited CSV are now rejected with a clear error instead of being silently misread.
- Full uninstall cleanup: options (including your Discogs token), cached data and the log table are removed when the plugin is deleted.
- Progress bar shows correct totals immediately after confirming an import.
- Products not created by RecordToko are never overwritten on a SKU collision – they are skipped and logged.
- Clear admin notice when WooCommerce is missing; requires WordPress 6.5+ for the plugin-dependency system.
- Many smaller hardening and polish fixes from a full end-to-end test round.
0.1.0 – 2026-08-23
- Initial release: CSV and API import, Discogs enrichment, price rules, mandatory dry-run preview, change log.
- Import product weight (grams, converted to the store’s configured weight unit) and the “counts as” format quantity from the inventory CSV; an existing hand-set weight is preserved when a listing has no weight value.
Follow this listing's changes (Atom feed)