• Resolved maliktanveer

    (@maliktanveer)


    Hello,

    We’re using this fantastic plugin, but we’re encountering an issue with the progress bar on the front end. Oddly, it works sometimes after an order, but other times it doesn’t. Additionally, the amount doesn’t always update on the front end after an order is placed. Even more perplexing, if we make another order, the amount updates with the previous order’s amount. Could you kindly investigate this bug for us?

    Moreover, we’re interested in creating a distinct design for our donation form. We’d like to incorporate radio buttons or selection options. Specifically, we aim to showcase three prices in a row using a shortcode on a single details page. Additionally, we’d like to display two prices side by side on the homepage loop layout. Despite the shared CSS, we’re unsure how to achieve distinct layouts for these scenarios. Your guidance on this matter would be greatly appreciated.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Jonas

    (@flinnn)

    Hi maliktanveer,

    thanks for reaching out.
    Calculating the sum of donations is actually quite resource intensive especially on busy sites. Donation Platform for WooCommerce therefore uses some strategies to improve performance. First of all, the amount is only calculated once an order changes its status to/from completed. In order to further reduce the load on the server (or more precisely the database) during peak loads, this calculation is performed at most once every 30s. To clean up any inconsistencies, the amount is also recalculated every 6h.
    So if the amount is not updated directly, the problem should resolve itself within 6h (or if a new donation is processed in the meantime).
    If you use a caching plugin (e.g. WP Super Cache or W3 Total Cache), the page itself may also be cached.

    Since you are not the only one experiencing problems with the revenue calculation I’m thinking about ways to improve this without risking performance degradation.

    Regarding your second question: To implement such a dynamic donation form you need a custom implementation that is out of scope for this support forum. I would recommend you to create to separate products, one with fewer choices for the homepage and another one for the other places.

    Best,
    Jonas

Viewing 1 replies (of 1 total)
  • The topic ‘Progress Bar Amount Not Updating’ is closed to new replies.