Blog · Ghid ·
Shopify: cum să publicați informații și condiții fără o aplicație
Aflați cum să publicați o pagină „Informații și condiții” pe Shopify, să adăugați JSON-LD și să creați un link către un fișier SO4AG găzduit atunci când nu îl puteți plasa la rădăcina domeniului magazinului.
Start with the facts a shopper needs
A shopper's assistant needs the same details a shopper looks for before placing an order. How much does standard shipping cost to the shopper's country? How long do they have to return an item? Which payment methods can they use? A shipping price is easier for a program to interpret when the country and delivery method are attached to the amount.
Start in Shopify Settings. Copy the current shipping rates, return and shipping policies, and store address from there. Check the public pages that state those facts so you can record where a shopper can read them. SO4AG, short for Source Objects for AGents, is an open format and a working draft at version 0.1. Each fact records its value, where it applies, its last day, where the website states it, and whether the business states it at all.
What Shopify can serve
There is no SO4AG app for Shopify. The usual address for a SO4AG file is /so4ag.json at the root of a domain. Shopify theme edits cannot put a file at that address. Shopify apps can serve addresses only under prefixes such as /apps/.
The manual setup uses a normal Shopify page called Facts and terms. It displays a table shoppers can read and includes the same facts as JSON-LD. The so4ag.json file lives on a hosted SOQVER profile. The store page links directly to that file, so the setup works without a root-level file on the Shopify domain.
Publish your facts and terms
1. Draft the facts
Enter your public store address in the guided start. It drafts facts from your public pages and includes exact quotes so you can see the wording behind each draft. If you want a package of files to work from, use the free website audit. You confirm your email to see the result and confirm the facts before downloading. SOQVER guided start · Free website audit
2. Review and confirm the facts
Compare the draft with Shopify Settings and the public pages you cite. Attach the right conditions to each fact. If a rate applies to US standard delivery, record both the country and the delivery method. Use any only when the fact applies to every value for that condition. If your business does not state a fact, mark it not stated. Set the last day for each fact and confirm the entries yourself. The hosted profile then offers a page, the JSON file, and the JSON-LD block.
3. Create the Shopify page
Create a regular store page titled Facts and terms and add the confirmed facts as a table. Keep each condition next to the value it qualifies. For example, put the country and delivery method in the shipping row so shoppers can tell which orders the price covers.
4. Add the JSON-LD
Copy the JSON-LD block from the hosted profile. Place it in a Custom Liquid section on the Facts and terms page or add it through the theme code for that page. Use the block from the same confirmed set of facts as the visible table so both versions describe the same terms.
5. Link to the hosted file
Copiați din profilul găzduit linkul direct către so4ag.json. Adăugați-l pe pagina Shopify cu o etichetă clară, precum Descărcați datele în format JSON. Deschideți pagina publicată și accesați linkul pentru a verifica dacă se deschide fișierul.
Datele Example Candle Co
Example Candle Co este un magazin folosit ca exemplu, care își publică condițiile de livrare și de retur la examplecandleco.example. În acest exemplu, magazinul nu precizează metodele de plată pe paginile sale publice.
| Informație | Valoare | Domeniu de aplicare |
|---|---|---|
| Tarif de livrare | 5.50 USD | Livrare standard în SUA |
| Termen de retur | 30 de zile | Comenzi vizate de politica de retur publicată |
| Metode de plată | not stated | Metodele de plată ale magazinului |
Actualizați datele de valabilitate
Când modificați un tarif de livrare, actualizați condițiile de livrare publicate și confirmați informația revizuită, indicând noua dată până la care este valabilă. Actualizați simultan informația găzduită, tabelul din Shopify și codul JSON-LD. Fiecare informație are o ultimă zi de valabilitate. După acea zi, un program o tratează ca informație istorică. Puteți confirma un tarif de livrare pentru cel mult 60 zile la fiecare confirmare, iar metodele de plată pentru cel mult 180 zile. Aceste date îi indică programului cât timp poate considera valorile declarate ca fiind actuale.
Pasul următor
După publicare, verificați so4ag.json din profilul găzduit cu validatorul public.