The minimum price in last 30 days is not working if price was set before 30 days
-
If I’m reading your code correctly, the date is set to the price modification date. So the first time when the product was available at that price. While the sql query expect that the ‘date’ column represent the last time when the price was valid.
To give you an example when this fails:
Let say a product gets discount to 100 EUR for 60 days, then after that 60 days price changed to 110 EUR, then your plugin will say the ‘best price in 30 days is 110EUR’. While it should say 100 EUR.
I’ve discovered the issue while adding all the historic prices to the history_table. I was expecting the plugin to show the prices I’ve added but It did not.
- The topic ‘The minimum price in last 30 days is not working if price was set before 30 days’ is closed to new replies.