Projekt

Allgemein

Profil

GX-Bug #59744 » edit_order_product_properties_fix.patch

Moritz Bunjes, 25.10.2018 18:51

Unterschiede anzeigen:

src/system/classes/properties/PropertiesControl.inc.php (date 1540485613000)
478 478
		
479 479
		$t_properties_to_products_count = $coo_properties_data_agent->count_properties_to_product($c_products_id);
480 480
		
481
		$txtPer = $this->coo_lang_manager->get_text('TXT_PER', 'general');
482
		
481 483
		if($t_properties_values_count == $t_properties_to_products_count)
482 484
		{
483 485
			$t_selected_combi = $this->get_selected_combi($c_products_id, $c_languages_id, $t_properties_values_array, false);
......
557 559
                {
558 560
                    if ($t_selected_combi['products_vpe_id'] != 0 && $t_selected_combi['vpe_value'] != 0 && $t_total_price['plain'] > 0)
559 561
                    {
560
                        $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $t_selected_combi['vpe_value']), true).TXT_PER. $t_selected_combi['products_vpe_name'] . '</span><br />';
562
                        $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $t_selected_combi['vpe_value']), true).$txtPer. $t_selected_combi['products_vpe_name'] . '</span><br />';
561 563
                    }
562 564
                    elseif($coo_product_object->get_data_value('products_vpe') != 0 && $coo_product_object->get_data_value('products_vpe_value') != 0 && $t_total_price['plain'] > 0 && !$this->has_non_linear_combi_surcharge($c_products_id))
563 565
                    {
564
                        $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $coo_product_object->get_data_value('products_vpe_value')), true).TXT_PER. xtc_get_vpe_name($coo_product_object->get_data_value('products_vpe')) . '</span><br />';
566
                        $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $coo_product_object->get_data_value('products_vpe_value')), true).$txtPer. xtc_get_vpe_name($coo_product_object->get_data_value('products_vpe')) . '</span><br />';
565 567
                    }
566 568
                    else
567 569
                    {
......
621 623
			{
622 624
			    if(is_array($t_cheapest_combi) && $t_cheapest_combi['vpe_value'] != 0.0 && $t_cheapest_combi['products_vpe_id'] != 0)
623 625
                {
624
				    $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $t_cheapest_combi['vpe_value']), true).TXT_PER.xtc_get_vpe_name($t_cheapest_combi['products_vpe_id']) . '</span><br />';
626
				    $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $t_cheapest_combi['vpe_value']), true).$txtPer.xtc_get_vpe_name($t_cheapest_combi['products_vpe_id']) . '</span><br />';
625 627
                }
626 628
                elseif($coo_product_object->get_data_value('products_vpe_value') != 0.0 && $coo_product_object->get_data_value('products_vpe') != 0)
627 629
                {
628
                    $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $coo_product_object->get_data_value('products_vpe_value')), true).TXT_PER.xtc_get_vpe_name($coo_product_object->get_data_value('products_vpe')) . '</span><br />';
630
                    $t_output_array['price'] .= '<br /><span class="tax-shipping-text gm_products_vpe products-vpe">' . $xtPrice->xtcFormat($t_total_price['plain'] * (1 / $coo_product_object->get_data_value('products_vpe_value')), true).$txtPer.xtc_get_vpe_name($coo_product_object->get_data_value('products_vpe')) . '</span><br />';
629 631
                }
630 632
			}
631 633
		}
    (1-1/1)