The Datafeedr Comparison Set plugin automatically creates price comparison sets for any product in your WooCommerce store or by using a shortcode.
Heads-up! — This plugin requires that you have an active subscription to one of our API plans. Purchase Subscription.
For personal-use only. Please contact us if you have any questions.
Requirements
- PHP 7.4 or greater
- MySQL version 5.6 or greater
- WordPress memory limit of 256 MB or greater
- Datafeedr API Plugin
- HTTPS support
API Usage
Please know that the generating or updating of a single comparison set will require between 2 and 6 API requests. If you are using the API Starter Plan, consider upgrading to the Basic Plan.
Installation & Configuration
[IMPORTANT] Before You Begin
This plugin requires that you have installed and activated the Datafeedr API plugin. The following instructions will assume that you have installed the Datafeedr API plugin and selected your affiliate networks and merchants. Installation and configuration instructions can be found here.
API Usage
Please know that the generating or updating of a single comparison set will require between 2 and 6 API requests. If you are using the API Starter Plan, consider upgrading to the Basic Plan.
Plugin Installation
- Upload the
datafeedr-comparison-setsfolder to the/wp-content/plugins/directory. - Activate the Datafeedr Comparison Sets plugin through the ‘Plugins’ menu in WordPress.
- Configure here: WordPress Admin Area > Datafeedr API > Comparison Sets.
Enabling Amazon Products
If you want Amazon products to appear in your comparison sets, do the following:
- Go here WordPress Admin Area > Datafeedr API > Configuration > Amazon Settings.
- Add your Amazon Access Key ID, Secret Access Key, Tracking ID and Locale.
- Click the [Save Changes] button at the bottom of the page.
- Go here WordPress Admin Area > Datafeedr API > Comparison Sets.
- Change the Cache Lifetime field to
86400. - Click the [Save Changes] button at the bottom of the page.
Display Comparison Sets for WooCommerce Products
To display comparison sets for products in your WooCommerce store, follow these instructions.
- Go here WordPress Admin Area > Datafeedr API > Comparison Sets > Integrations.
- Check the WooCommerce option.
- Click the [Save Changes] button at the bottom of the page.
Now, when a product in your store is viewed for the first time, a price comparison set will be generated.
Note: Enabling WooCommerce integration will not generate price comparison sets for all products in your store immediately. Sets will only be generated when the product is viewed for the first time.
Display Comparison Sets using Shortcodes
To display comparison sets in your posts, pages or in other areas where WordPress shortcodes are allowed, use the formats below.
Create a price comparison set using name field:
Create a price comparison set using name and brand field:
Create a price comparison set with a custom title:
Available Filters
You can further filter the results of a Comparison Set by using the filters attribute. Available filters are:
Here is what each filter controls:
Merchant IDs merchant_id (MID) and Network IDs source_id (NID) can be referenced on our Affiliate Networks & Merchants page.
Here are some examples of how to use these filters in your shortcodes:
Create a price comparison set using onsale filter:
Create a price comparison set using currency filter:
Create a price comparison set using multiple filters:
Create a price comparison set using an EAN code:
Create a price comparison set using an Amazon ASIN code:
Create a price comparison set using an UPC code:
Create a price comparison set limited to specific merchants and networks:
Shortcode to use on WooCommerce single product pages (ie. in blocks, page builders, widgets, etc…)

评论0