diff --git a/.gitignore b/.gitignore index 020d46645..ae0a05c8f 100644 --- a/.gitignore +++ b/.gitignore @@ -167,6 +167,8 @@ img/** !/override/classes/index.php !/override/classes/cache/ !/override/classes/cache/index.php +!/override/classes/checkoutProcess/ +!/override/classes/checkoutProcess/index.php !/override/classes/controller/ !/override/classes/controller/index.php !/override/classes/db/ diff --git a/admin/themes/default/template/controllers/addresses/helpers/form/form.tpl b/admin/themes/default/template/controllers/addresses/helpers/form/form.tpl index ea72d4782..6d25b0a09 100644 --- a/admin/themes/default/template/controllers/addresses/helpers/form/form.tpl +++ b/admin/themes/default/template/controllers/addresses/helpers/form/form.tpl @@ -26,6 +26,10 @@ {extends file="helpers/form/form.tpl"} {block name="label"} + {if $input.name == 'vat_number'} +
+ {/if} + {if $input.type == 'text_customer' && !isset($customer)} {else} @@ -90,4 +94,7 @@ {else} {$smarty.block.parent} {/if} + {if $input.name == 'vat_number'} +
+ {/if} {/block} diff --git a/admin/themes/default/template/controllers/carts/helpers/view/view.tpl b/admin/themes/default/template/controllers/carts/helpers/view/view.tpl index 3a0ab6816..e802993eb 100644 --- a/admin/themes/default/template/controllers/carts/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/carts/helpers/view/view.tpl @@ -87,52 +87,179 @@ {l s='Image'} - {l s='Room Type'} - {l s='Unit Price'} + {l s='Room Type'} + {l s='Hotel'} + {l s='Duration'} + {l s='occupancy'} + {l s='Room price'} + {l s='Extra services'} {l s='Total'} - {foreach from=$products item='product'} + {foreach from=$cart_htl_data item='room'} - {$product.image} - - - {$product.name}{if isset($product.attributes)}
{$product.attributes}{/if}
- {if $product.reference}{l s='Ref:'} {$product.reference}{/if} - {if $product.reference && $product.supplier_reference} / {$product.supplier_reference}{/if} + + +
+ {$room['room_type']} - {displayWtPriceWithCurrency price=$product.product_price currency=$currency} - {displayWtPriceWithCurrency price=$product.product_total currency=$currency} + {$room['room_type_info'].hotel_name} + {dateFormat date=$room['date_from']} - {dateFormat date=$room['date_to']} + + + {if $room['adults']}{$room['adults']}{/if} {if $room['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if {$room['children']}}, {$room['children']} {if $room['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if} + + + {displayWtPriceWithCurrency price=$room['feature_price_tax_excl'] currency=$currency} + + {if (isset($room['extra_demands']) && $room['extra_demands']) || (isset($room['additional_service']) && $room['additional_service'])} + + {displayWtPriceWithCurrency price=($room['demand_price'] + $room['additional_service_price'] + $room['additional_services_auto_add_price'])|escape:'html':'UTF-8' currency=$currency} + + {else} + {displayWtPriceWithCurrency price=0 currency=$currency} + {/if} + + + {if (isset($room['extra_demands']) && $room['extra_demands']) || (isset($room['additional_service']) && $room['additional_service'])} + {displayWtPriceWithCurrency price=($room['amt_with_qty'] + $room['additional_services_auto_add_price'] + $room['demand_price'] + $room['additional_service_price'])|escape:'html':'UTF-8' currency=$currency} + {else} + {displayWtPriceWithCurrency price=$room['amt_with_qty']|escape:'html':'UTF-8' currency=$currency} + {/if} + + {/foreach} - {l s='Total cost of room types:'} + {l s='Total cost of room types:'} {displayWtPriceWithCurrency price=$total_products currency=$currency} {if $total_discounts != 0} - {l s='Total value of vouchers:'} + {l s='Total value of vouchers:'} {displayWtPriceWithCurrency price=$total_discounts currency=$currency} {/if} {if $total_wrapping > 0} - {l s='Total cost of gift wrapping:'} + {l s='Total cost of gift wrapping:'} {displayWtPriceWithCurrency price=$total_wrapping currency=$currency} {/if} {if $cart->getOrderTotal(true, Cart::ONLY_SHIPPING) > 0} - {l s='Total cost of shipping:'} + {l s='Total cost of shipping:'} {displayWtPriceWithCurrency price=$total_shipping currency=$currency} {/if} - {l s='Total:'} + {l s='Total:'} {displayWtPriceWithCurrency price=$total_price currency=$currency} diff --git a/admin/themes/default/template/controllers/normal_products/prices.tpl b/admin/themes/default/template/controllers/normal_products/prices.tpl index 5c6e4550b..9296a4701 100644 --- a/admin/themes/default/template/controllers/normal_products/prices.tpl +++ b/admin/themes/default/template/controllers/normal_products/prices.tpl @@ -469,15 +469,6 @@ $(document).ready(function () { -
- -
-
- {l s='unit'} - -
-
-
-
-

{$product['name']|escape:'html':'UTF-8'}

- {if $product.allow_multiple_quantity} -
- -
- {/if} -
+
+
+ + + {if isset($selectedRoomServiceProduct['room_num']) && $selectedRoomServiceProduct['room_num']} + {l s='Room'} {$selectedRoomServiceProduct['room_num']|escape:'html':'UTF-8'} + {else} + {l s='Room'} {$roomCount|escape:'html':'UTF-8'} + {/if} + +
+
+ {if isset($roomTypeServiceProducts) && $roomTypeServiceProducts} + {foreach $roomTypeServiceProducts as $product} +
+
+
+
+ +
+
+

{$product['name']|escape:'html':'UTF-8'}

+ {if $product.allow_multiple_quantity} +
+ +
+ {/if}
-
- {if $product['auto_add_to_cart'] && $product['price_addition_type'] == Product::PRICE_ADDITION_TYPE_INDEPENDENT} - {l s='Convenience fee'} - {/if} - {if $product['auto_add_to_cart'] && $product['price_addition_type'] == Product::PRICE_ADDITION_TYPE_WITH_ROOM} - {l s='Auto added'} - {/if} -
-
- {if ($product.show_price && !isset($restricted_country_mode)) || isset($groups)} - {convertPrice price=$product.price_tax_exc} - {/if} -
- {/foreach} - {/if} -
+
+ {if $product['auto_add_to_cart'] && $product['price_addition_type'] == Product::PRICE_ADDITION_TYPE_INDEPENDENT} + {l s='Convenience fee'} + {/if} + {if $product['auto_add_to_cart'] && $product['price_addition_type'] == Product::PRICE_ADDITION_TYPE_WITH_ROOM} + {l s='Auto added'} + {/if} +
+
+ {if ($product.show_price && !isset($restricted_country_mode)) || isset($groups)} + {convertPrice price=$product.price_tax_exc} + {/if} +
+
+ {/foreach} + {/if}
- {assign var=roomCount value=1} - {/foreach} + {/if} diff --git a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl index 57d965d11..2f421b9a4 100644 --- a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl +++ b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl @@ -132,9 +132,9 @@ {displayPrice price=$data.amt_with_qty} *} {if (isset($data.extra_demands) && $data.extra_demands) || (isset($data.additional_service) && $data.additional_service)} - {displayPrice price=($data.feature_price_tax_excl + $data.additional_services_auto_add_price + $data.demand_price + $data.additional_service_price)|escape:'html':'UTF-8'} + {displayPrice price=($data.amt_with_qty + $data.additional_services_auto_add_price + $data.demand_price + $data.additional_service_price)|escape:'html':'UTF-8'} {else} - {displayPrice price=$data.feature_price_tax_excl|escape:'html':'UTF-8'} + {displayPrice price=$data.amt_with_qty|escape:'html':'UTF-8'} {/if} diff --git a/admin/themes/default/template/controllers/orders/_product_line.tpl b/admin/themes/default/template/controllers/orders/_product_line.tpl index 820be14dc..6f002813f 100644 --- a/admin/themes/default/template/controllers/orders/_product_line.tpl +++ b/admin/themes/default/template/controllers/orders/_product_line.tpl @@ -182,12 +182,14 @@ {convertPriceWithCurrency price=($data['extra_demands_price_te'] + $data['additional_services_price_te'] + $data['convenience_fee_te'] + $data['additional_services_price_auto_add_te']) currency=$currency->id} - - - + {if ($data['extra_demands_price_te'] + $data['additional_services_price_te'] + $data['convenience_fee_te'] + $data['additional_services_price_auto_add_te']) > 0} + + + + {/if} diff --git a/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl b/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl index 2e0cd1415..342cac331 100644 --- a/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl +++ b/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl @@ -22,12 +22,8 @@ - - - {* Css for handling extra demands changes *}