WordPress plugin
API Starter Plan
Datafeedr Comparison Sets makes price comparison sets for WooCommerce products and for posts, pages, or other areas that support WordPress shortcodes. It is intended for personal use and requires the Datafeedr API Plugin and an active API subscription. The API Starter Plan and Basic Plan are identified for use with the plugin; separate comparison-set capabilities for these plans are not specified.
Datafeedr Comparison Sets makes price comparison sets for WooCommerce products and for posts, pages, or other areas that support WordPress shortcodes. It is intended for personal use and requires the Datafeedr API Plugin and an active API subscription. The API Starter Plan and Basic Plan are identified for use with the plugin; separate comparison-set capabilities for these plans are not specified.
API use and plan guidance
Generating or updating a comparison set takes between 2 and 6 API requests. The setup guidance suggests that API Starter Plan subscribers consider the Basic Plan. Account for the requests used by each set when planning how the feature will be used.
Display sets in WooCommerce or shortcodes
To show sets on WooCommerce products, open WordPress Admin Area > Datafeedr API > Comparison Sets > Integrations, enable WooCommerce, and save. A set is generated when a product is viewed for the first time after this integration is enabled. Enabling it does not generate sets for every product at once.
Shortcodes place sets in posts, pages, or other areas that allow them. Search by product name, or provide a name and brand. For example, [dfrcs name="baratza encore"] and [dfrcs name="j8006" brand="omega"]. A shortcode can also specify a custom title. Other supported identifiers include EAN, ASIN, and UPC. Use [dfrcs_wc] on WooCommerce single product pages.
Filter results and choose what appears
The shortcode’s filters attribute can limit results by currency, Amazon locale, whether an item has an picture, sale status, direct URL availability, sale or final price ranges, merchant ID, or network ID (source_id). For example, [dfrcs name="farpoint 55" brand="osprey" filters="onsale=1"] returns products marked as on sale. The options also let you display or conceal each item’s product image, merchant logo, price, View button, and promotional text.
Include Amazon products
Open Datafeedr API > Configuration > Amazon Settings and enter the Amazon Access Key ID, Secret Access Key, Tracking ID, and Locale. Save those settings. Then open Datafeedr API > Comparison Sets, change Cache Lifetime to 86400, and save.
Requirements and setup
- PHP 7.4 or greater
- MySQL 5.6 or greater
- WordPress memory limit of 256 MB or greater
- Datafeedr API Plugin
- HTTPS support
First install and activate the Datafeedr API Plugin, then choose affiliate networks and merchants through that add-on. Upload the datafeedr-comparison-sets folder to /wp-content/plugins/ and activate Datafeedr Comparison Sets through the WordPress Plugins menu. Configure it at WordPress Admin Area > Datafeedr API > Comparison Sets, then choose WooCommerce integration or shortcode placement for your site.