• Hello,

    I installed the plugin, set everything correctly, then put the products on sale, but the price shown is not that of the previous 30 days, but rather the current discounted one (I also set “Sale price dates”). How can I solve it?

    Thank you

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author kkarpieszuk

    (@kkarpieszuk)

    If you just installed the plugin, it seems to behave as expected: WordPress core or Woocommerce are not tracking price changes. The tracking of price changes starts in the moment when plugin is installed, so it is correct that it shows the current price as the lowest

    I have the same issue. I started promotion few days after the plugin was installed but anyway the lowest price is the same as promo price.
    Dates of promotion are set. I have the option to select the price from the day before the sale started.

    https://ehau.pl/produkt/pluszowy-donut-zabawka-dla-psa-zippy-paws/

    Plugin Author kkarpieszuk

    (@kkarpieszuk)

    > I started promotion few days after the plugin was installed but anyway the lowest price is the same as promo price.


    could you reply telling what happen when exactly? more or less? please describe in historical order:

    • when you installed plugin,
    • then when you configured it and how (you can provide screenshot),
    • what was the last price before promotion
    • when you started promotion (and what price did you set? did you set it in the field for dicsounted price?)
    • did you do any changes to the price afterwards?
    1. 29.01.2024
    2. the same day, screenshot: https://i.ibb.co/dJLFQ64/chrome-sbh-Bs-Qv-Cl-P.png
    3. 43,49 z?, regular price
    4. It was started today, price set 36,96 z?. Dates: 2024-02-03 to 2024-02-05
    5. Nope, nothing was changed after it
    Plugin Author kkarpieszuk

    (@kkarpieszuk)

    Thank you, this really helps!

    Could I ask you for more info? Please, using phpmyadmin or commandline sql, run:
    SELECT meta_value, meta_id FROM wp_postmeta WHERE meta_key = '_wc_price_history' AND post_id = '8876' LIMIT 50;

    and copy and paste the result here? This will show me raw data with your stored price history for your product with id 8876

    • This reply was modified 9 months, 3 weeks ago by kkarpieszuk.

    Not sure if this is the right info – but that’s the result i got:

    a:5:{i:1706987739;d:43.49;i:1706987740;d:36.96;i:1707091200;d:36.96;i:1707178409;d:36.96;i:1707178410;d:43.49;}

    Is there any more info i should provide to you? @kkarpieszuk

    Plugin Author kkarpieszuk

    (@kkarpieszuk)

    Hello
    I am sorry for the late answer. Your report is perfect, it allowed me to spot the bug. I reported it here

    https://github.com/kkarpieszuk/wc-price-history/issues/80

    In cases like yours if you install plugin and start tracking the price for the first time (by changing it to the lower price ans start promo) it stores previous price and new price for the very same day.

    Then when plugin tries to find lowest price before this day, there are no entries so it takes the lowest price from the day when promo started (so promo price).

    I fixed it partially and I will release the fix soon: it will be working only for new installations and it will on the first history save, save also old price for the day before.

    For the already existing sites the fix is not easy but doable, but first, please tell me: how many products does your site has, roughtly?

    wchuberska

    (@wchuberska)

    Thanks for the answer! In total we have 167 products – part of them has variations. If we count all variations it is approx. 350 products.

    Hi! The issue is still happening. is there anything we can do that price will be shown correctly?

    Plugin Author kkarpieszuk

    (@kkarpieszuk)

    Hello, I just released a new version 2.0.0 which solves this problem. Please update and if you still see the problem, go to plugin configuration screen and click button “Fix prices history”

    Hi! I updated the plugin and used that button, but problem remains the same.

    Plugin Author kkarpieszuk

    (@kkarpieszuk)

    hmm, that is strange.

    Could you share again what is the result of that query?

    SELECT meta_value, meta_id FROM wp_postmeta WHERE meta_key = ‘_wc_price_history’ AND post_id = ‘8876’ LIMIT 50;

    Hi,

    here is the result:
    a:7:{i:1706987739;d:43.49;i:1706987740;d:36.96;i:1707091200;d:36.96;i:1707178409;d:36.96;i:1707178410;d:43.49;i:1706901339;d:43.49;i:1706814939;d:43.49;}

    @kkarpieszuk can i count on your help? we still have that issue

Viewing 15 replies - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.