ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How can I calculate monthly sale for a user in drupal commerce?

Basically I want to limit a user of specific role upto certain sale limit. So a user with role x can sell upto $y. Is there anyway or module which can do the task. Thanks

user-image
تم إضافة السؤال من قبل Shabir Ahmad , Principal Software Engineer , Allshore Global Resources LLC
تاريخ النشر: 2014/07/07
Shabir Ahmad
من قبل Shabir Ahmad , Principal Software Engineer , Allshore Global Resources LLC

The only way to calculate sale is through some custom coding as far as I see. But I know there must be some way out using rules module. Like It will store the value in variable when ever the the product is added to cart or the order is completed. What do you think?

Neyaz Alam
من قبل Neyaz Alam , Sr. Drupal Developer , Quantum Coders Ltd

Get user id and then can identify all that sell attached with that user id

its not clear how you have linked with sell and user id how you linked

user id can identify

global $user;

$user->uid

المزيد من الأسئلة المماثلة