在woocommerce中显示每位作者的总销售额 [英] Show total sales per author in woocommerce

查看:36
本文介绍了在woocommerce中显示每位作者的总销售额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个网站上使用 wordpress 和 woocommerce,我让用户在那里创建帐户,以便他们可以上传自己的服装设计,然后我销售这些产品,对于他们设计的每次销售,特定用户都会从销售中分一杯羹.我试图在我的网站上显示每个用户的销售数量,但不知道如何做.我只需要能够专门调用每个用户创建的产品,然后获取每个产品的总销售额,然后将它们组合成每个用户的总销售额......谁能指出我正确的方向??

I'm using wordpress and woocommerce on a site where I have users create accounts so that they can upload their own clothing designs, I then sell these products and for each sale of their design the specific user gets a cut of the sale. I am trying to show the number of sales for each user on my site but can't figure out how to. I just need to be able to call the products created by each user specifically and then get the total sales from each of those products, then combine them into a total sales number for each individual user... can anyone point me in the right direction??

我能够使用

ID, 'total_sales', true);?>

但我不知道如何为特定用户获取它.

but I have no idea how to get it for a specific for a user.

推荐答案

您可以使用此流程:

  1. 为产品帖子类型提供作者支持
  2. 获取该作者发布的所有产品
  3. 获取所有列出产品的总销售额(请参阅第 2 点)

希望这会有用.:D

这篇关于在woocommerce中显示每位作者的总销售额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆