20 protected $m_oTax = null;
25 protected $m_oValidator = null;
30 protected $m_oCatalogDB = null;
35 protected $m_oShippingDB = null;
40 protected $m_sCurrentDate =
"";
45 protected $m_dDefaultWeight = DEFAULT_WEIGHT;
57 $this->m_oValidator = new \SDExtension\Helper\CValidator($oCatalogDB, $oShippingDB);
58 $this->m_oTax = new \SDExtension\CTax($oCatalogDB, $oShippingDB);
59 $this->m_oCatalogDB = $oCatalogDB;
60 $this->m_oShippingDB = $oShippingDB;
61 $this->m_sCurrentDate = SellerDeckDate();
62 $oQueryResult = $this->m_oShippingDB->Select(TABLE_WEIGHT_CONFIGURATION,
'sDefaultWeight', [[
'nID', 0]]);
63 if ($oQueryResult !==
false)
65 $aControlInfo = $oQueryResult->fetch(\PDO::FETCH_ASSOC);
66 $this->m_dDefaultWeight = (double) arr_get($aControlInfo,
'sDefaultWeight', DEFAULT_WEIGHT);
76 abstract protected function MapOrders($aGetOrdersResult);
95 $oQueryResult = $this->m_oCatalogDB->Select(TABLE_PRODUCT,
'*', [[
'Product Reference', SQL_TYPE_STRING . $sProductReference]]);
96 if ($oQueryResult ===
false)
100 return $oQueryResult->fetch(\PDO::FETCH_ASSOC);
112 $oQueryResult = $this->m_oCatalogDB->Select(TABLE_PRODUCT, [
'Product Reference'], [[
'sBarcode', SQL_TYPE_STRING . $sBarcode]]);
113 if ($oQueryResult ===
false)
117 return $oQueryResult->fetch(\PDO::FETCH_ASSOC);
129 $oQueryResult = $this->m_oCatalogDB->Select(TABLE_PRODUCT_PROPERTIES,
'*', [[
'nType', 8], [
'sString4', SQL_TYPE_STRING . $sBarcode]]);
130 if ($oQueryResult ===
false)
134 return $oQueryResult->fetch(\PDO::FETCH_ASSOC);
__construct($oCatalogDB, $oShippingDB)
GetProductByBarcode($sBarcode)
MapOrders($aGetOrdersResult)
GetProductByReference($sProductReference)
GetProductPropertiesByBarcode($sBarcode)
GenerateOrderNumber($sExternalOrderID)