getEDG1JoinCondition: Error in getEDG1JoinCondition :
at line 431 in file override/classes/SAPPrices.php
426.
427. $query = "SELECT `group`, price_manufacturer, properties FROM "._DB_PREFIX_."product where reference = '$product_code'";
428. $result = DB::getInstance()->getRow($query);
429.
430. if (!$result) {
431. throw new PrestaShopException("getEDG1JoinCondition: Error in getEDG1JoinCondition : $product_code");
432. }
433.
434. $group = $result["group"];
435. $price_manufacturer = $result["price_manufacturer"];
436. $properties = $result["properties"];
37. $price_type = $osppPrice["price_type"];
38. $a_volume_prices = $osppPrice["a_volume_prices"];
39. }
40.
41. if ($row_price == null) {
42. $edg1_join_condition = self::getEDG1JoinCondition($code);
43.
44. //OEDG Customer Specific pricing
45. $discounts = self::getOEDGCustomerSpecificDiscounts($user_code, $edg1_join_condition);
46.
47. //OEDG which is applied to all groups
Argument [0]
208. public static function SAPPriceCalculator($code, $user_code, $pricelist_code, $quantity = 1, $base_price = false)
209. {
210. if ($base_price) {
211. return SAPPrices::getBasePrice($code, $pricelist_code);
212. } else {
213. return SAPPrices::getPrice($code, $user_code, $pricelist_code, $quantity);
214. }
215. }
216.
217. //XCOMCOPY: ProductCore
218. public static function getTaxesInformations($row, Context $context = null)
Argument [0] Argument [1] Argument [2] 3 Argument [3] 1
275. $address->id_state = 0;
276. $address->postcode = 0;
277. $tax_manager = TaxManagerFactory::getDefaultSAPManager($address, SAPTaxManager::PRODUCT_TAX_CALCULATOR, $id_product, $customer->id);
278. $product_tax_calculator = $tax_manager->getTaxCalculator();
279.
280. $price_infos = self::SAPPriceCalculator($reference, $customer->sapid, PriceList::GetCurrentPriceList());
281. $a_volume_prices = array();
282. if (isset($price_infos['volume_prices']) && !empty($price_infos['volume_prices'])) {
283. $reduction_from_category = GroupReduction::getValueForProduct($id_product, $id_group);
284. $reduc = Group::getReductionByIdGroup($id_group);
285. foreach ($price_infos['volume_prices'] as $qty => $price_entry) {
Argument [0] Argument [1] Argument [2] 3
258. return DB::getInstance()->getValue($query) == "1";
259. }
260.
261. public function getVolumePrices($use_tax = true, $use_group_reduction = true)
262. {
263. return self::getVolumePricesStatic($this->id, $this->reference, $use_tax, $use_group_reduction);
264. }
265.
266. public static function getVolumePricesStatic($id_product, $reference, $use_tax = true, $use_group_reduction = true)
267. {
268.
Argument [0] Argument [1] Argument [2] 1 Argument [3] 1
130. $this->context->smarty->assign(
131. array(
132. 'wishlists' => $wishlists,
133. )
134. );
135. $volume_prices = $this->product->getVolumePrices();
136. $this->context->smarty->assign('volumePricesJS',$volume_prices);
137.
138. $volume_prices_returned = array();
139. $last_qty = 0;
140. foreach($volume_prices as $qty => $v_price){
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
6. public function dispatch()
7. {
8. //create object to make sure we init custom settings
9. new XLogger();
10. XLogger::LogExecutionTrace("Dispatcher: ".$_SERVER['REQUEST_URI']);
11. parent::dispatch();
12. XLogger::LogExecutionTrace("< Dispatcher: ".$_SERVER['REQUEST_URI']);
13. }
14. }
25. */
26.
27. ini_set('display_errors', 0);
28. error_reporting(0);
29. require(dirname(__FILE__).'/config/config.inc.php');
30. Dispatcher::getInstance()->dispatch();