• Resolved provalis

    (@provalis2020)


    Hi,

    we try to implement a functionality like stock quantity update and in this case we need to receive the total_sales values of each product (simple, variable and variations). But if we retrieve the products with the php function, the function $product->get_total_sales() deliver for variations every time a ZERO (0).

    We do not know if there is a relation to the database table wp_wc_product_meta_lookup: all total_sales values of variations are there also zero.

    Hope we a solution,

    Joerg

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mouli a11n

    (@mouli)

    Hi there
    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    I hope that helps you to figure it out.
    Feel free to get back to us if you have further questions.

    Hi @provalis2020,

    We have not heard back from you in a bit, so we are closing this thread. If you have further questions please feel free to open a new thread, otherwise have a super day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Totals_Sales of Variation always zero’ is closed to new replies.