简体   繁体   中英

Filter shopify xml file to show products by collection

Shopify have a sitemap xml file that you can see all your products with:

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). 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. You can create a specific xml file to show tons of data, there you'll probably be able to do lots of magic. Here you have an example: http://www.telepienso.com/pages/criteo-feed4445

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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