WordPress plugin
API Starter Plan
Datafeedr Comparison Sets includes price comparison sets to WooCommerce product pages or to posts, pages, and other areas that support WordPress shortcodes. It requires an active Datafeedr API subscription and is intended for personal use.
Datafeedr Comparison Sets includes price comparison sets to WooCommerce product pages or to posts, pages, and other areas that support WordPress shortcodes. It requires an active Datafeedr API subscription and is intended for personal use.
Choose where comparisons appear
WooCommerce products
In WordPress Admin Area > Datafeedr API > Comparison Sets > Integrations, enable the WooCommerce option and save. A set is generated when a product is viewed for the first time after the integration is enabled; this does not generate sets for every product immediately. The [dfrcs_wc] shortcode is also available for WooCommerce single product pages.
Shortcode placements
Add a comparison set wherever WordPress shortcodes are supported. Match products by name, name and brand, or a product code. You can also set a custom title.
[dfrcs name="baratza encore"][dfrcs name="j8006" brand="omega"][dfrcs ean="737416080066"],[dfrcs asin="B07BN6KH6W"], or[dfrcs upc="050946872827"]
Filter the products in a set
Use the shortcode's filters attribute to narrow results by currency, Amazon locale, image availability, sale status, direct URL availability, minimum or maximum sale price, minimum or maximum final price, merchant ID, or network ID (source_id). For example, [dfrcs name="aeropress coffee maker" brand="aerobie" filters="currency=USD"] limits results to USD. Merchant and network IDs can be combined in the filters value.
Include Amazon products
First open Datafeedr API > Configuration > Amazon Settings, enter the Amazon Access Key ID, Secret Access Key, Tracking ID, and Locale, then save. Next open the Comparison Sets options, set Cache Lifetime to 86400, and save again.
API usage and plan fit
Generating or updating one comparison set requires 2 to 6 API requests. The add-on requires an active subscription to either the API Starter Plan or Basic Plan. If you use Starter and API usage is a concern, consider Basic.
Requirements and setup
- WordPress 3.8 or later
- PHP 7.4 or later
- MySQL 5.6 or later
- WordPress memory limit of at least 256 MB
- Datafeedr API plugin version 1.4.3 or later and HTTPS support
Install and activate the Datafeedr API plugin first, then select your affiliate networks and merchants there. Upload the datafeedr-comparison-sets folder to /wp-content/add-ons/ and activate Datafeedr Comparison Sets from the WordPress Plugins menu. Configure it under WordPress Admin Area > Datafeedr API > Comparison Sets, then enable WooCommerce integration or add shortcodes where you want sets to appear.