Projekt

Allgemein

Profil

GX-Bug #43321 » AttributesPriceOfferFix.patch

Till Tepelmann, 30.09.2015 17:48

Unterschiede anzeigen:

src/system/classes/products/PriceOfferContentView.inc.php (revision )
98 98
	}
99 99

  
100 100

  
101
	/**
102
	 * @param array $attributeIds
103
	 */
104
	public function set_attributes_ids_array(array $attributeIds)
105
	{
106
		$ids = array();
107

  
108
		foreach($attributeIds as $id)
109
		{
110
			$ids[] = (int)$id;
111
		}
112

  
113
		$this->attributes_ids_array = $ids;
114
	}
115
	
116
	
117 101
	protected function get_data()
118 102
	{
119 103
		$this->get_product_data();
......
188 172
	
189 173
	protected function get_price()
190 174
	{
191
		$gmAttrCalc = new GMAttributesCalculator($this->product_id, $this->attributes_ids_array, $this->product_data_array['products_tax_class_id'], $this->propertie_value_ids_array);
175
		$gmAttrCalc = new GMAttributesCalculator($this->product_id, $this->attributes_data_array, $this->product_data_array['products_tax_class_id'], $this->propertie_value_ids_array);
192 176
		$this->product_price = $gmAttrCalc->calculate(1, true);
193 177
	}
194 178
	
    (1-1/1)