• Hi, I have a non-profit website where we arranged a booklibrary.
    We are currently using woocommerce to manage lendings, but I also would like to display a view in the user’s profile with his lendings list (actually, since the books are woocommerce products, it would be the purchase history).
    Is there any way to do so by code or plugin?

    Other question: is there any way to put a counter on the single users that increase or decrease when he gets or returns the books?

    Thank you!!

    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can query for the current user’s orders and display the products ordered on the front end. You’ll need a custom page template or similar mechanism to execute the required custom code.

    There are numerous hooks that fire any time a WooCommerce action takes place. One of these would be suitable for inserting a counter. Be aware that many hooks fire more than once per request. To avoid duplicate counts, your added callback can remove itself from the action stack after the first time it executes.

    For specifics on what to query or which hook to use, I suggest asking in the dedicated WooCommerce support forum.
    https://www.ads-software.com/support/plugin/woocommerce/

Viewing 1 replies (of 1 total)
  • The topic ‘woocommerce frontend table’ is closed to new replies.