Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

API Include quantity min and max and order with getproducts on config options and custom fields

Jonathan Davis shared this idea 2 months ago
Under Consideration

when calling API getproducts it should include quantity min and max and the order so it can be added to a website easier without any additional sql calls to get it such as below to get the additional information. so if something is like 50 we can use the price it gets and times it by 50.

foreach ( Capsule::table('tblproductconfigoptions')->where('id', $data->id)->get() as $pco) {

$pid["qtymin"] = $pco->qtyminimum;

$pid["qtymax"] = $pco->qtymaximum;

$pid["order"] = $pco->order;

}