- 类型:
- PrestaShop 模块:结构化数据与 Merchant Center
- 版本:
- 1.0.0
- 日期:
- 2026-11-21
- 兼容:
- PrestaShop 8.1+, 9.x · PHP 8.1+
- 许可证:
- GPL-3.0-or-later
- 大小:
- 80,4 KB
SHA-256 b2d41afa166228d35fea2a99ad78f9010534e6adc58fec8d3c3a18a366e318b0

RicchiSnippet PrestaShop 版是 Joomla 插件的兄弟:它写出 schema.org 结构化数据(JSON-LD),Google 靠它显示带价格、星级和库存的搜索结果,Merchant Center 也拿它来核对商品页。它为一位客户的 PrestaShop 网店而生,那里 Merchant Center 的警告已经排成了长长一串;这里是给所有人的版本。
它生成什么
- 商品:
Product,有组合时则是带变体的ProductGroup;价格与页面显示的一致(同样的增值税逻辑),打折时给出划线价,只有真的存在优惠截止日期才写,真实库存,经过校验的 GTIN,品牌,全部图片,以及从“特性”中读取的材质、颜色和性别。 - 运费按商品计算,遵循结账规则和所选承运商,另加一个可配置的附加区域(岛屿、偏远地区)。
- 退货政策,按商品和按店铺。
- 店铺:
LocalBusiness,有三十多种类型可选(只在网上销售的用OnlineStore),地址和营业时间取自“商店参数”。 - WebSite、与可见路径一致的 BreadcrumbList、用于分类和搜索的 ItemList(只给网址,正如 Google 要求的那样)。
- 评分只来自已审核通过的评论:没有编造的星星。
后台工具
- 任意商品的 JSON-LD 预览。
- 面向 Merchant Center 的商品目录审查,只读:缺少 GTIN、品牌、图片或特性的商品。
- 主题检查:告诉你主题是否已经自己输出 JSON-LD;如果是,需要关掉它以免重复(说明见 zip 里的 README)。
安装
- 下载 zip。
- 在后台:模块 > 模块管理器 > 上传模块,把 zip 拖进去。
- 打开配置:参考承运商、业务类型、退货天数、用于识别特性的关键词。
- 用 Google 富媒体搜索结果测试检查三四个商品。
适用于 PrestaShop 8.1 和 9,PHP 8.1 或更高版本。不覆盖核心(override)。想回退,停用模块即可。许可证为 GPL v3 或更高版本。
- [2026-11-21] v1.0.0 ADD @silvano SEO
First public release. Product page: Product, or ProductGroup with variants when combinations differ by size or colour; Offer with the visible price (same VAT logic as the shop), strikethrough price when discounted, expiry only when the discount has one, real availability, validated GTIN, MPN, brand, images, material, colour and gender from product features, rating only from approved reviews.
- [2026-11-21] v1.0.0 ADD @silvano SEO
Shipping costs in the Offer computed from the real carrier with the checkout rules (price or weight ranges, free-shipping thresholds, VAT, extra zone for islands and remote areas) and return policy both in the Offer and on the organisation.
- [2026-11-21] v1.0.0 ADD @silvano SEO
LocalBusiness (Store or a chosen subtype, OnlineStore or Organization for online-only shops) with address, coordinates and opening hours from the Store page; WebSite on the home page, BreadcrumbList from the visible breadcrumb, ItemList on listing pages.
- [2026-11-21] v1.0.0 ADD @silvano SEO
Back office in Italian and English with a JSON-LD preview of a product, warnings on merchant listing requirements and a catalog audit for Merchant Center (price 0, missing or invalid GTINs, products without image, manufacturer or description).
- [2026-11-21] v1.0.0 NOTE @silvano
Born from a module written for an online shop and made generic: business type, feature keywords, fallback brand and extra shipping zone are settings, initial values are read from the shop.
C:\RICCHISN> _