Projekt

Allgemein

Profil

GX-Bug #49117 » Kundengruppenpreis_Fix.patch

Till Tepelmann, 14.10.2016 17:57

Unterschiede anzeigen:

src/GXMainComponents/Controllers/HttpView/ShopAjax/CheckStatusController.inc.php (revision )
1 1
<?php
2 2
/* --------------------------------------------------------------
3
   CheckStatusController.inc.php 2016-07-13
3
   CheckStatusController.inc.php 2016-10-14
4 4
   Gambio GmbH
5 5
   http://www.gambio.de
6 6
   Copyright (c) 2016 Gambio GmbH
......
345 345
	{
346 346
		$getArray = array(
347 347
			'action'       => 'calculate_price',
348
			'products_qty' => $this->_getQueryParameter('products_qty'),
348
			'products_qty' => str_replace(',', '.', $this->_getQueryParameter('products_qty')),
349 349
			'products_id'  => $this->_getQueryParameter('products_id')
350 350
		);
351 351
		
src/gm/classes/GMAttributesCalculator.php (revision )
1 1
<?php
2 2
/* --------------------------------------------------------------
3
  GMAttributesCalculator.php 2015-05-20 gm
3
  GMAttributesCalculator.php 2016-10-14
4 4
  Gambio GmbH
5 5
  http://www.gambio.de
6
  Copyright (c) 2015 Gambio GmbH
6
  Copyright (c) 2016 Gambio GmbH
7 7
  Released under the GNU General Public License (Version 2)
8 8
  [http://www.gnu.org/licenses/gpl-2.0.html]
9 9
  --------------------------------------------------------------
......
89 89
			}
90 90
		}
91 91
		// check Group Price
92
		elseif($xtPrice->xtcGetGroupPrice($this->products_id, $p_quantity, $this->combis_id))
92
		elseif($xtPrice->xtcGetGroupPrice($this->products_id, $p_quantity, $this->combis_id) || $xtPrice->xtcGetGroupPrice($this->products_id, 1, $this->combis_id))
93 93
		{
94 94
			$t_new_price = $xtPrice->xtcGetGroupPrice($this->products_id, $p_quantity, $this->combis_id);
95
			
96
			if(!$t_new_price)
97
			{
98
				$t_new_price = $xtPrice->xtcGetGroupPrice($this->products_id, 1, $this->combis_id);
99
			}
95 100
			
96 101
			if($t_new_price < $t_price)
97 102
			{
    (1-1/1)