简体   繁体   English

过滤shopify xml文件以按集合显示产品

[英]Filter shopify xml file to show products by collection

Shopify have a sitemap xml file that you can see all your products with: Shopify有一个站点地图xml文件,您可以通过以下方式查看所有产品:

http://myshopifysite.com/sitemap_products_1.xml

They have a parameter you can append to the url to filter these products by date 它们具有一个参数,您可以将其附加到网址以按日期过滤这些产品

http://myshopifysite.com/sitemap_products_1.xml?from=386970543&to=467983291

My question is, has anyone used a parameter to filter this url by collection? 我的问题是,有没有人使用参数通过集合过滤此网址? So for example something like: 因此,例如:

http://myshopifysite.com/sitemap_products_1.xml?collection=xxx

This file contains only the list of your Shopify products (all). 该文件仅包含Shopify产品(所有)的列表。 The fields are: product url, product name, date of creation, product image url, how often should the web bots recheck the product. 字段包括:产品网址,产品名称,创建日期,产品图片网址,网络漫游器应多久重新检查一次产品。 As you can see there's absolutely no reference to the collection/s any product belongs to, so NO, you can't filter by collection. 正如您所看到的,绝对没有任何产品属于任何集合的引用,因此,不能,您不能按集合进行过滤。 This file is intended for bots (it's an improvement of the classic sitemap.xml) so I wouldn't rely on anything on this xml file. 该文件是为机器人准备的(它是对经典sitemap.xml的改进),因此我不会依赖任何该xml文件。 You can create a specific xml file to show tons of data, there you'll probably be able to do lots of magic. 您可以创建一个特定的xml文件来显示大量数据,在那里您可能会做很多事情。 Here you have an example: http://www.telepienso.com/pages/criteo-feed4445 这里有一个示例: http : //www.telepienso.com/pages/criteo-feed4445

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM