Projekt

Allgemein

Profil

GX-Bug #47272 » CarShippingCostsCalculatorFix.patch

Till Tepelmann, 01.07.2016 18:59

Unterschiede anzeigen:

src/templates/Honeygrid/module/cart_shipping_costs_selection.html (revision )
15 15
				{if count($content_data.shipping_countries) == 1}
16 16
					{foreach item=country_data from=$content_data.shipping_countries}
17 17
						{$country_data.countries_name}
18
						<input type="hidden" name="cart_shipping_country" value="{$country_data.countries_id}" />
18 19
					{/foreach}
19 20
				{else}
20 21
					<select id="cart-shipping-country" name="cart_shipping_country" class="form-control">
src/templates/Honeygrid/module/cart_shipping_costs_shipping_module_selection.html (revision )
6 6
	{elseif count($content_data.shipping_modules) == 1}
7 7
		{foreach key=module_code item=module_data from=$content_data.shipping_modules}
8 8
			{$module_data|strip_tags}
9
			<input type="hidden" name="cart_shipping_module" value="{$module_code}" />
9 10
		{/foreach}
10 11
	{else}
11 12
		<select class="form-control" id="cart-shipping-module" name="cart_shipping_module">
src/GXMainComponents/Controllers/HttpView/ShopAjax/CartShippingCostsController.inc.php (revision )
62 62
		$this->cartShippingCostsAjaxHandler->proceed();
63 63
		$result = json_decode($this->cartShippingCostsAjaxHandler->get_response(), true);
64 64
		
65
		$this->status['success']       = $result['status'] === 'success';
65
		$this->status['success']       = true;
66 66
		$this->status['error_message'] = $this->status['success']
67 67
			? ''
68 68
			: $result['error_message'];
......
70 70
		$this->shippingCostsInformation['cart_ot_gambioultra_costs'] = isset($result['cart_ot_gambioultra_costs'])
71 71
			? strip_tags($result['cart_ot_gambioultra_costs'])
72 72
			: '';
73
		$this->shippingCostsInformation['cart_shipping_costs']       = $this->status['success']
73
		$this->shippingCostsInformation['cart_shipping_costs']       = $result['status'] === 'success'
74 74
			? $result['cart_shipping_costs']
75 75
			: '';
76 76
	}
    (1-1/1)