Skip to content

kerosin/craft-bestpricegr-xml-feed-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestPrice.gr Xml Feed Pro plugin for Craft CMS 3.x

Plugin Icon

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.

License

This plugin requires a commercial license purchasable through the Craft Plugin Store.

Requirements

This plugin requires Craft CMS 3.1.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require kerosin/bestpricegr-xml-feed-pro
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Bestpricegr Xml Feed Pro.

Configuration

Open the Craft admin and go to Settings → Plugins → BestPrice.gr Xml Feed Pro → Settings.

Usage

Entries feed url

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.

Products feed url

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.

Twig function

{% 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published