Add new version 0.238 zip file containing updated ProductRepository and Product class files
This commit is contained in:
@@ -608,10 +608,12 @@ class Product implements \ArrayAccess
|
||||
}
|
||||
|
||||
// pobierz stan magazynowy produktu
|
||||
// FASADA - wywołuje nową klasę Domain\Product\ProductRepository
|
||||
static public function get_product_quantity( int $product_id )
|
||||
{
|
||||
global $mdb;
|
||||
return $mdb -> get( 'pp_shop_products', 'quantity', [ 'id' => $product_id ] );
|
||||
$repository = new \Domain\Product\ProductRepository($mdb);
|
||||
return $repository->getQuantity($product_id);
|
||||
}
|
||||
|
||||
public static function product_categories( int $product_id )
|
||||
|
||||
Reference in New Issue
Block a user