SOQVER 准备来源
简体中文

Blog · Guide ·

Shopify:如何在不安装应用的情况下发布事实与条款

了解如何在 Shopify 上发布“事实与条款”页面并添加 JSON-LD,以及在无法将文件放在店铺域名根目录时,如何添加指向托管 SO4AG 文件的链接。

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.

Copy the direct link to so4ag.json from the hosted profile. Add it to the Shopify page with a clear label such as Download the facts as JSON. Open the published page and follow the link to check that it opens the file.

Example Candle Co facts

An example store, Example Candle Co, publishes its shipping and return terms at examplecandleco.example. In this example, the store does not state its payment methods on its public pages.

事实项ValueWhere it applies
运费5.50 USDUS standard delivery
Return period30 天Orders covered by the posted return policy
支付方式not statedStore payment methods

Keep the dates current

When you change a shipping rate, update the public shipping terms and confirm the revised fact with its new last day. Update the hosted fact, the Shopify table, and the JSON-LD together. Every fact has a last day. After that day, a program treats it as history. You can confirm a shipping price for up to 60 days at a time and payment methods for up to 180 days. These dates tell a program how long it can treat the stated values as current.

Next step

After publishing, check your hosted so4ag.json with the public validator.

More articles

指南 ·

如何在 WordPress 网站上发布您的商家事实信息

在 WordPress 中安装 SO4AG Facts,添加商家信息及其适用条件和日期,然后发布可在管理后台查看的“事实与条款”页面。

指南 ·

将 WooCommerce 的配送、付款和退货规则整理为事实信息

使用 SO4AG Facts 审阅根据 WooCommerce 设置生成的配送和付款建议,然后手动添加退货期限、送达时间和其他条款。

指南 ·

在 Wix、Squarespace 和 Webflow 上发布 SO4AG 事实信息

了解在 Wix、Squarespace 和 Webflow 的何处添加 JSON-LD,然后按相同的手动步骤发布事实信息页面,并添加指向您托管的 SO4AG 文件的链接。

免费网站审核 全部文章