With this plugin you can create an XML feed for BestPrice.gr.
BestPrice.gr is a price comparison website that enables its users to filter through a variety of more than 9.7 million products in more than 2.1 thousand shops. BestPrice visitors can compare products and prices, bookmark their favorite products, check their price history, receive live notifications and find stores near them through an intuitive web interface.
By providing an XML file with your store's products, you can list them in this platform.
This plugin requires a commercial license purchasable through the Craft Plugin Store.
This plugin requires Craft CMS 3.1.0 or later.
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require kerosin/bestpricegr-xml-feed-pro
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Bestpricegr Xml Feed Pro.
Open the Craft admin and go to Settings → Plugins → BestPrice.gr Xml Feed Pro → Settings.
http://example.com/bestpricegr-xml-feed-pro/feed/entries
To save the output to a file add save
query param to the url:
http://example.com/bestpricegr-xml-feed-pro/feed/entries?save
The file will be saved in the following path:
http://example.com/bestpricegr-xml-feed-pro/entries-SITE_HANDLE.xml
Replace SITE_HANDLE
in the url with a real site handle.
http://example.com/bestpricegr-xml-feed-pro/feed/products
To save the output to a file add save
query param to the url:
http://example.com/bestpricegr-xml-feed-pro/feed/products?save
The file will be saved in the following path:
http://example.com/bestpricegr-xml-feed-pro/products-SITE_HANDLE.xml
Replace SITE_HANDLE
in the url with a real site handle.
{% set entries = craft.entries.section('foo').all() %}
{{ craft.bestpricegrXmlFeedPro.generateFeed(entries) }}
{% set products = craft.products.all() %}
{{ craft.bestpricegrXmlFeedPro.generateFeed(products) }}
Brought to you by kerosin