如何在magento2产品列表中按“折扣”排序?

时间:2018-07-26 10:20:23

标签: magento2

$invoices_total = DB::table('invoices')
        ->join('products', 'invoices.id', '=', 'commodities.invoice_id')
        ->join('commodities', 'products.id', '=', 'commodities.product_id')
        ->sum('products.price * commodities.number')
        ->groupBy('invoices.id')
        ->get();

0 个答案:

没有答案