Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Show Table of Contents

Set up price history for affiliate products

With the affiliate-toolkit you can create a price history. The plugin tracks every price change for every product and every store.

Install price history

In order for the prices to be recorded, you need to download the extension from our website. You can find this extension here.

You can then upload and install the ZIP file normally via the WordPress plugin installation.

Activate price history

The price history is active immediately after installation. Please note that prices are recorded only from the date of installation. You cannot access prices before that.

After activation you will find a new button "Price history" in the backend at the product.

Provided that the price history has been active for some time, you can see several entries there.

Not every price update is captured. Only if the price actually changes, a new line is added.

Show price history

If you want to display the price history on your website, there are several charts.

Price history for the last 30 days

[atkp_product id='123' template='pricehistory_lastxdays'][/atkp_product]

This shortcode displays the price history for the last 30 days.

Price history monthly

[atkp_product id='123' template='pricehistory_month'][/atkp_product]

This shortcode displays the price history for the last months.

Price history array

If you have further knowledge of PHP, you can also access and output the data itself.

$history_rows = atkp_product_pricehistory::get_lastxdays_history( $product->productid, $minifier_shops, $days );

foreach($history_rows as $history_row) {
echo $history_row->Id;
echo $history_row->ProductId;
echo $history_row->ShopId;
echo $history_row->CreatedOn;
echo $history_row->ProductPrice;
echo $history_row->ProductPriceFloat;
echo $history_row->groupname;

This line returns you an array.

$minifier_shops specifies whether the stores should be grouped or output as single lines.

$days specifies how many days you want to go back in history.

Updated: 24. February 2023
Still not using affiliate-toolkit?
Setup takes less than 5 minutes and you can start to import first products!
Learn more about the packagesDownload FREE Version
Still need help?
Submit Your Question
Please give us the details, our support team will get back to you.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram