| 开发者 | original69 |
|---|---|
| 更新时间 | 2026年11月22日 20:50 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/scanner/ by default): no app store. It goes on your phone's home screen, or in Chrome on a laptop.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./wp-content/plugins/recordtoko, then activate it on the "Plugins" screen. WooCommerce must be installed and active.RTK-<Discogs listing ID>; the name "Artist – Title (Format, Year)"; a description with label and catalogue number, media and sleeve condition, your notes and a track list table; the cover image; genres and styles as categories; stock from the number of copies; the record details (condition, catalogue number, release ID); and the shipping weight from the CSV's weight column (grams, converted to your store's weight unit; a hand-set weight is kept when the listing has none). Listings that are not "For Sale" arrive as drafts. Every product page carries the "Data provided by Discogs" attribution required by the Discogs API terms.
Re-importing is safe: records are matched by SKU, so you get updates, not duplicates. Price, status and categories are refreshed; stock is never raised by an import (an export can be older than the last reconciliation). The product name, descriptions, any photo you added yourself and a price you set by hand are left untouched. Products that RecordToko did not create are never touched, even if their SKU matches.
Practice mode
The sync starts in practice mode, on by default and separate per direction:
define( 'RECORDTOKO_DISCOGS_TOKEN', 'your token' ); The Settings tab then shows "Set in wp-config.php"./scanner/ by default; 3 to 40 lowercase letters, digits or dashes, not an address WordPress, WooCommerce or one of your pages already uses. After a change every earlier address (also the very first one, /beursscan/) redirects to the new one, so an installed home-screen app still opens; add it to the home screen again from the new address when convenient, so it also starts offline;https://your-shop/scanner/. No app store, no developer mode.
lp -o media=Custom.29x26mm -o CutMedia=EndOfPage qr-stickers.pdf, which passes the size itself and cuts after every sticker.lp, 7-inch, 10-inch and 12-inch. RecordToko does not create this attribute: without it every filter shows all records. Developers can point it elsewhere with the filters rtfs_format_taxonomy and rtfs_format_groups./scanner/ opens the app (after logging in), and /beursscan/ redirects to /scanner/. Then do one real scan and undo it./beursscan/ is redirected, but it does not work offline: let any waiting scans in it finish sending, then delete it and add the app again from /scanner/.
The app's texts now come from RecordToko's own translations. Until a language pack for your language exists, the app is in English. To keep your language, put recordtoko-<locale>.mo (for example recordtoko-nl_NL.mo) in wp-content/languages/recordtoko/.On discogs.com/settings/developers: click "Generate new token" and paste the token into "Access token" on RecordToko's Settings tab (see Installation).
No. This application uses Discogs' API but is not affiliated with, sponsored or endorsed by Discogs. 'Discogs' is a trademark of Zink Media, LLC.
You use the Discogs API with your own token, so its API Terms of Use apply to you. In short, as we read them (not legal advice):
No. The plugin's server side only talks to Discogs (api.discogs.com, and i.discogs.com for cover images) to fetch your own inventory and release data. It sends no telemetry and shares no data with any other third party. See "Privacy" for what a visitor's browser loads.
Only when you let it, and never by surprise. The sync starts in practice mode and logs what it would do without touching anything. Once you switch practice mode for Discogs off, a paid shop order (or a Fair/Shop Scan sale) sets a single-copy listing to Draft or lowers the quantity of a multi-copy listing, a cancelled order brings it back, and - only if you enable it - shop price changes are pushed to your listings. Records marked "Do not offer this record on Discogs" are never touched, and RecordToko never cancels a Discogs order. New listings are only created from the "List on Discogs" tab, by you, and always as Drafts first.
Not by default. A sale sets a single-copy listing to Draft (reversible) or lowers the quantity. Deleting instead is a separate setting on the Sync tab ("Delete the Discogs listing instead of setting it to Draft"), off by default, because a deleted listing cannot be restored. Fair/Shop Scan warns you on its settings page and in the app while that setting is on.
A safety net, on by default and separate per direction: "Practice mode — Discogs" never writes to Discogs; with "Practice mode — shop stock" Discogs sales and the daily reconciliation do not change your stock. Every action it would have taken is logged with a "(practice mode)" marker. When and how to switch it off: see Installation.
No. Whenever the plugin changes a listing (taking it offline, lowering the quantity, pushing a price, putting it back on sale), it sends back all of the listing's own fields exactly as Discogs holds them: notes, whether offers are allowed, location, weight and format quantity. Your own reference (external ID) is kept. Afterwards the plugin reads the listing back; if Discogs changed any of your fields anyway, the log gets a "sync-attention" line with the old values so you can put them back by hand.
Yes. Tick "Do not offer this record on Discogs" in the product editor and the sync will never create, update or pause a Discogs listing for that record.
Normally Discogs is the source and your price rule sets the shop price. A price you edit by hand in WooCommerce is locked automatically and survives every re-import. If you deliberately edit prices in the shop and want Discogs to follow, switch on "Also push shop price changes to Discogs" on the Sync tab (off by default).
Yes. RecordToko reads the number of copies on each Discogs listing and keeps the shop stock in step: one Discogs sale is one copy less in the shop, one shop sale is one copy less on Discogs. Discogs' API does not officially support lowering a quantity; when Discogs does not accept it you get a clear reminder to lower it by hand, and the daily reconciliation notices when you have. Returned records or extra copies: raise the quantity on Discogs and the shop follows at the next daily reconciliation. Raising only the shop stock does not last for a record linked to Discogs: the reconciliation sets it back. RecordToko never raises a Discogs quantity itself. A multi-copy listing that went offline because every copy sold stays offline after a cancelled order, with a note to relist it by hand at the right quantity.
Only when you tick "Add new Discogs listings to the shop automatically" on the Sync tab (it needs one import on the Import tab first). Every order check (every 5 minutes by default) then also looks at your newest For Sale listings on Discogs and adds new ones: up to 10 per check, oldest first, each checked on Discogs right before it is added, exactly as an import adds it (price rules, photo, track list, number of copies). A batch of a hundred is in within the hour. This quick check costs one Discogs request when nothing is new and logs only when it adds something or fails; a record that fails three checks is left to the daily reconciliation, which adds what the quick check could not see (up to 25 a day). The quick check pauses while a manual import runs, after a reconciliation that hit its safety brake, and in practice mode for the shop stock. Records you deleted from the shop, or listed from the shop, are never brought in. Without the setting, new listings come in with your next import.
They are updated, not duplicated: products are matched by SKU, which holds the Discogs listing ID. What is refreshed and what is kept: see Installation, "The first import".
The unmodified inventory export from Discogs (Marketplace → Export inventory), not re-saved in a spreadsheet - see Installation.
Because an import can create or change hundreds of products at once, the plugin always shows you what will be created, updated and left alone - and any errors - before anything is written. You confirm explicitly before the real import runs.
The plugin throttles itself well below the official limits and pauses automatically when Discogs asks it to. Large imports simply take a little longer; a personal access token more than doubles the speed (60 instead of 25 requests per minute).
Tools to list records from your shop that are not on Discogs yet. Needs your access token.
A read-only overview; managing orders stays on Discogs and in WooCommerce. "Recent orders": your newest Discogs and shop orders in one list - date, channel, buyer, items, total, status ("Refresh Discogs orders" fetches the latest; without a token only shop orders). "Insights": orders and revenue per channel over the last 30 and 90 days, refunds included. "Slow movers": the ten records in stock the longest, with their age.
Yes, on the VAT tab. It is a bookkeeping aid, not tax advice.
In the General panel, under "RecordToko": for records linked to Discogs "Do not offer this record on Discogs", a link to the listing, and "Price locked" (set automatically when you edit the price by hand; untick to let the price rule take over again); for every product "Media condition", "Sleeve condition", "Discogs release ID" (links the record to a Discogs release for listing and enrichment), "Purchase price" (for the margin report) and "Margin-scheme item (second-hand, bought without deductible VAT)".
When shop-stock practice mode is on, when shop sales are not reflected on Discogs yet, and when the daily reconciliation hit its safety brake. Each notice links to the Sync tab.
Your shop on HTTPS with pretty permalinks, a phone with a camera (tested: iPhone with Safari), and for the stickers a label printer that prints a 29 × 26 mm page - tested with the Brother QL-820NWB and its 29 mm DK-22210 roll. No app store, no extra service: the app is served by your own shop. Setup: see Installation.
No. A customer's camera only follows the address to Discogs or your shop. Only a logged-in user with the recordtoko_scan permission, in the app, can register a sale.
In Fair mode (the default) a scan only lowers the stock. No order, revenue or invoice is created: fair sales do not appear in WooCommerce orders, on RecordToko's Orders tab or in the VAT margin report. In Shop mode every scan becomes a completed WooCommerce order for one copy at the record's shop price, with the order note "Fair sale". WooCommerce lowers the stock itself, and the sale counts in your orders and reports. Taxes are calculated like a normal order (the order has no address, so WooCommerce uses the shop's base address), so the total is the shop price also when you charge normal VAT; products under the margin scheme or exemption carry no VAT. The order has no customer and no payment method, and you cannot enter the price actually agreed in the app. Undoing the scan cancels the order. WooCommerce's "New order" e-mail is not sent for these orders. The app shows "Each scan is recorded as an order (setting)." at the top. Either way the Discogs listing follows.
If you sell as a business you will normally have to keep your own records of every sale (for example date, price and how it was paid; under the margin scheme also the purchase price). What exactly is required differs per country - ask your accountant. In Fair mode the app keeps none of this: not in WooCommerce, and not on the phone beyond a week. Shop mode records an order per scan, but at the shop price, not necessarily the price you agreed. This is general information, not tax advice.
Yes. Give their WordPress user (or role) the capability recordtoko_scan with a role-editor plugin. Such a helper sees and sells published products only (no drafts or private products) and gets no other admin access. Administrators and shop managers can scan automatically, on every product; the Fair/Shop Scan settings page stays for shop managers. Every scanner logs in with their own account, and the scan log keeps for 30 days who scanned what: tell your staff. The server accepts at most 120 sell and undo requests per minute per user; above that it answers with HTTP 429 (too many requests) and the app's queue simply sends later. No scan is lost.
Open the Today tab. Your sales are grouped per customer ("Customer 4 · 14:32") with their records underneath, without amounts. One record back: tap "Undo" next to it and confirm "Put this record back on sale?". The whole sale back: tap "Undo whole sale" and confirm. Undo works without a connection too; it then waits in the queue like a sale.
Yes. Every scan goes into a queue on the phone first:
The sticker holds a short address on your own shop: https://YOUR-SHOP/Q/<code>, where the code is the product number. A customer who scans it with an ordinary phone camera lands on:
Yes. The address does not change when you change the app address or update RecordToko. Once Fair/Shop Scan has been on, it also keeps working after you switch it off, as long as RecordToko is active, the product exists and permalinks are not "Plain".
English, plus every language RecordToko has a translation for on your site. With more than one, a language button appears at the top right (for example "EN | NL"). The choice is saved for your user account only; your shop and wp-admin do not change. Translations are read from wp-content/languages/recordtoko/ first (your own files, never touched by updates), then from the language packs in wp-content/languages/plugins/.
The shop must run on HTTPS: browsers only give a web page the camera over HTTPS. Some servers and security plugins also send the header Permissions-Policy: camera=(), which forbids every page of your site to use the camera. Chrome, Edge and other Chromium browsers then block the camera without asking; Safari on the iPhone ignores the header. The app shows "The shop blocks the camera (Permissions-Policy camera=()). Set it to camera=(self) in the server settings." Change camera=() into camera=(self) where the header is set - often .htaccess, the server configuration or a security plugin - and keep the rest of the header. camera=(self) lets only your own site use the camera.
If the browser itself refused the camera ("Camera not allowed. Allow the camera for this site in the browser settings, then tap Start camera."), allow it for your shop in the browser (usually via the icon at the left of the address bar), reload, and tap "Start camera".
The QR code (15.5 mm, large enough for a customer's phone to read it from a little distance); under it, in small bold type, "Artist – Title" on one line (shortened with "…" when too long), so you can match a stack of stickers to the right sleeves; and the grading as "media / sleeve", for example "VG+ / VG" or "NM / Generic". Never a price: put the sticker next to your own price label. Records that already have a label only need a QR sticker added. How to choose and print a batch: see Installation, "Printing your first stickers".
Damaged or lost: tab Search → tap the record → "Print sticker". On a phone the print sheet opens at once, because the app already fetched the sticker while the card was open; this works at a fair too, with the printer on battery and your phone as hotspot. Several copies of the same record share one QR code: print the sticker as many times as you have copies. Every scan counts as one copy.
After "Print (…)" the iOS share sheet opens: choose Print, then the printer. If fetching the stickers took a moment, a "Print sticker" button appears first - tap it. iOS takes the 29 × 26 mm size from the PDF, also for a stack of stickers. Keep the app open and the phone unlocked while printing. Printing from Android phones is untested.
The stickers open as a PDF in a new tab (allow pop-ups for your shop). Browsers that always print through the Mac's system print dialog (tested: Vivaldi) turned the sticker a quarter turn, also in a square 29 × 29 mm test, so the shape stays 29 × 26 mm. Safari shrinks it. Chrome's own print dialog prints it exactly, provided the driver offers that paper size (see Installation). Other browsers and Windows are untested.
No, but it is the only printer tested. Its roll, the DK-22210, is 29 mm continuous paper, so the PDF sets the sticker length (26 mm); about 1 mm is lost at a cut edge, so the QR code and text stay clear of the ends. At 300 dpi the bold text stays sharp. Other AirPrint label printers with a 29 mm continuous roll may work but are untested: print one sticker first and check that it scans.
Check that Fair/Shop Scan is switched on, that the old separate plugin is not active and that permalinks are not "Plain". Then go to Settings → Permalinks and click Save once.
"RecordToko Fair/Shop Scan needs WooCommerce and its QR and PDF libraries. Reinstall RecordToko from wordpress.org." means files are missing: reinstall the plugin.
Look at the warnings at the top of the app or on the Fair/Shop Scan page. Discogs is only updated when RecordToko has an access token, "Practice mode — Discogs" is off and "Follow shop sales on Discogs" is on. The Sync tab's activity log shows what RecordToko did with each sale.
The orange "… waiting for a connection" button: check the phone's connection and tap it. If the app says you are logged out, tap "Log in": your scans are kept.
A half-sent print job may be stuck, and the printer then refuses everything. Switch the printer off and on, cancel the job (on the iPhone: app switcher → Print Center), and print again. Keep the app open and the phone unlocked while printing.
Tiny from a laptop: the print dialog used the driver's default label size - set up the 29 × 26 mm paper size (see Installation, "Setting up Chrome"), or print from your phone. Turned a quarter turn: you printed from a browser other than Chrome, or through the system dialog. Centred and shrunk: you printed from Safari on the Mac. Use Chrome's own print dialog.
The sticker font knows Western European characters only; other scripts (for example Japanese or Cyrillic) print as "?". The QR code itself is unaffected.
Older products may miss these details; the daily reconciliation fills them in for records still linked to a Discogs listing (not in practice mode for shop stock). You can also set the conditions in the product editor.
Maybe: eBay is feasible (with your own free eBay developer keys), Vinted has no open API. Ask for it in the support forum; the next channel follows demand.