\WarehouseProductLocationCore

Summary

Methods
Properties
Constants
getProductLocation()
getIdByProductAndWarehouse()
getCollection()
getProducts()
$id_product
$id_product_attribute
$id_warehouse
$location
$definition
No constants found
No protected methods found
$webserviceParameters
N/A
No private methods found
No private properties found
N/A

Properties

$id_product

$id_product : integer

Type

integer — product ID

$id_product_attribute

$id_product_attribute : integer

Type

integer — product attribute ID

$id_warehouse

$id_warehouse : integer

Type

integer — warehouse ID

$location

$location : string

Type

string — location of the product

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

getProductLocation()

getProductLocation(integer  $id_product, integer  $id_product_attribute, integer  $id_warehouse) : string

For a given product and warehouse, gets the location

Parameters

integer $id_product

product ID

integer $id_product_attribute

product attribute ID

integer $id_warehouse

warehouse ID

Returns

string —

$location Location of the product

getIdByProductAndWarehouse()

getIdByProductAndWarehouse(integer  $id_product, integer  $id_product_attribute,   $id_warehouse) : integer

For a given product and warehouse, gets the WarehouseProductLocation corresponding ID

Parameters

integer $id_product
integer $id_product_attribute
$id_warehouse

Returns

integer —

$id_warehouse_product_location ID of the WarehouseProductLocation

getCollection()

getCollection(integer  $id_product) : \PrestaShopCollection

For a given product, gets its warehouses

Parameters

integer $id_product

Returns

\PrestaShopCollection —

The type of the collection is WarehouseProductLocation

getProducts()

getProducts(  $id_warehouse) 

Parameters

$id_warehouse