• chasman123

    (@chasman123)


    I changed the attributes of 2X, 3X, 4X and 5X sizes from +$2, +$3, +$3, +$3 to +$3, +$4, +$5, +$6 respectively. The markups changed globally (for every device) in the ‘choose an option’ dropdown but the description price did not change (The description price reads $15.00 – $18.00 but it should read $15.00 – $21.00). Option 1 below is working but I do not see option 2 or 3 (perhaps I’m looking in the wrong place). Thank you.

    1. There’s a new Reapply markups to prices option in the variations bulk-actions menu of each product.
    2. There is a repricing icon (? Reprice) beneath the attributes on the All Products list. One click updates all that product’s variations.
    3. And, there is the new Reapply Markups bulk action on the All Products list. You’ll see a progress bar as each product updates.

    The page I need help with: [log in to see the link]

Viewing 16 replies (of 16 total)
  • Plugin Author Mark Tomlinson

    (@marktomlinson)

    For anyone who may have been following along, or finds this thread while diagnosing their own issues; @chasman123 and I have identified the source of the problem, corrected it, and rolled out a fix.

    TLDR for other developers; The issue has to do with the way WordPress handles update_post_meta() and the [Update] button in the post editor. WordPress appears to stash metadata records, and then rewrite them when [Update] is clicked. This would be okay; however, it appears that update_post_meta() does not update the stored metadata, and outdated information may overwrite the current information if the [Update] button is clicked.

    The work-around I am implementing is to do delete_post_meta() before the update_post_meta(), which forces WordPress to update the stashed metadata. (This is the same as delete_post_meta() and add_post_meta()).

    This thread will remain open until I receive solid confirmation that the problem is not reoccurring.

Viewing 16 replies (of 16 total)
  • You must be logged in to reply to this topic.