Hi
J!3.9.14
VM3.6
I have a shop that is without prices. My B2B users can order stuff, that will be created in e-conomic and that way get priced.
Since i have "free" products in the shop (no pricing) the only way i can get the topten-feature to work is by commenting out the where part.
./administrator/components/com_virtuemart/models/product.php
case 'topten':
$orderBy = 'ORDER BY p.`product_sales` DESC, p.`virtuemart_product_id` DESC'; //LIMIT 0, '.(int)$nbrReturnProducts; //TODO set limitLIMIT 0, '.(int)$nbrReturnProducts;
$joinPrice = true;
// $where[] = 'pp.`product_price`>"0.001" ';
This will make all products show up as long as they are on product sales.
now..
What i want to achieve is make sure that the most sold products for logged in users are shown instead of the "global" topten.
Can anyone tell me if this is possible in the current settings menu or do i need to make my SQL different to make sure that p.product_sales only contains data from orders that have a certain user_id?
Thanks!