diff --git a/admin/themes/default/img/icon-info.svg b/admin/themes/default/img/icon-info.svg new file mode 100644 index 000000000..5d4d44d02 --- /dev/null +++ b/admin/themes/default/img/icon-info.svg @@ -0,0 +1,4 @@ + + + + diff --git a/admin/themes/default/js/admin-theme.js b/admin/themes/default/js/admin-theme.js index 1aa61350d..04acc90b5 100644 --- a/admin/themes/default/js/admin-theme.js +++ b/admin/themes/default/js/admin-theme.js @@ -478,4 +478,42 @@ $(document).ready(function() { $('.no-htl-access-option').on('click', function() { $(this).prop('selected', false); }); + initTooltip(); }); //end dom ready + +function initTooltip($target, contentFn, items) { + var $elements = $target || $('.tooltip-trigger'); + if (!$elements.length) { + return; + } + $elements.each(function () { + var $this = $(this); + if (!contentFn && $this.data('ui-tooltip')) { + return; + } + $this.tooltip({ + content: contentFn || $this.next('.tooltip-content').html(), + items: items || 'span', + trigger: 'hover', + tooltipClass: 'tooltip-popup', + open: function (event, ui) { + if (event.buttons == 1 || event.buttons == 3) { + ui.tooltip.remove(); + } + if (typeof event.originalEvent === 'undefined') { + return false; + } + var $id = $(ui.tooltip).attr('id'); + if ($('div.ui-tooltip').not('#' + $id).length) { + return false; + } + }, + close: function (event, ui) { + ui.tooltip.hover( + function () { $(this).stop(true).fadeTo(300, 1); }, + function () { $(this).fadeOut(300, function () { $(this).remove(); }); } + ); + } + }); + }); +} \ No newline at end of file diff --git a/admin/themes/default/js/modernizr-loads.js b/admin/themes/default/js/modernizr-loads.js index aa738e542..f4142963e 100644 --- a/admin/themes/default/js/modernizr-loads.js +++ b/admin/themes/default/js/modernizr-loads.js @@ -3,6 +3,10 @@ Modernizr.load([ test: window.matchMedia, nope: ["themes/default/js/vendor/matchMedia.js", "themes/default/js/vendor/matchMedia.addListener.js"] }, - "themes/default/js/vendor/enquire.min.js", - "themes/default/js/admin-theme.js", + { + load: ["themes/default/js/vendor/enquire.min.js", "themes/default/js/admin-theme.js"], + complete: function() { + $(document).trigger('admin-theme.js.ready'); + } + } ]); \ No newline at end of file diff --git a/admin/themes/default/sass/partials/_tooltip.sass b/admin/themes/default/sass/partials/_tooltip.sass index 986d49667..d1f445386 100644 --- a/admin/themes/default/sass/partials/_tooltip.sass +++ b/admin/themes/default/sass/partials/_tooltip.sass @@ -1,5 +1,4 @@ .tooltip_cont - min-width: 280px width: 100% font-size: 14px font-weight: 600 @@ -7,6 +6,7 @@ margin-bottom: 10px .tip-body > div margin-bottom: 6px + margin-right: 10px .tip_element_head font-size: 12px @@ -28,3 +28,30 @@ border: none padding: 10px box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15) + width: auto + +.tooltip-trigger + cursor: pointer + display: inline-block + vertical-align: middle + + + +.ui-tooltip.tooltip-popup + ul + margin: 0 + padding: 0 0 0 16px + list-style: disc + li + padding: 2px 0 + +.tooltip-popup-row + display: flex + justify-content: space-between + align-items: center + gap: 12px + margin: 3px 0 + white-space: nowrap + label + font-weight: 600 + margin: 0 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 083021418..699ccfb1c 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 @@ -124,8 +124,15 @@ {/if} {assign var=shown_room_type_price value=$data.feature_price_tax_excl} + {if isset($can_edit_booking_carts)} + {assign var=can_edit_booking_cart_price value=$can_edit_booking_carts} + {elseif isset($can_edit)} + {assign var=can_edit_booking_cart_price value=$can_edit} + {else} + {assign var=can_edit_booking_cart_price value=0} + {/if}
- + {$currency->prefix}{$currency->suffix}
diff --git a/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl b/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl new file mode 100644 index 000000000..eb98c6735 --- /dev/null +++ b/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl @@ -0,0 +1,47 @@ +{** +* NOTICE OF LICENSE +* +* This source file is subject to the Open Software License version 3.0 +* that is bundled with this package in the file LICENSE.md +* It is also available through the world-wide-web at this URL: +* https://opensource.org/license/osl-3-0-php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to support@qloapps.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to a newer +* versions in the future. If you wish to customize this module for your needs +* please refer to https://store.webkul.com/customisation-guidelines for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul +* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0 +*} + +{capture name='stay_periods_tooltip'} +
+
+
{l s='Stay Periods'}
+
+ + + + + + + + + {foreach from=$stay_periods item=stay_period} + + + + + {/foreach} + +
{l s='Duration'}{l s='Rooms'}
{$stay_period.from} – {$stay_period.to}{$stay_period.count}
+
+{/capture} +{capture name='stay_periods_tooltip_title'}+{$extra_stay_periods_count}{/capture} +{include file='helpers/tooltip.tpl' tooltip_content=$smarty.capture.stay_periods_tooltip tooltip_title=$smarty.capture.stay_periods_tooltip_title} diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index af087fe6b..9242207cd 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -27,6 +27,8 @@ var id_cart = {$cart->id|intval}; {/if} var id_customer = 0; + var can_edit_booking_carts = {if isset($can_edit_booking_carts) && $can_edit_booking_carts}true{else}false{/if}; + var can_add_addresses = {if isset($can_add_addresses) && $can_add_addresses}true{else}false{/if}; var admin_order_tab_link = "{$link->getAdminLink('AdminOrders')|addslashes}"; var changed_shipping_price = false; var shipping_price_selected_carrier = ''; @@ -620,6 +622,10 @@ $(booking_occupancy_wrapper).siblings('.booking_guest_occupancy').find('span').text(guestButtonVal); } {/literal} + + if (!can_edit_booking_carts || !can_add_addresses) { + $('#address_part').hide(); + } }); function resetBind() @@ -958,7 +964,9 @@ {if isset($cart->id) && $cart->id} id_cart = "{$cart->id}"; {/if} - $('#new_address').attr('href', address_link.replace(/id_customer=[0-9]+/, 'id_customer='+id_customer)); + if (address_link) { + $('#new_address').attr('href', address_link.replace(/id_customer=[0-9]+/, 'id_customer='+id_customer)); + } $.ajax({ type:"POST", url : "{$link->getAdminLink('AdminCarts')|addslashes}", @@ -1406,6 +1414,7 @@ { $("#customer_cart_details").empty(); $("#customer_cart_details").append(res.cart_detail_html); + initTooltip(); displaySummary(res); } @@ -1515,13 +1524,20 @@ if (addresses.length == 0) { $('#address_delivery, #address_invoice').hide(); - $("#new_address").show(); + if (can_edit_booking_carts && can_add_addresses) { + $('#address_part').show(); + $("#new_address").show(); + } else { + $('#address_part').hide(); + } } else { $('#addresses_err').hide(); $("#new_address").hide(); $('#address_delivery, #address_invoice').show(); + $('#address_part').show(); + $('#address_part .panel-heading').show(); } $('#id_address_delivery').html(addresses_delivery_options).hide(); @@ -1906,13 +1922,15 @@ -
- {l s='Or'}  - - - {l s='Add new customer'} - -
+ {if isset($can_edit_booking_carts) && $can_edit_booking_carts && isset($can_add_customers) && $can_add_customers} +
+ {l s='Or'}  + + + {l s='Add new customer'} + +
+ {/if} @@ -1930,7 +1948,7 @@ Details @@ -2139,13 +2157,15 @@ -
- {l s='Or'}  - - - {l s='Add new voucher'} - -
+ {if isset($can_edit_booking_carts) && $can_edit_booking_carts && isset($can_add_vouchers) && $can_add_vouchers} +
+ {l s='Or'}  + + + {l s='Add new voucher'} + +
+ {/if} @@ -2167,7 +2187,7 @@
-
+
{l s='Addresses'}
@@ -2201,6 +2221,7 @@
+ {if isset($can_edit_booking_carts) && $can_edit_booking_carts && isset($can_add_addresses) && $can_add_addresses}
@@ -2209,6 +2230,7 @@
+ {/if} {/if} -
- -
- -
-
- {*
{elseif $params.type == 'bool'} {$field_name="`$list_id`Filter_{if isset($params.filter_key)}`$params.filter_key`{else}`$key`{/if}"} @@ -314,14 +314,14 @@
- +
- + @@ -398,7 +398,7 @@ {/if} {else} {$field_name="`$list_id`Filter_{if isset($params.filter_key)}`$params.filter_key`{else}`$key`{/if}"} - + {/if}
diff --git a/admin/themes/default/template/helpers/tooltip.tpl b/admin/themes/default/template/helpers/tooltip.tpl new file mode 100644 index 000000000..dde9e5866 --- /dev/null +++ b/admin/themes/default/template/helpers/tooltip.tpl @@ -0,0 +1,38 @@ +{* +* NOTICE OF LICENSE +* +* This source file is subject to the Open Software License version 3.0 +* that is bundled with this package in the file LICENSE.md +* It is also available through the world-wide-web at this URL: +* https://opensource.org/license/osl-3-0-php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to support@qloapps.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to a newer +* versions in the future. If you wish to customize this module for your needs +* please refer to https://store.webkul.com/customisation-guidelines for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul +* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0 +*} + + + {if isset($tooltip_title) && $tooltip_title} + {$tooltip_title nofilter} + {elseif isset($tooltip_icon_class) && $tooltip_icon_class} + + {else} + + {/if} + + diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_features/index.php b/admin/themes/default/template/helpers/tree/tree_header_room.tpl similarity index 73% rename from modules/hotelreservationsystem/views/templates/admin/hotel_features/index.php rename to admin/themes/default/template/helpers/tree/tree_header_room.tpl index 409280877..eefa0f46c 100644 --- a/modules/hotelreservationsystem/views/templates/admin/hotel_features/index.php +++ b/admin/themes/default/template/helpers/tree/tree_header_room.tpl @@ -1,5 +1,4 @@ - + {if isset($title) && $title}{$title}{/if} + {if isset($toolbar)}{$toolbar}{/if} + diff --git a/classes/Language.php b/classes/Language.php index 0963279bb..af5923fca 100644 --- a/classes/Language.php +++ b/classes/Language.php @@ -919,9 +919,9 @@ class LanguageCore extends ObjectModel $file = _PS_TRANSLATIONS_DIR_.(string)$iso.'.gzip'; if (!$lang_pack_link = Tools::file_get_contents(_QLO_API_URL_.'/lang_pack/get_lang_pack.php?version='.$version.'&iso_lang='.Tools::strtolower((string)$iso))) { - $errors[] = Tools::displayError('Archive cannot be downloaded from prestashop.com.'); + $errors[] = Tools::displayError('Archive cannot be downloaded from QloApps Api.'); } elseif (!$lang_pack = json_decode($lang_pack_link)) { - $errors[] = Tools::displayError('Error occurred when language was checked according to your Prestashop version.'); + $errors[] = Tools::displayError('Error occurred when language was checked according to your QloApps version.'); } elseif (empty($lang_pack->error) && ($content = Tools::file_get_contents($lang_pack->download_link))) { if (!@file_put_contents($file, $content)) { if (is_writable(dirname($file))) { diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index c382f07c4..1f7df631f 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -229,11 +229,17 @@ abstract class PaymentModuleCore extends Module $this->currentOrderReference = $reference; $order_creation_failed = false; - $cart_total_paid = (float)Tools::ps_round((float)$this->context->cart->getOrderTotal(true, Cart::BOTH), _PS_PRICE_COMPUTE_PRECISION_); - if ($this->context->cart->is_advance_payment) { + $full_cart_total = (float)Tools::ps_round((float)$this->context->cart->getOrderTotal(true, Cart::BOTH), _PS_PRICE_COMPUTE_PRECISION_); + $amount_paid = !$dont_touch_amount ? Tools::ps_round((float)$amount_paid, _PS_PRICE_COMPUTE_PRECISION_) : $amount_paid; + + if ($amount_paid >= $full_cart_total) { + $is_advance_payment = false; + $cart_total_paid = $full_cart_total; + } else { + $is_advance_payment = true; $cart_total_paid = (float)Tools::ps_round( - (float)$this->context->cart->getOrderTotal(true, CART::ADVANCE_PAYMENT), + (float)$this->context->cart->getOrderTotal(true, Cart::ADVANCE_PAYMENT), _PS_PRICE_COMPUTE_PRECISION_ ); } @@ -314,7 +320,6 @@ abstract class PaymentModuleCore extends Module $order->gift_message = $this->context->cart->gift_message; $order->mobile_theme = $this->context->cart->mobile_theme; $order->conversion_rate = $this->context->currency->conversion_rate; - $amount_paid = !$dont_touch_amount ? Tools::ps_round((float)$amount_paid, _PS_PRICE_COMPUTE_PRECISION_) : $amount_paid; $order->total_paid_real = 0; $order->total_products = (float)$this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS, $order->product_list, $id_carrier); @@ -371,7 +376,7 @@ abstract class PaymentModuleCore extends Module } // advance payment information - $order->is_advance_payment = $this->context->cart->is_advance_payment; + $order->is_advance_payment = (int)$is_advance_payment; $order->amount_paid = 0; if ($order->is_advance_payment) { $order->advance_paid_amount = (float)Tools::ps_round( @@ -892,7 +897,7 @@ abstract class PaymentModuleCore extends Module /*for saving details of the advance payment product wise*/ $objBookingDetail->total_paid_amount = $total_price['total_price_tax_incl']; - if ($this->context->cart->is_advance_payment) { + if ($is_advance_payment) { $prod_adv_payment = $objAdvancedPayment->getIdAdvPaymentByIdProduct($idProduct); if (!$prod_adv_payment || (isset($prod_adv_payment['payment_type']) && $prod_adv_payment['payment_type']) diff --git a/classes/Product.php b/classes/Product.php index fc962d3c0..038d34b85 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -1073,9 +1073,6 @@ class ProductCore extends ObjectModel if (!$this->deleteServiceInfo()) { return false; } - } else { - $objHotelRoomTypeBedType = new HotelRoomTypeBedType(); - $objHotelRoomTypeBedType->deleteRoomTypeBedTypes(false, $this->id); } Hook::exec('actionProductDelete', array('id_product' => (int)$this->id, 'product' => $this)); @@ -1083,6 +1080,7 @@ class ProductCore extends ObjectModel !GroupReduction::deleteProductReduction($this->id) || !$this->deleteCategories(true) || !$this->deleteProductFeatures() || + !HotelRoomTypeAmenities::deleteByProduct((int)$this->id) || !$this->deleteTags() || !$this->deleteAttributesImpacts() || !$this->deleteAttachments(false) || @@ -6873,4 +6871,55 @@ class ProductCore extends ObjectModel return $price * (int)$quantity; } + + /** + * Prepare grouped core features and values for a room type, with selection state. + * + * @param int $idProduct + * @param int $idLang defaults to current context language + * @return array + */ + public static function getRoomTypeFeatureTreeData($idProduct, $idLang = 0) + { + if (!$idLang) { + $idLang = Context::getContext()->language->id; + } + + $product = new self((int) $idProduct); + $features = Feature::getFeatures( + $idLang, + (Shop::isFeatureActive() && Shop::getContext() == Shop::CONTEXT_SHOP) + ); + $selectedFeatureValues = array(); + foreach ($product->getFeatures() as $productFeature) { + $selectedFeatureValues[(int) $productFeature['id_feature']][] = (int) $productFeature['id_feature_value']; + } + + foreach ($features as &$feature) { + $featureValues = FeatureValue::getFeatureValuesWithLang( + $idLang, + (int) $feature['id_feature'] + ); + $feature['value'] = (int) $feature['id_feature']; + $feature['input_name'] = 'feature_value_parents'; + $feature['children'] = array(); + $selectedValues = isset($selectedFeatureValues[(int) $feature['id_feature']]) + ? $selectedFeatureValues[(int) $feature['id_feature']] + : array(); + + foreach ($featureValues as $featureValue) { + $featureValue['name'] = $featureValue['value']; + $featureValue['value'] = (int) $featureValue['id_feature_value']; + $featureValue['input_name'] = 'feature_values['.(int) $feature['id_feature'].']'; + $featureValue['selected'] = in_array((int) $featureValue['id_feature_value'], $selectedValues); + $feature['children'][] = $featureValue; + } + + if ($feature['children'] && count($selectedValues) === count($feature['children'])) { + $feature['selected'] = true; + } + } + + return $features; + } } diff --git a/controllers/admin/AdminCartsController.php b/controllers/admin/AdminCartsController.php index b72199d67..9a0bac0bc 100644 --- a/controllers/admin/AdminCartsController.php +++ b/controllers/admin/AdminCartsController.php @@ -695,6 +695,7 @@ class AdminCartsControllerCore extends AdminController 'cart_detail_data' => $cart_detail_data, 'cart' => $objCart, 'currency' => new Currency((int)$this->context->cart->id_currency), + 'can_edit_booking_carts' => ($this->tabAccess['edit'] === 1), 'occupancy_required_for_booking' => $occupancyRequiredForBooking, 'ajax' => true )); @@ -1265,7 +1266,8 @@ class AdminCartsControllerCore extends AdminController 'serviceProducts' => $serviceProducts, 'selectedRoomServiceProduct' => $selectedRoomServiceProduct, 'customServiceAllowed' => Configuration::get('PS_ALLOW_CREATE_CUSTOM_SERVICES_IN_BOOKING'), - 'loaderImg' => $this->context->link->getMediaLink(_PS_IMG_.'admin/ajax-loader.gif') + 'loaderImg' => $this->context->link->getMediaLink(_PS_IMG_.'admin/ajax-loader.gif'), + 'can_edit' => $this->tabAccess['edit'], )); $response['html_exta_demands'] = $this->context->smarty->fetch( @@ -1574,6 +1576,7 @@ class AdminCartsControllerCore extends AdminController 'serviceProducts' => $serviceProducts, 'selectedRoomServiceProduct' => $selectedRoomServiceProduct, 'customServiceAllowed' => Configuration::get('PS_ALLOW_CREATE_CUSTOM_SERVICES_IN_BOOKING'), + 'can_edit' => $this->tabAccess['edit'], )); $servicesTpl = $this->context->smarty->fetch( @@ -1589,7 +1592,9 @@ class AdminCartsControllerCore extends AdminController { $response = array('hasError' => false); // Check tab access is allowed to edit - if ($this->tabAccess['add'] === 1) { + $canAdd = ($this->tabAccess['add'] === 1); + $canEdit = ($this->tabAccess['edit'] === 1); + if ($canAdd || $canEdit) { $idCartBooking = Tools::getValue('id_hotel_cart_booking'); if (Validate::isLoadedObject($objHotelCartBookingData = new HotelCartBookingData($idCartBooking))) { $objCart = new Cart($objHotelCartBookingData->id_cart); @@ -1667,7 +1672,7 @@ class AdminCartsControllerCore extends AdminController ))) { $originalPrice = Product::getPriceStatic($idServiceProduct, false); // if price is different than the original service price then update the price - if ($operator == 'up' && $originalPrice != $unitPrice) { + if ($canEdit && $operator == 'up' && $originalPrice != $unitPrice) { if ($specificPriceInfo = SpecificPrice::getSpecificPrice( (int)$idServiceProduct, 0, diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index d1327461b..b013b3fe8 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -80,6 +80,9 @@ class AdminCustomersControllerCore extends AdminController $this->_join = 'LEFT JOIN '._DB_PREFIX_.'gender_lang gl ON (a.id_gender = gl.id_gender AND gl.id_lang = '.(int)$this->context->language->id.')'; $this->_join .= ' LEFT JOIN '._DB_PREFIX_.'group_lang grl ON (a.id_default_group = grl.id_group AND grl.id_lang = '.(int)$this->context->language->id.')'; $this->_join .= ' LEFT JOIN '._DB_PREFIX_.'orders o ON (a.id_customer = o.id_customer)'; + $this->_join .= ' LEFT JOIN '._DB_PREFIX_.'address ad ON (ad.id_customer = a.id_customer AND ad.deleted = 0)'; + $this->_join .= ' LEFT JOIN '._DB_PREFIX_.'state adstate ON (adstate.id_state = ad.id_state)'; + $this->_join .= ' LEFT JOIN '._DB_PREFIX_.'country_lang adcountry ON (adcountry.id_country = ad.id_country AND adcountry.id_lang = '.(int)$this->context->language->id.')'; $this->_group = 'GROUP BY a.`id_customer`'; $this->fields_list = array( @@ -119,6 +122,11 @@ class AdminCustomersControllerCore extends AdminController } $this->fields_list = array_merge($this->fields_list, array( + 'phone' => array( + 'title' => $this->l('Phone'), + 'filter_key' => 'a!phone', + 'visible_default' => true, + ), 'default_group_name' => array( 'title' => $this->l('Default Group'), 'optional' => true, @@ -144,11 +152,82 @@ class AdminCustomersControllerCore extends AdminController 'align' => 'text-right', 'badge_success' => true ), - 'phone' => array( - 'title' => $this->l('Phone'), - 'filter_key' => 'a!phone', + 'address_company' => array( + 'title' => $this->l('Company'), 'optional' => true, 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'vat_number' => array( + 'title' => $this->l('VAT number'), + 'optional' => true, + 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'address1' => array( + 'title' => $this->l('Address'), + 'optional' => true, + 'visible_default' => false, + 'search' => false, + 'orderby' => false, + ), + 'address2' => array( + 'title' => $this->l('Address (2)'), + 'optional' => true, + 'visible_default' => false, + 'search' => false, + 'orderby' => false, + ), + 'city' => array( + 'title' => $this->l('City'), + 'optional' => true, + 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'state' => array( + 'title' => $this->l('State'), + 'optional' => true, + 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'postcode' => array( + 'title' => $this->l('Zip/Postal Code'), + 'optional' => true, + 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'country' => array( + 'title' => $this->l('Country'), + 'optional' => true, + 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'address_phone' => array( + 'title' => $this->l('Home phone'), + 'optional' => true, + 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'phone_mobile' => array( + 'title' => $this->l('Mobile phone'), + 'optional' => true, + 'visible_default' => false, + 'havingFilter' => true, + 'orderby' => false, + ), + 'dni' => array( + 'title' => $this->l('Identification Number'), + 'optional' => true, + 'visible_default' => false, + 'search' => false, + 'orderby' => false, ), 'active' => array( 'title' => $this->l('Enabled'), @@ -171,7 +250,9 @@ class AdminCustomersControllerCore extends AdminController 'align' => 'text-center', 'type' => 'bool', 'callback' => 'printOptinIcon', - 'orderby' => false + 'orderby' => false, + 'optional' => true, + 'visible_default' => false ), 'date_add' => array( 'title' => $this->l('Registration'), @@ -183,12 +264,15 @@ class AdminCustomersControllerCore extends AdminController 'title' => $this->l('Last visit'), 'type' => 'datetime', 'search' => false, - 'havingFilter' => true + 'havingFilter' => true, + 'optional' => true, + 'visible_default' => false, ), 'deleted' => array( 'title' => $this->l('Banned'), 'type' => 'bool', 'displayed' => false, + 'filter_key' => 'a!deleted', 'callback' => 'getCustomerStatusLabel', ), 'order_date' => array( @@ -211,7 +295,11 @@ class AdminCustomersControllerCore extends AdminController WHERE g.id_customer = a.id_customer ORDER BY c.date_add DESC LIMIT 1 - ) as connect'; + ) as connect, + ad.company as address_company, ad.vat_number, + ad.address1, ad.address2, ad.city, adstate.name as state, + ad.postcode, adcountry.name as country, ad.phone as address_phone, + ad.phone_mobile, ad.dni'; // Check if we can add a customer if (Shop::isFeatureActive() && (Shop::getContext() == Shop::CONTEXT_ALL || Shop::getContext() == Shop::CONTEXT_GROUP)) { diff --git a/controllers/admin/AdminFeaturesController.php b/controllers/admin/AdminFeaturesController.php index aa5d9c899..c90e51990 100644 --- a/controllers/admin/AdminFeaturesController.php +++ b/controllers/admin/AdminFeaturesController.php @@ -91,13 +91,22 @@ class AdminFeaturesControllerCore extends AdminController parent::__construct(); } + public function init() + { + parent::init(); + + if (($id = Tools::getValue('id_feature')) && Tools::getIsset('viewfeature')) { + self::$currentIndex .= '&id_feature='.(int)$id.'&viewfeature'; + } + } + /** * AdminController::renderList() override * @see AdminController::renderList() */ public function renderList() { - /*$this->addRowAction('view');*//*by webkul*/ + $this->addRowAction('view'); $this->addRowAction('edit'); $this->addRowAction('delete'); @@ -154,7 +163,6 @@ class AdminFeaturesControllerCore extends AdminController ); $this->_where = sprintf('AND `id_feature` = %d', (int)$id); - self::$currentIndex = self::$currentIndex.'&id_feature='.(int)$id.'&viewfeature'; $this->processFilter(); return parent::renderList(); } @@ -322,8 +330,14 @@ class AdminFeaturesControllerCore extends AdminController break; case 'view': - $bread_extended[] = $this->feature_name[$this->context->employee->id_lang]; - $this->addMetaTitle($bread_extended[count($bread_extended) - 1]); + if (!$this->feature_name && ($id = Tools::getValue('id_feature'))) { + $obj = new Feature((int)$id); + $this->feature_name = $obj->name; + } + if ($this->feature_name) { + $bread_extended[] = $this->feature_name[$this->context->employee->id_lang]; + $this->addMetaTitle($bread_extended[count($bread_extended) - 1]); + } break; case 'editFeatureValue': @@ -334,7 +348,7 @@ class AdminFeaturesControllerCore extends AdminController } if (Validate::isLoadedObject($obj = new FeatureValue((int)Tools::getValue('id_feature_value')))) { - $bread_extended[] = sprintf($this->l('Edit: %s'), $obj->value[$this->context->employee->id_lang]); + $bread_extended[] = sprintf($this->l('Edit: %s'), $obj->value[$this->context->employee->id_lang]); } } else { $bread_extended[] = $this->l('Edit Value'); @@ -549,13 +563,15 @@ class AdminFeaturesControllerCore extends AdminController { $object = parent::processAdd(); - if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors)) { - if ($this->table == 'feature_value' && ($this->display == 'edit' || $this->display == 'add')) { - $this->redirect_after = self::$currentIndex.'&addfeature_value&id_feature='.(int)Tools::getValue('id_feature').'&token='.$this->token; + if ('feature_value' === $this->table && !count($this->errors)) { + if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && ($this->display == 'edit' || $this->display == 'add')) { + $this->redirect_after = self::$currentIndex.'&addfeature_value&id_feature='.(int)Tools::getValue('id_feature').'&conf=3&token='.$this->token; } else { - $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.(int) $object->id.'&conf=3&update'.$this->table.'&token='.$this->token; + $this->redirect_after = self::$currentIndex.'&id_feature='.(int)Tools::getValue('id_feature').'&viewfeature&conf=3&token='.$this->token; } - } elseif (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && count($this->errors) && $this->table == 'feature_value') { // enter only if feature is submitted + } elseif (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors)) { + $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.(int) $object->id.'&conf=3&update'.$this->table.'&token='.$this->token; + } elseif (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && count($this->errors) && 'feature_value' === $this->table) { // enter only if feature is submitted $this->display = 'editFeatureValue'; } @@ -570,8 +586,14 @@ class AdminFeaturesControllerCore extends AdminController { $object = parent::processUpdate(); - if (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors)) { - $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.(int) Tools::getValue('id_feature').'&conf=4&update'.$this->table.'&token='.$this->token; + if ('feature_value' === $this->table && !count($this->errors)) { + if (Tools::isSubmit('submitAdd'.$this->table.'AndStay')) { + $this->redirect_after = self::$currentIndex.'&addfeature_value&id_feature='.(int)Tools::getValue('id_feature').'&conf=4&token='.$this->token; + } else { + $this->redirect_after = self::$currentIndex.'&id_feature='.(int)Tools::getValue('id_feature').'&viewfeature&conf=4&token='.$this->token; + } + } elseif (Tools::isSubmit('submitAdd'.$this->table.'AndStay') && !count($this->errors)) { + $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.(int)$object->id.'&conf=4&update'.$this->table.'&token='.$this->token; } return $object; @@ -628,24 +650,12 @@ class AdminFeaturesControllerCore extends AdminController $this->errors[] = $this->l('Some error occurred while uploding room feature logo. Please try again.'); } } - - if ($featureValues = FeatureValue::getFeatureValuesWithLang( - $this->context->language->id, - $objFeature->id - )) { - $objFeatureValue = new FeatureValue($featureValues[0]['id_feature_value']); - } else { - $objFeatureValue = new FeatureValue(); - } - - $objFeatureValue->id_feature = $objFeature->id; - foreach (Language::getLanguages(true) as $lang) { - $objFeatureValue->value[$lang['id_lang']] = $objFeature->id.'.jpg'; - } - $objFeatureValue->save(); - return $objFeature; } + + return $objFeature; } + + return parent::processSave(); } /** diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 6be582d49..a790be281 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -3326,7 +3326,7 @@ class AdminImportControllerCore extends AdminController Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_image`'); Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_access`'); Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_booking_detail`'); - Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_branch_features`'); + Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_branch_amenity`'); Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_cart_booking_data`'); Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_branch_refund_rules`'); Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'htl_order_restrict_date`'); diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index d7aa66fd1..0f5f988f7 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -72,6 +72,7 @@ class AdminOrdersControllerCore extends AdminController ) FROM `'._DB_PREFIX_.'htl_booking_detail` hbd WHERE hbd.`id_order` = a.`id_order`) as total_guests, (SELECT SUM(DATEDIFF(hbd.`date_to`, hbd.`date_from`)) FROM `'._DB_PREFIX_.'htl_booking_detail` hbd WHERE hbd.`id_order` = a.`id_order`) as los, hbd.`id_room` AS id_room_information, + (SELECT GROUP_CONCAT(CONCAT(ps.period, \'~\', ps.cnt) ORDER BY ps.period SEPARATOR \'::\') FROM (SELECT CONCAT(hbd.`date_from`, \'|\', hbd.`date_to`) AS period, COUNT(*) AS cnt FROM `'._DB_PREFIX_.'htl_booking_detail` hbd WHERE hbd.`id_order` = a.`id_order` GROUP BY hbd.`date_from`, hbd.`date_to`) AS ps) AS stay_periods, (SELECT COUNT(spod.`id_service_product_order_detail`) FROM `'._DB_PREFIX_.'service_product_order_detail` spod WHERE spod.`id_order` = a.`id_order` AND spod.`id_htl_booking_detail`=0) as num_products'; $this->_join = ' @@ -196,6 +197,15 @@ class AdminOrdersControllerCore extends AdminController 'type'=>'date', 'displayed' => false, ), + 'stay_periods' => array( + 'title' => $this->l('Stay Periods'), + 'type' => 'text', + 'callback' => 'formatStayPeriods', + 'optional' => true, + 'search' => false, + 'displayed' => true, + 'visible_default' => true, + ), 'total_guests' => array( 'title' => $this->l('Guests'), 'type' => 'range', @@ -212,7 +222,7 @@ class AdminOrdersControllerCore extends AdminController 'visible_default' => true ), 'los' => array( - 'title' => $this->l('Stay period'), + 'title' => $this->l('Stay duration'), 'align' => 'text-center', 'type' => 'range', 'havingFilter' => true, @@ -359,6 +369,43 @@ class AdminOrdersControllerCore extends AdminController return Tools::displayPrice($echo, (int)$idCurrency); } + public function formatStayPeriods($value, $row) + { + if (empty($value)) { + return '--'; + } + + $stayPeriods = array(); + foreach (explode('::', $value) as $stays) { + $countStays = explode('~', $stays); + $stayDates = explode('|', $countStays[0]); + if (count($stayDates) === 2) { + $stayPeriods[] = array( + 'from' => Tools::displayDate(trim($stayDates[0])), + 'to' => Tools::displayDate(trim($stayDates[1])), + 'count' => isset($countStays[1]) ? (int)$countStays[1] : 1, + ); + } + } + + $datesDisplay = array(); + foreach (array_slice($stayPeriods, 0, 1) as $stayPeriod) { + $datesDisplay[] = $stayPeriod['from'].' - '.$stayPeriod['to']; + } + + $stayPeriodHtml = implode('
', $datesDisplay); + $uniqueStayPeriods = count($stayPeriods); + + if ($uniqueStayPeriods > 1) { + $this->context->smarty->assign(array( + 'stay_periods' => $stayPeriods, + 'extra_stay_periods_count' => $uniqueStayPeriods - 1, + )); + $stayPeriodHtml .= ' '.$this->createTemplate('_stay_periods_tooltip.tpl')->fetch(); + } + return $stayPeriodHtml; + } + public function initPageHeaderToolbar() { if (empty($this->display)) { @@ -484,6 +531,22 @@ class AdminOrdersControllerCore extends AdminController } $objHotelAdvancedPayment = new HotelAdvancedPayment(); + $adminCartsAccess = Profile::getProfileAccess( + (int) $this->context->employee->id_profile, + (int) Tab::getIdFromClassName('AdminCarts') + ); + $adminCustomersAccess = Profile::getProfileAccess( + (int) $this->context->employee->id_profile, + (int) Tab::getIdFromClassName('AdminCustomers') + ); + $adminCartRulesAccess = Profile::getProfileAccess( + (int) $this->context->employee->id_profile, + (int) Tab::getIdFromClassName('AdminCartRules') + ); + $adminAddressesAccess = Profile::getProfileAccess( + (int) $this->context->employee->id_profile, + (int) Tab::getIdFromClassName('AdminAddresses') + ); $this->context->smarty->assign(array( 'order_total' => $cart->getOrderTotal(true), 'is_advance_payment_active' => $objHotelAdvancedPayment->isAdvancePaymentAvailableForCurrentCart(), @@ -497,6 +560,11 @@ class AdminOrdersControllerCore extends AdminController 'payment_types' => $paymentTypes, 'PAYMENT_TYPE_PAY_AT_HOTEL' => OrderPayment::PAYMENT_TYPE_PAY_AT_HOTEL, 'currency' => new Currency((int)$cart->id_currency), + 'can_edit_booking_carts' => (!empty($adminCartsAccess['edit']) && (int) $adminCartsAccess['edit'] === 1), + 'can_add_customers' => (!empty($adminCustomersAccess['add']) && (int) $adminCustomersAccess['add'] === 1), + 'can_add_vouchers' => (!empty($adminCartRulesAccess['add']) && (int) $adminCartRulesAccess['add'] === 1), + 'can_add_addresses' => (!empty($adminAddressesAccess['add']) && (int) $adminAddressesAccess['add'] === 1), + 'max_child_in_room' => Configuration::get('WK_GLOBAL_MAX_CHILD_IN_ROOM'), 'max_child_age' => Configuration::get('WK_GLOBAL_CHILD_MAX_AGE'), 'occupancy_required_for_booking' => $occupancyRequiredForBooking, )); @@ -1354,7 +1422,6 @@ class AdminOrdersControllerCore extends AdminController $this->addJqueryUI('ui.datepicker'); $this->addJqueryUI('ui.tooltip', 'base', true); - $this->addJS(_PS_JS_DIR_.'vendor/d3.v3.min.js'); if ($this->display == 'view') { @@ -3950,10 +4017,11 @@ class AdminOrdersControllerCore extends AdminController $this->errors[] = $this->l('Please select a file to upload.'); } elseif ($objHotelBookingDocument->fileInfo['size'] > Tools::getMaxUploadSize()) { $this->errors[] = $this->l('Uploaded file size is too large.'); - } elseif(!(ImageManager::isRealImage($objHotelBookingDocument->fileInfo['tmp_name']) - || $objHotelBookingDocument->fileInfo['mime'] == 'application/pdf') - ) { - $this->errors[] = $this->l('Please upload an image or a PDF file only. Allowed image formats: .gif, .jpg, .jpeg and .png'); + } else { + $objHotelBookingDocument->setFileType(); + if (!$objHotelBookingDocument->file_type) { + $this->errors[] = $this->l('Please upload an image or a PDF file only. Allowed image formats: .gif, .jpg, .jpeg and .png'); + } } } else { $this->errors[] = Tools::displayError('You do not have permission to edit this order.'); diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 1664501e9..79499ce6b 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -107,6 +107,7 @@ class AdminProductsControllerCore extends AdminController 'Images' => $this->l('Images'), 'ServiceProduct' => $this->l('Service Products'), // 'Associations' => $this->l('Associations'), + 'Amenities' => $this->l('Amenities'), 'Features' => $this->l('Features'), 'Configuration' => $this->l('Rooms'), 'Occupancy' => $this->l('Occupancy'), @@ -121,9 +122,10 @@ class AdminProductsControllerCore extends AdminController 'Seo' => 2, // 'Associations' => 3, 'Images' => 4, - 'Features' => 5, - 'Configuration' => 6, - 'Occupancy' => 7, + 'Amenities' => 5, + 'Features' => 6, + 'Configuration' => 7, + 'Occupancy' => 8, 'ServiceProduct' => 9, 'LengthOfStay' => 10, 'AdditionalFacilities' => 11, @@ -944,12 +946,6 @@ class AdminProductsControllerCore extends AdminController $id_hotel_new = $room_type_info['id_hotel']; } - $objHotelRoomTypeBedType = new HotelRoomTypeBedType(); - if ($roomTypeBedTypes = $objHotelRoomTypeBedType->getRoomTypeBedTypes($id_product_old)) { - $roomTypeBedTypes = array_column($roomTypeBedTypes, 'id_bed_type'); - $objHotelRoomTypeBedType->updateRoomTypeBedTypes($roomTypeBedTypes, $product->id); - } - if ($product->hasAttributes()) { Product::updateDefaultAttribute($product->id); } else { @@ -1143,34 +1139,45 @@ class AdminProductsControllerCore extends AdminController } if (Validate::isLoadedObject($product = new Product((int)Tools::getValue('id_product')))) { - // delete all objects - $product->deleteFeatures(); - - // add new objects - $languages = Language::getLanguages(false); - foreach ($_POST as $key => $val) { - if (preg_match('/^feature_([0-9]+)_check/i', $key, $match)) { - if ($val) { - $product->addFeaturesToDB($match[1], $val); - } else { - if ($default_value = $this->checkFeatures($languages, $match[1])) { - $id_value = $product->addFeaturesToDB($match[1], 0, 1); - foreach ($languages as $language) { - if ($cust = Tools::getValue('custom_'.$match[1].'_'.(int)$language['id_lang'])) { - $product->addFeaturesCustomToDB($id_value, (int)$language['id_lang'], $cust); - } else { - $product->addFeaturesCustomToDB($id_value, (int)$language['id_lang'], $default_value); - } - } - } - } - } + if (!$this->saveRoomTypeFeatures($product)) { + $this->errors[] = Tools::displayError('An error occurred while saving room type features.'); } } else { $this->errors[] = Tools::displayError('A room type must be created before adding features.'); } } + /** + * Save assigned core feature values for a room type. + * + * @param Product $product + * + * @return bool + */ + protected function saveRoomTypeFeatures(Product $product) + { + $product->deleteFeatures(); + + $featureValues = Tools::getValue('feature_values', array()); + if (!is_array($featureValues) || empty($featureValues)) { + return true; + } + + foreach ($featureValues as $idFeature => $selectedValues) { + $idFeature = (int)$idFeature; + if (!$idFeature) { + continue; + } + foreach (array_unique(array_map('intval', $selectedValues)) as $idFeatureValue) { + if ($idFeatureValue) { + $product->addFeaturesToDB($idFeature, $idFeatureValue); + } + } + } + + return true; + } + /** * This function is never called at the moment (specific prices cannot be edited) */ @@ -1925,14 +1932,29 @@ class AdminProductsControllerCore extends AdminController $this->copyFromPost($this->object, $this->table); $this->object->booking_product = true; if ($this->object->add()) { - $objHotelRoomTypeBedType = new HotelRoomTypeBedType(); - $objHotelRoomTypeBedType->updateRoomTypeBedTypes(Tools::getValue('id_bed_types'), $this->object->id); // associateroom type to hotel // if ($this->object->is_virtual) { // } $this->assignRoomType($this->object); + if ($this->isTabSubmitted('Amenities')) { + $categories = HotelAmenities::getCategories(); + if ($categories && !HotelAmenities::getAmenities()) { + $this->errors[] = Tools::displayError('No amenities have been created. Please add amenities to at least one category before assigning them.'); + return false; + } + $selectedAmenities = Tools::getValue('room_type_amenities', array()); + $featuredAmenities = Tools::getValue('featured_amenities', array()); + if (!(new HotelRoomTypeAmenities())->saveRoomTypeAmenities((int)$this->object->id, $selectedAmenities, $featuredAmenities)) { + $this->errors[] = Tools::displayError('An error occurred while saving room type amenities.'); + return false; + } + } + if ($this->isTabSubmitted('Features') && !$this->saveRoomTypeFeatures($this->object)) { + $this->errors[] = Tools::displayError('An error occurred while saving room type features.'); + return false; + } PrestaShopLogger::addLog(sprintf($this->l('%s addition', 'AdminTab', false, false), $this->className), 1, null, $this->className, (int)$this->object->id, true, (int)$this->context->employee->id); @@ -2175,8 +2197,18 @@ class AdminProductsControllerCore extends AdminController } if ($object->update()) { - $objHotelRoomTypeBedType = new HotelRoomTypeBedType(); - $objHotelRoomTypeBedType->updateRoomTypeBedTypes(Tools::getValue('id_bed_types'), $object->id); + if ($this->isTabSubmitted('Amenities')) { + $selectedAmenities = Tools::getValue('room_type_amenities', array()); + $featuredAmenities = Tools::getValue('featured_amenities', array()); + if (!(new HotelRoomTypeAmenities())->saveRoomTypeAmenities((int)$object->id, $selectedAmenities, $featuredAmenities)) { + $this->errors[] = Tools::displayError('An error occurred while saving room type amenities.'); + return false; + } + } + if ($this->isTabSubmitted('Features') && !$this->saveRoomTypeFeatures($object)) { + $this->errors[] = Tools::displayError('An error occurred while saving room type features.'); + return false; + } // update position in category $object->setPositionInCategory(Tools::getValue('category_position')); @@ -2200,9 +2232,6 @@ class AdminProductsControllerCore extends AdminController if ($this->isTabSubmitted('Suppliers')) { // $this->processSuppliers(); } - if ($this->isTabSubmitted('Features')) { - $this->processFeatures(); - } if ($this->isTabSubmitted('Combinations')) { $this->processProductAttribute(); } @@ -4601,15 +4630,6 @@ class AdminProductsControllerCore extends AdminController $data->assign('htl_full_info', $hotelFullInfo); } - $objHotelBedType = new HotelBedType(); - $bedTypes = $objHotelBedType->getAllBedTypes($this->context->language->id); - $data->assign('bed_types_info', $bedTypes); - $objHotelRoomTypeBedType = new HotelRoomTypeBedType(); - if ($selectedBedTypes = $objHotelRoomTypeBedType->getRoomTypeBedTypes($product->id)) { - $selectedBedTypes = array_column($selectedBedTypes, 'id_bed_type'); - $data->assign('selected_bed_types', $selectedBedTypes); - } - $this->tpl_form_vars['product'] = $product; $this->tpl_form_vars['custom_form'] = $data->fetch(); } @@ -4851,37 +4871,17 @@ class AdminProductsControllerCore extends AdminController } else { if ($obj->id) { if ($this->product_exists_in_shop) { - $features = Feature::getFeatures($this->context->language->id, (Shop::isFeatureActive() && Shop::getContext() == Shop::CONTEXT_SHOP)); - - foreach ($features as $k => $tab_features) { - $features[$k]['current_item'] = false; - $features[$k]['val'] = array(); - - $custom = true; - foreach ($obj->getFeatures() as $tab_products) { - if ($tab_products['id_feature'] == $tab_features['id_feature']) { - $features[$k]['current_item'] = $tab_products['id_feature_value']; - } - } - - $features[$k]['featureValues'] = FeatureValue::getFeatureValuesWithLang($this->context->language->id, (int)$tab_features['id_feature']); - if (count($features[$k]['featureValues'])) { - foreach ($features[$k]['featureValues'] as $value) { - if ($features[$k]['current_item'] == $value['id_feature_value']) { - $custom = false; - } - } - } - - if ($custom) { - $feature_values_lang = FeatureValue::getFeatureValueLang($features[$k]['current_item']); - foreach ($feature_values_lang as $feature_value) { - $features[$k]['val'][$feature_value['id_lang']] = $feature_value; - } - } + $features = Product::getRoomTypeFeatureTreeData($obj->id); + if ($features) { + $tree = new HelperTree('room-type-features-tree', $features); + $tree->setShowCollapseExpandButton(true) + ->setUseCheckBox(true) + ->setAutoSelectChildren(true) + ->setUseBulkActions(true) + ->setUseSearch(true) + ->setHeaderTemplate('tree_header_room.tpl'); + $data->assign('room_type_features_tree', $tree->render()); } - - $data->assign('available_features', $features); $data->assign('product', $obj); $data->assign('link', $this->context->link); $data->assign('default_form_language', $this->default_form_language); @@ -4895,6 +4895,50 @@ class AdminProductsControllerCore extends AdminController $this->tpl_form_vars['custom_form'] = $data->fetch(); } + /** + * Prepare the amenities form tab for a room type. + * + * @param Product $obj + * + * @throws Exception + * @throws SmartyException + */ + public function initFormAmenities($obj) + { + if (!$this->default_form_language) { + $this->getLanguages(); + } + + $data = $this->createTemplate($this->tpl_form); + $data->assign('default_form_language', $this->default_form_language); + $data->assign('languages', $this->_languages); + $data->assign('link', $this->context->link); + $data->assign('product', $obj); + + if ($obj->id) { + if ($this->product_exists_in_shop) { + $roomTypeAmenities = HotelRoomTypeAmenities::getRoomTypeAmenitiesTreeData((int) $obj->id); + if ($roomTypeAmenities) { + $tree = new HelperTree('room-type-amenities-tree', $roomTypeAmenities); + $tree->setShowCollapseExpandButton(true) + ->setUseCheckBox(true) + ->setAutoSelectChildren(true) + ->setUseBulkActions(true) + ->setUseSearch(true) + ->setHeaderTemplate('tree_header_room.tpl'); + $data->assign('room_type_amenities_tree', $tree->render()); + $data->assign('featured_amenity_ids', array_column(HotelRoomTypeAmenities::getAmenities((int)$obj->id, 0, true), 'id')); + } + } else { + $this->displayWarning($this->l('You must save the room type in this shop before adding amenities.')); + } + } else { + $this->displayWarning($this->l('You must save this room type before adding amenities.')); + } + + $this->tpl_form_vars['custom_form'] = $data->fetch(); + } + public function getModalDuplicateOptions() { $idsHotel = HotelBranchInformation::getProfileAccessedHotels($this->context->employee->id_profile, 1, 1); diff --git a/controllers/admin/AdminSearchController.php b/controllers/admin/AdminSearchController.php index ac47c445f..c2ac5e28f 100644 --- a/controllers/admin/AdminSearchController.php +++ b/controllers/admin/AdminSearchController.php @@ -38,7 +38,7 @@ class AdminSearchControllerCore extends AdminController 'AdminOrderRefundRules' => 1, 'AdminRoomTypeGlobalDemand' => 1, 'AdminGroups' => 1, - 'AdminHotelFeatures' => 1, + 'AdminHotelAmenities' => 1, 'AdminCustomers' => 1, 'AdminAddHotel' => 1, 'AdminNormalProducts' => 1, @@ -190,7 +190,7 @@ class AdminSearchControllerCore extends AdminController if (!$searchType) { $this->searchAddress(); - $this->searchHotelFeatures(); + $this->searchHotelAmenities(); $this->searchAdditionalFacilities(); $this->searchRefundRules(); } @@ -428,23 +428,23 @@ class AdminSearchControllerCore extends AdminController } } - public function searchHotelFeatures() + public function searchHotelAmenities() { - if (class_exists('HotelFeatures')) { - if (isset($this->controllerAccess['AdminHotelFeatures']) && $this->controllerAccess['AdminHotelFeatures']) { - $objHotelFeatures = new HotelFeatures(); - if ($hotelFeatures = $objHotelFeatures->searchByName($this->query, $this->context->language->id)) { - $features = array(); - foreach ($hotelFeatures as $key => $hotelFeature) { - $features[$hotelFeature['id']]['name'] = $hotelFeature['name']; - if ($hotelFeature['parent_feature_id']) { - $features[$hotelFeature['id']]['id'] = $hotelFeature['parent_feature_id']; + if (class_exists('HotelAmenities')) { + if (isset($this->controllerAccess['AdminHotelAmenities']) && $this->controllerAccess['AdminHotelAmenities']) { + $objHotelAmenities = new HotelAmenities(); + if ($hotelAmenities = $objHotelAmenities->searchByName($this->query, $this->context->language->id)) { + $amenities = array(); + foreach ($hotelAmenities as $key => $hotelAmenity) { + $amenities[$hotelAmenity['id_amenity']]['name'] = $hotelAmenity['name']; + if ($hotelAmenity['id_parent']) { + $amenities[$hotelAmenity['id_amenity']]['id'] = $hotelAmenity['id_parent']; } else { - $features[$hotelFeature['id']]['id'] = $hotelFeature['id']; + $amenities[$hotelAmenity['id_amenity']]['id'] = $hotelAmenity['id_amenity']; } } - $this->_list['hotel_features'] = $features; + $this->_list['hotel_amenities'] = $amenities; } } } @@ -681,10 +681,10 @@ class AdminSearchControllerCore extends AdminController ); } - protected function initHotelFeatureList() + protected function initHotelAmenityList() { $this->show_toolbar = false; - $this->fields_list['hotel_features'] = array( + $this->fields_list['hotel_amenities'] = array( 'name' => array('title' => $this->l('name'), 'width' => 'auto'), ); } @@ -929,26 +929,26 @@ class AdminSearchControllerCore extends AdminController $this->tpl_view_vars['customers'] = $view; } - if (isset($this->_list['hotel_features']) && count($this->_list['hotel_features'])) { + if (isset($this->_list['hotel_amenities']) && count($this->_list['hotel_amenities'])) { $view = ''; - $this->initHotelFeatureList(); + $this->initHotelAmenityList(); $helper = new HelperList(); $helper->shopLinkType = ''; $helper->simple_header = true; - $helper->identifier = 'id'; + $helper->identifier = 'id_amenity'; $helper->actions = array('edit', 'view'); $helper->show_toolbar = false; - $helper->table = 'htl_features'; - $helper->currentIndex = $this->context->link->getAdminLink('AdminHotelFeatures', false); - $helper->token = Tools::getAdminTokenLite('AdminHotelFeatures'); + $helper->table = 'htl_amenity'; + $helper->currentIndex = $this->context->link->getAdminLink('AdminHotelAmenities', false); + $helper->token = Tools::getAdminTokenLite('AdminHotelAmenities'); - if ($this->_list['hotel_features']) { - $view = $helper->generateList($this->_list['hotel_features'], $this->fields_list['hotel_features']); + if ($this->_list['hotel_amenities']) { + $view = $helper->generateList($this->_list['hotel_amenities'], $this->fields_list['hotel_amenities']); } - $this->tpl_view_vars['num_hotel_features'] = count($this->_list['hotel_features']); - $this->tpl_view_vars['hotel_features'] = $view; + $this->tpl_view_vars['num_hotel_amenities'] = count($this->_list['hotel_amenities']); + $this->tpl_view_vars['hotel_amenities'] = $view; } if (isset($this->_list['groups']) && count($this->_list['groups'])) { $view = ''; diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index bdf716637..6abb5d336 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -245,7 +245,6 @@ class CategoryControllerCore extends FrontController } } - $feat_img_dir = _PS_IMG_.'rf/'; $ratting_img = _MODULE_DIR_.'hotelreservationsystem/views/img/Slices/icons-sprite.png'; $this->context->smarty->assign(array( 'warning_num' => $warning_num, @@ -258,7 +257,7 @@ class CategoryControllerCore extends FrontController 'display_all_room_types' => $displayAllRoomsTypes, 'id_hotel' => $id_hotel, 'currency' => $currency, - 'feat_img_dir' => $feat_img_dir, + 'amenity_img_dir' => _MODULE_DIR_.'hotelreservationsystem/views/img/hotel_amenities/', 'ratting_img' => $ratting_img, )); diff --git a/controllers/front/ContactController.php b/controllers/front/ContactController.php index 1014a8b5f..acb21798d 100644 --- a/controllers/front/ContactController.php +++ b/controllers/front/ContactController.php @@ -237,11 +237,11 @@ class ContactControllerCore extends FrontController $this->addJS(_PS_JS_DIR_.'validate.js'); // GOOGLE MAP - if (($PS_API_KEY = Configuration::get('PS_API_KEY')) && ($PS_MAP_ID = Configuration::get('PS_MAP_ID')) && Configuration::get('WK_GOOGLE_ACTIVE_MAP')) { + if (($PS_API_KEY = Configuration::get('PS_API_KEY')) && Configuration::get('WK_GOOGLE_ACTIVE_MAP')) { Media::addJsDef( array( 'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')), - 'PS_MAP_ID' => $PS_MAP_ID, + 'PS_MAP_ID' => Configuration::get('PS_MAP_ID'), ) ); $this->addJS( diff --git a/controllers/front/GuestTrackingController.php b/controllers/front/GuestTrackingController.php index 596d54185..c685eb430 100644 --- a/controllers/front/GuestTrackingController.php +++ b/controllers/front/GuestTrackingController.php @@ -639,7 +639,6 @@ class GuestTrackingControllerCore extends FrontController if (Validate::isLoadedObject($objHotelBranchInformation)) { if (($apiKey = Configuration::get('PS_API_KEY')) && Configuration::get('WK_GOOGLE_ACTIVE_MAP') - && ($PS_MAP_ID = Configuration::get('PS_MAP_ID')) ) { if (floatval($objHotelBranchInformation->latitude) != 0 && floatval($objHotelBranchInformation->longitude) != 0 @@ -647,7 +646,7 @@ class GuestTrackingControllerCore extends FrontController Media::addJsDef(array( 'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')), 'initiateMap' => 1, - 'PS_MAP_ID' => $PS_MAP_ID, + 'PS_MAP_ID' => Configuration::get('PS_MAP_ID'), )); $this->addJS( diff --git a/controllers/front/OrderDetailController.php b/controllers/front/OrderDetailController.php index 25111fbad..217d296f4 100644 --- a/controllers/front/OrderDetailController.php +++ b/controllers/front/OrderDetailController.php @@ -523,8 +523,18 @@ class OrderDetailControllerCore extends FrontController { $response = array('extra_demands' => false); + $idOrder = (int) Tools::getValue('id_order'); + $order = new Order($idOrder); + + if (!Validate::isLoadedObject($order) + || $order->id_customer != $this->context->customer->id + || $order->secure_key != Tools::getValue('secure_key') + ) { + $this->ajaxDie(json_encode($response)); + } + if (($idProduct = Tools::getValue('id_product')) - && ($idOrder = Tools::getValue('id_order')) + && $idOrder && ($dateFrom = Tools::getValue('date_from')) && ($dateTo = Tools::getValue('date_to')) ) { @@ -568,7 +578,7 @@ class OrderDetailControllerCore extends FrontController } $this->context->smarty->assign(array( - 'objOrder' => new Order($idOrder), + 'objOrder' => $order, )); $response['extra_demands'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order-extra-services.tpl'); @@ -874,7 +884,6 @@ class OrderDetailControllerCore extends FrontController if (Validate::isLoadedObject($objHotelBranchInformation)) { if (($apiKey = Configuration::get('PS_API_KEY')) && Configuration::get('WK_GOOGLE_ACTIVE_MAP') - && ($PS_MAP_ID = Configuration::get('PS_MAP_ID')) ) { if (floatval($objHotelBranchInformation->latitude) != 0 && floatval($objHotelBranchInformation->longitude) != 0 @@ -882,7 +891,7 @@ class OrderDetailControllerCore extends FrontController Media::addJsDef(array( 'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')), 'initiateMap' => 1, - 'PS_MAP_ID' => $PS_MAP_ID, + 'PS_MAP_ID' => Configuration::get('PS_MAP_ID'), )); $this->addJS( 'https://maps.googleapis.com/maps/api/js?key='.$apiKey.'&libraries=places,marker&loading=async&callback=initMap&language='. diff --git a/controllers/front/OurPropertiesController.php b/controllers/front/OurPropertiesController.php index 52fd94a86..06520f044 100644 --- a/controllers/front/OurPropertiesController.php +++ b/controllers/front/OurPropertiesController.php @@ -111,7 +111,7 @@ class OurPropertiesControllerCore extends FrontController $hotelsInfo = array_slice($hotelsInfo, $page * 10, 10); } - if ($displayHotelMap && Configuration::get('PS_API_KEY') && Configuration::get('WK_GOOGLE_ACTIVE_MAP') && Configuration::get('PS_MAP_ID')) { + if ($displayHotelMap && Configuration::get('PS_API_KEY') && Configuration::get('WK_GOOGLE_ACTIVE_MAP')) { if ($hotelLocations = $objHotelInfo->getMapFormatHotelsInfo(Configuration::get('WK_MAP_HOTEL_ACTIVE_ONLY'))) { $hotelLocationArray = str_replace(array('\n', '\r'), '', json_encode($hotelLocations)); } @@ -144,11 +144,11 @@ class OurPropertiesControllerCore extends FrontController $this->addJS(_THEME_JS_DIR_.'our-properties.js'); $this->addCSS(_THEME_CSS_DIR_.'our-properties.css'); // GOOGLE MAP - if (($PS_API_KEY = Configuration::get('PS_API_KEY')) && ($PS_MAP_ID = Configuration::get('PS_MAP_ID')) && Configuration::get('WK_GOOGLE_ACTIVE_MAP')) { + if (($PS_API_KEY = Configuration::get('PS_API_KEY')) && Configuration::get('WK_GOOGLE_ACTIVE_MAP')) { Media::addJsDef( array( 'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')), - 'PS_MAP_ID' => $PS_MAP_ID + 'PS_MAP_ID' => Configuration::get('PS_MAP_ID') ) ); diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index db3e4c574..decd83c62 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -66,9 +66,7 @@ class ProductControllerCore extends FrontController $this->addJqueryPlugin('jqzoom'); } - if (($PS_API_KEY = Configuration::get('PS_API_KEY')) - && ($PS_MAP_ID = Configuration::get('PS_MAP_ID')) - ) { + if ($PS_API_KEY = Configuration::get('PS_API_KEY')) { $objHotelRoomType = new HotelRoomType(); if ($roomTypeInfo = $objHotelRoomType->getRoomTypeInfoByIdProduct($this->product->id)) { $objHotelBranchInformation = new HotelBranchInformation($roomTypeInfo['id_hotel']); @@ -81,7 +79,7 @@ class ProductControllerCore extends FrontController 'longitude' => $objHotelBranchInformation->longitude, ), 'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')), - 'PS_MAP_ID' => $PS_MAP_ID + 'PS_MAP_ID' => Configuration::get('PS_MAP_ID') )); $this->addJS( @@ -352,12 +350,12 @@ class ProductControllerCore extends FrontController $hotel_location = $addressInfo['city']. ($addressInfo['id_state']?', '.$addressInfo['state']:'').', '.$addressInfo['country']; - $obj_hotel_feaures_ids = $obj_hotel_branch->getFeaturesOfHotelByHotelId($hotel_id); + $obj_hotel_amenities_ids = $obj_hotel_branch->getAmenitiesOfHotelByHotelId($hotel_id); - if (isset($obj_hotel_feaures_ids) && $obj_hotel_feaures_ids) { - foreach ($obj_hotel_feaures_ids as $key => $value) { - $obj_htl_ftr = new HotelFeatures(); - $htl_info = $obj_htl_ftr->getFeatureInfoById($value['feature_id']); + if (isset($obj_hotel_amenities_ids) && $obj_hotel_amenities_ids) { + foreach ($obj_hotel_amenities_ids as $key => $value) { + $obj_htl_amenity = new HotelAmenities(); + $htl_info = $obj_htl_amenity->getAmenityInfoById($value['amenity_id']); $htl_features[] = $htl_info['name']; } } @@ -415,19 +413,9 @@ class ProductControllerCore extends FrontController } } - $objHotelBedType = new HotelBedType(); - if ($bedTypes = $objHotelBedType->getAllBedTypes($this->context->language->id)) { - foreach ($bedTypes as $bedTypeKey => $bedType) { - $bedTypes[$bedTypeKey]['area'] = Tools::ps_round($bedType['width'], 2).' * '.Tools::ps_round($bedType['length'], 2); - } - - $bedTypes = array_column($bedTypes, null, 'id_bed_type'); - } - - $objHotelRoomTypeBedType = new HotelRoomTypeBedType(); - if ($selectedBedTypes = $objHotelRoomTypeBedType->getRoomTypeBedTypes($this->product->id)) { - $selectedBedTypes = array_column($selectedBedTypes, 'id_bed_type'); - } + $roomFeatures = $this->product->getFrontFeatures($this->context->language->id); + $roomAmenities = HotelRoomTypeAmenities::getAmenities($this->product->id, $this->context->language->id); + $hotelAmenities = HotelBranchAmenities::getAmenities($hotel_id, $this->context->language->id); $this->context->smarty->assign( array( @@ -455,14 +443,14 @@ class ProductControllerCore extends FrontController 'hotel_description' => $hotel_info_by_id['description'], 'hotel_policies' => $hotel_policies, 'hotel_features' => $htl_features, + 'room_type_features' => $roomFeatures, + 'room_dynamic_amenities' => $roomAmenities, + 'hotel_dynamic_amenities' => $hotelAmenities, + 'amenity_img_dir' => _MODULE_DIR_.'hotelreservationsystem/views/img/hotel_amenities/', 'hotel_image_link' => $hotelImageLink, 'hotel_has_images' => (bool) HotelImage::getCover($hotel_id), - 'ftr_img_src' => _PS_IMG_.'rf/', 'order_date_restrict' => $order_date_restrict, 'PS_SERVICE_PRODUCT_CATEGORY_FILTER' => Configuration::get('PS_SERVICE_PRODUCT_CATEGORY_FILTER'), - 'bed_types_info' => $bedTypes, - 'selected_bed_types' => $selectedBedTypes, - 'dimension_unit' => Configuration::get('WK_DIMENSION_UNIT', $this->context->language->id), ) ); diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt deleted file mode 100644 index 3359f0408..000000000 --- a/docs/CHANGELOG.txt +++ /dev/null @@ -1,8744 +0,0 @@ -2007-2017 PrestaShop - -NOTICE OF LICENSE - -This source file is subject to the Open Software License (OSL 3.0) -that is bundled with this package in the file LICENSE.txt. -It is also available through the world-wide-web at this URL: -http://opensource.org/licenses/osl-3.0.php -If you did not receive a copy of the license and are unable to -obtain it through the world-wide-web, please send an email -to license@prestashop.com so we can send you a copy immediately. - -DISCLAIMER - -Do not edit or add to this file if you wish to upgrade PrestaShop to newer -versions in the future. If you wish to customize PrestaShop for your -needs please refer to http://www.prestashop.com for more information. - -@author PrestaShop SA -@copyright 2007-2017 PrestaShop SA -@license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -International Registred Trademark & Property of PrestaShop SA - -Release Notes for PrestaShop 1.6 --------------------------------- -#################################### -# v1.6.1.23 - (2018-11-01) -#################################### - - -#################################### -# v1.6.1.22 - (2018-10-09) -#################################### - - Fixed bugs: - - CO: Missing class const on cert refresh - -#################################### -# v1.6.1.21 - (2018-10-03) -#################################### - - Fixed bugs: - - BO: Fix Module configure permission - BO: Disallow the negative discounts in orders - BO: Replace serialize with json_encode - - FO : Removed duplicate expressions - FO : Stop sending a copy of the contact message to the "author" (avoid spam) - - CO: Add a fallback to curl when file_get_content() return an empty response - CO: Hide arguments in debug trace page - CO: Fix the possibility to create a customer with "造" or " - CO: Catch all Swift exceptions in Mail::Send() - -#################################### -# v1.6.1.20 - (2018-06-27) -#################################### - - Fixed bugs: - - BO: Improve cookie encryption - BO: PHP 7.2 compat - Fix fatal error - BO: Fix undefined property key on Rijndael - - FO: Control if customer is the owner of the selected order in contact form - - CO: Use https no http employee class - - WS: FIX PHP 7.1 compat in WebserviceOutputBuilder - -#################################### -# v1.6.1.19 - (2018-05-28) -#################################### - - Fixed bugs: - - BO: Fix directory listing - - FO: Add compliance to GDPR law for blocknewsletter, contact form and mail alerts - -#################################### -# v1.6.1.18 - (2018-02-05) -#################################### - - Fixed bugs: - - BO: Move to HTTPS - BO: Update marketplace URL to http(S) - BO: Fix AdminController's processDeleteImage() redirect after URL - BO: Fix stock available after add product in order - BO: Fix selecting a product does not work on Mac - BO: Update AdminModulesController.php - BO: Fix Stock cover report stock out calculation - BO: Revert "Add paid order to stats dashboard even when there's no related invoice generated" - - FO: Hide the password in the confirmation email - FO: Fix the blank page when no currency defined in the shop - FO: Fix the sorting problem with a descending order in the products filtering page - FO: Split width of summary invoice pdf - FO: Fix conditionals check in DiscountController - FO: Fix the email validator - - CO: Fixed for duplication of product which has both combinations and specific prices - CO: Fix error 500, result of built-in function in write context - CO: Fix PHP 7.1 compatibility - CO: Increase limit message chars - CO: Fix PHP Warning when updating category with multishop - CO: Add DB prefix in delete() method all time $add_prefix is set to true - CO: Clean the DB after language delete - CO: Use english email template as fallback in getEmailTemplateContent - - IN: Update Postal Code of South Korea - - WS: Fix the update product web service - - -#################################### -# v1.6.1.17 - (2017-09-07) -#################################### - - Fixed bugs: - BO: Enable the create_order button when ordering virtual products & there's no available carriers - BO: Fix the currency display in supply order - BO: Fix coverage calculations in Stock Cover Report - BO: Add paid order to stats dashboard even when there's no related invoice generated - - FO: Wrong gift display in My Voucher page in My Account - FO: Fix the email validation in instant checkout - FO: Secure the contact_form from spammers - FO: Secure FO from JS injection in URL - FO: Fix select delivery_option when changing the address in OPC - FO: Display the price based on the feature Customer_Groups - - CO: Speed up search queries - CO: Load id_shop routes when needed - CO: Fix error when deleting a cart - CO: Add is_object condition in isInt function to prevent the error 500 - CO: Fix duplicate url for supplier list when try to access a supplier - CO: Update the encrypt and decrypt functions to support all PHP versions - CO: Check if CMS Category is associated to shop - - -#################################### -# v1.6.1.16 - (2017-08-01) -#################################### - - Fixed bugs: - BO: Fix bulk delete for CMS Category - BO: Remove download limit (SQL manager CSV export) - BO: Fix the export link of ASM movements - BO: Fixed bug about the language link in the reply_msg mail - BO: Add unicode prime symbol in PDF - BO: Add correctly the free_shipping cart_rule to an order from BO - BO: Update only checked fields when multishop option activated - - FO: Fix multistore search indexation - FO: Fix the pagination of the list of products - FO: Fixed opc_id_address_invoice in OPC - FO: Add impact on price to the product price - FO: CategoryController - Show page 404 with an error instead of redirecting to the 404 - FO: Use $base_dir_ssl if SSL is enabled on CMS categories pages - FO: Fix tax problems in shopping cart - FO: Fix unit price of the product with combinations - FO: Fix the translation when installing Prestashop - - CO: Use MySQL index in cart delete method - CO: Undefined index base_price - CO: Subrequest error in SQL Manager - CO: Fix import theme while module use non registered hook in DB - - -#################################### -# v1.6.1.15 - (2017-06-28) -#################################### - - Fixed bugs: - BO: Do not clutter webcaches with duplicated assets' objects - BO: Fix the conversion_rate in the order_payment table - BO: Fix the categories tree - BO: Display product reference in Stock management list (ASM) - BO: Fix available quantity for ASM items in Order_edit & FO - BO: Fix ASM real quantity issues when changing SupplyOrder status - BO: Fix subcategories pagination - BO: Prevent adding pack in itself - BO: Add the condition of SSL_ENABLED to Google Maps - BO: Eliminate currencies doubling in ASM currency list - - FO: Apache rules for .woff2 font files - FO: Fix the specific price of the default combination - FO: Fix line endings in theme's JS files - FO: Fix Category Block in the Left Sidebar on Sitemap Page - - CO: getBaseLink() should be public - CO: Fix AdminSlipController filter - CO: Fix wrong keys for cache - - LO: Update colombian tax rate - - WS: Fix preg_replace /e modifier for PHP 7.1 - - -#################################### -# v1.6.1.14 - (2017-06-05) -#################################### - - Fixed bugs: - BO: Pipes in product names in autocomplete - BO: Fix taxes in credit slip - BO: Fix the refresh button of the stats bloc in the products list - BO: Add API_KEY field to display the map - BO: Fix customer message order - BO: Set correct value on load to display the right tab - BO: Translation of return merchandise fields - BO: Fix html interpreted as text in carrier's wizard summary - BO: Fix non well formed numeric value - BO: Fix error in HelperOptions - - FO: Fix popover with multiple wishlists - FO: Shipping cost indication wrong - FO: Fix 404 bug when query string contains a LF - FO: Fix manufacturer pagination - FO: Fix JS error "Uncaught ReferenceError" - - CO: Increase carrier delay length - CO: Send Http 500 error code when we can't connect to the database instead of a 200 code - CO: make OrderInvoice overridable - - LO: Replace EN (US) by EN (UK) in UK localization pack - - -#################################### -# v1.6.1.13 - (2017-04-10) -#################################### - - Fixed bugs: - CO: Optimization for Cart Rules - CO: Fix url rewrite setting not used on multishop - CO: Clean order detail cache after setting invoice id - CO: Update Israel localization - CO: Remove unused variables declarations and assignations - - BO: Error importing theme when cache directory is cleared - BO: Allow stock transfer between warehouses in multishop context - BO: Fix search in Advanced Stock Management - BO: Use native round instead of 2 forced decimals - BO: Replace comma with dot in special price - BO: Don't double encode test email - BO: Generate PDF invoices in user language - BO: Fixes on must-have module upgrade - - FO: Fix Combination filter in stock management section - FO: Fix price display when quantity discount on combination - FO: Style categories tree in footer - - IN: Allow 255 char to company field in Adress - IN: Fix install language - -#################################### -# v1.6.1.12 - (2017-03-14) -#################################### - - Fixed bugs: - CO: Deflate .svg files - CO: Webservices now show PS validation errors - CO: Update Israel VAT to 17% - CO: Fix bag with Cart::getPackageSthippingCost cache id - CO: Fix send to multiple addresses with different names - CO: Add missing option to bcc multiple addresses in Mail::send() - CO: Use shop email as sender for template order_customer_comment - CO: Fix 7.1 compatibility - CO: Update Doc import files - - BO: Modification permission on Theme Page and option - BO: Modification permission on Theme Page and option - BO: Fix error when creating a zero value in the attribute size - BO: Fix bug while filtering Credit Slip - BO: Fix doubled quantity when ordering a customizable product - BO: Callback on HelperList should have highest priority - BO: Avoid overwriting $token in global Smarty context. - - FO: Product reference is now available in blockbestsellers module - FO: Fix ecotax rounded twice - FO: Bugfix JS with advancedEuCompliance - FO: Fix product without combination hashchange - -#################################### -# v1.6.1.11 - (2017-01-16) -#################################### - - Fixed bugs: - CO: Fix detection of APCu on Performance page - CO: Cast id_cart to int to keep it in the SQL query - CO: Performance opt on scandir() usage - CO: Fix for MySQL error 1093 in generating the invoice number - CO: Fix misuse of getimagesize returned informations - CO: Fixed method Order::isVirtual - CO: PHP 7.1 Fatal error: operator not supported in DbQuery.php - CO: Fix multiple configuration entry for PERCENT_PRODUCT_OUT_OF_STOCK_EXPIRE - - BO: Fixed category search in product association tab - BO: Fix date filter when entering BO - BO: Fixed product customization duplication - BO: Uploader helper multiple files undefined _max_files - BO: Orders amount currency fixed - BO: Remove synchronous javascript call in translations - - FO: Reset country in address page after error - FO: Fix & optimize search::find queries - FO: Re-instate default id for product list - FO: Accessory product names are not the product name (Schema.org) - FO: Fix grid view payment methods on small devices - - -#################################### -# v1.6.1.10 - (2016-11-25) -#################################### - - Fixed bugs: - - [-] MO : (3b0f90b) missing IF for PRODUCT_TAB - - [-] BO : (3979614) Fix admin email translations - - - Improved/changed features: - - [*] BO : (81d6f5b) Bring back email pattern value in case someone uses it - - - - - -#################################### -# v1.6.1.7 - (2016-09-06) -#################################### - - Fixed bugs: - - [-] BO : (f19ae86) Solved problem with non-unserialized filters datas - - [-] FO : (2636a31) Fix rouding error in ProductController (PSCSX-7566) - - - Improved/changed features: - - [*] CORE : (e12c209) Fix a case where $context->smarty could be undefined - - - Others: - - CO: Fixed cart rule removal with gift product - CO: Fix bug #PSCSX-6142 - wrong default cover id in webservice - CO: change visibility of installControllers() method - CO: Fix warning when duplicating products - - FO: Add a hook on cart product line - FO: Solved problem with a situation when we'd like to use category thumb w/o category lead banner - FO : Prevent customer to view all codes - - Resolved "price.toFixed is not a function" issue - PSCSX-7138 Bad discount computation when multiples tax rates are involved - Keep CMS HTML code when upgrading - - -#################################### -# v1.6.1.6 - (2016-06-15) -#################################### - - Fixed bugs: - - [-] BO : (2e3d0f6) fixed bug when no results with address and map does not exist - [-] BO : (2d30765) add user shop origin in autocomplete cart rule - [-] BO : (d207083) fixed bug parent tab list wont show if admin tab class is invalid. - [-] BO : (052208b) fixed bug when toggle status product not logged - - [-] FO : (c0ee6b7) Fix CSS 404 when using subdirectory - [-] FO : (e4a7b70) Only display vouchers available 'only' for customers - [-] FO : (e4e2b61) smartyHook now returns empty string when module is not installed. - [-] FO : (b2f9338) #PSCSX-5582 fix wrong displayed specific price on product detail - [-] FO : (44c1b4e) Display only available vouchers in customer back office - [-] FO : (c736160) on user bo, display all discount values - - [-] TEST : (c586ee3) Fix PHP 7 tests - - [-] CORE : (39241d6) Check for displayPaymentEU to fix advanced checkout restrictions - [-] CORE : (fb208a3) Fix fatal error on classes/stock/StockAvailable.php (1.6) - - [-] PDF : (2d14094) Fix generation of PDF files - - [-] WS : (114f10b) Fix for PHP 5.2, 5.3 and 7.0 compatibility - - [-] MO : (e7a51f3) #NM-248 Broken pagination links in loyalty - - - Improved/changed features: - - [*] FO : (4e1a70a) Added more information about minimum amount - - - Added Features: - - [+] IN : (a1ce85c) All key must not be nullable - - - - - -#################################### -# v1.6.1.5 - (2016-04-08) -#################################### - - Fixed bugs: - - [-] PDF : (9f7ab92) update constraints on Addresses display - [-] PDF : (e7103c4) updated b2b template - [-] PDF : (e0bde47) invoices printing now done as page groups to keep the pagination relevant - [-] PDF : (3464ca0) fixed pagination block display - [-] PDF : (a788652) Moved note block to his own remplate - [-] PDF : (b5ef9f2) (re) added shipping box in invoice - - [-] FO : (331527c) Fix incorrect cart rules list in case of country restriction (PSCSX-7873) - [-] FO : (a343610) PSCSX-7449, fix parse error in AuthController.php - [-] FO : (42d8847) #PSCSX-5582 fix wrong displayed specific price on product detail - [-] FO : (755f77b) Fix warning if combinations are disabled - [-] FO : (05b701f) Fix combination price calculation with impact and reduction - [-] FO : (b1352d7) Fix JavaScript mistake in blocklayered.js - [-] FO : (8ee195a) fixed bug on payment module, check if defined $order object - - [-] CORE : (9870d84) use a cached cacert file for curl - [-] CORE : (deebce3) Fixed double preg_quote() - - [-] BO : (647eba0) Fix the display of the listing filters on the toolbar - [-] BO : (6e69c4a) Change only active state on bulk status change - [-] BO : (69b87a8) Fix incorrect shipping taxes in order slips (PSCSX-4881) - [-] BO : (44eb96c) Fix filter by category change not working after other actions. … - [-] BO : (76d53ac) add error message on upload theme bigger than post_max_size - - [-] LO : (011a2e5) Traditionnal Chinese for HK pack - - [-] TR : (948a3e5) language.xml - fix TW script - - [-] SECURITY : (cc49345) Fixes PSCSX-4841 Usage of ECB mode - - [-] CLASS : (7234efd) Alias / return false if feature is not active in aliasExists() - - [-] MO : (de7e9aa) bankwire / correct module name for translation - - - Improved/changed features: - - [*] CORE : (85e6025) Update swift mailer - [*] CORE : (81465fe) Add a fallback to curl when file_get_content() return an empty response - - [*] TR : (4b3ddf5) Update Polish installer - [*] TR : (62bbc16) feature.xml in Vietnamese - [*] TR : (1cce929) Update italian installer - [*] TR : (5319857) Improve Dutch meta info - - [*] CLASS : (ec03391) Hook / indicate which method to use for deprecated methods - - [*] FO : (999ff45) Removed template logic that is not needed - - - Added Features: - - [+] TR : (30c4adc) Adding Vietnamese installer - - - - - -#################################### -# v1.6.1.4 - (2016-01-06) -#################################### - - Fixed bugs: - - [-] CORE : (c243c8a) Fix ObjectModel error management on validation - [-] CORE : (508e1cd) Fix AdminTab PHP 7 compatibilty - [-] CORE : (355a4a7) Report of https://github.com/PrestaShop/PrestaShop/pull/3673 - [-] CORE : (0a07da9) fix #PSCSX-7007, notice in searchcron - [-] CORE : (13285fd) Fix PSCSX-6953, bad upload error check - - [-] TESTS : (b826568) removed tests for prestafraud module - - [-] BO : (c35d896) Fixed bug in HTMLTemplateInvoice prevents problems with invoice prefixs - [-] BO : (e71bdaa) fixed translation bug in prestashop addons modal - [-] BO : (48d9da7) Fixed upgrade index specific_price table - - [-] FO : (0eecc7a) Fix #PSCSX-7021, bad specific base price for combinations - [-] FO : (40717fa) Fix #PSCSX-7021, bad impact price / currency - [-] FO : (0bd1bdc) Fix robots.txt rules for default language URLs - [-] FO : (ed08594) Fix quantity discount table wont appear again after swith on combination without quantity discount - - - Improved/changed features: - - [*] PROJECT : (bcbec89) Improve PHP 7 compatibility - - [*] BO : (ad3c187) #PSCSX-6251 on product order add unit product price without tax - [*] BO : (06502f9) Dont restrict orders listing to addresses join - - [*] CORE : (94846bd) Fix #PSCSX-7015, Uploader setAcceptFiles case sensitive - - [*] FO : (83c7ee1) #PSCSX-5582 update price from discount when changing quantity - - -#################################### -# v1.6.1.3 - (2015-11-26) -#################################### - - Fixed bugs: - - [-] FIX : (e3eef33) Uncaught Error: Access to undeclared static property: Validate::$field - [-] FIX : (0ab3b7d) Uncaught Error: Access to undeclared static property: Validate::$field - - [-] BO : (c83e478) Revert from #4015 to allow longer meta - [-] BO : (f1d09d6) Fix flush of local cache when adding a new specific price (PSCSX-7184) - - [-] FO : (bbbd4b3) Add id_order to order_details link to work without JS - - [-] LO : (673d7fe) Fix Intra-EU VAT - - - - - -#################################### -# v1.6.1.2 - (2015-10-29) -#################################### - - Fixed bugs: - - [-] FO : Fix wrong date check in specific price (PSCSX-6942) - [-] FO : Fix performances issue with SpecificPrice (PSCSX-6942) - [-] FO : Fix undefined var when no combinations - [-] FO : Added missing hook for AdvancedEU on accessories - [-] FO : Fix #PSCSX-6995, bad redirection on cart when minimum amount for order - [-] FO : Fix performances issue with smarty custom - [-] FO : Fix bug #PSCSX-6938, bad validation when empty zipcode validation pattern - [-] FO : Metas in maintenance mode - [-] FO : Fix #PSCSX-6926, notice Undefined index: nb_products - [-] FO : Fix #PSCSX-6884, bad redirect when PS_CART_REDIRECT - [-] FO : Fix #PSCSX-6888, products links without correct anchor for attributes in shopping-cart - [-] FO : Fix bug #PSCSX-6884, could not add to cart in quickview - [-] FO : #PSCSX-5366, no localstorage with Safari private browsing - [-] FO : Fix #PSCSX-5053, Too much calls of findCombination again - [-] FO : Fix #PSCSX-5480, content hooked to 'productListReviews' is removed on dynamic list/grid update - [-] FO : Fix #PSCSX-5344, could not see available vouchers when changing quantities - [-] FO : Fix #PSCSX-5447, no validation on non multishop filed in multishop - [-] FO : Report of https://github.com/PrestaShop/PrestaShop/pull/3928 - [-] FO : Fix #PSCSX-5182, for newsletter flag for customer if previously registred as guet - [-] FO : fix when clicking filters labels, not checkbox. Fixed an #3337 reported on 1.6.1.x - [-] FO : Footer fix in default-bootstrap theme: nocache on copyright year #3351 reported on 1.6.1.x - [-] FO : #PSCSX-6820 part 2/2 - [-] FO : Fix bug #PSCSX-6770, bad redirection to my account in accordion footer - [-] FO : Fix #PSCSX-6749, OrderHistory multishop getCustomerOrders shared orders - [-] FO : Fix #PSCSX-6701, notice on customizedDatas - [-] FO : Fix #PSCSX-6699, Table 'ps_product_reductions' already exists - [-] FO : Fix #PSCSX-6661 Fatal error Property CustomerThread->id_order is not valid - [-] FO : Possible error Cannot read property 'iso_code' of undefined - [-] FO : Possible undefined function binduniform - [-] FO : Fix #PSCSX-5669, $errors_discount dead code, report of https://github.com/PrestaShop/PrestaShop/pull/3076 - [-] FO : Fix bug #PSCSX-4707, new products name in columns - [-] FO : Fix #PSCSX-4898, possible fatal error in products-comparison - [-] FO : Avoid possible undefined vars in global.js - [-] FO : minimum order value outside order steps - [-] FO : Fix #PSCSX-5445, take account of PS_SSL_ENABLED_EVERYWHERE in file manager config - [-] FO : Css fix #PSCSX-5408, TOS width on small devices - [-] FO : Fix #PSCSX-5319, dead code in product-list.tpl - [-] FO : Fix #PSCSX-5483, missing nofollow in pagination.tpl - [-] FO : Fix #PSCSX-5261, no alt on subcategories images - [-] FO : Avoid displaying payment message - [-] FO : Fix #PSCSX-6492, negative prices on product page - [-] FO : Fix issue with multishop / multilanguage tags - [-] FO : Fix #PSCSX-4899, Search alias for words containing hyphens fail - [-] FO : Fix current_url variable used in pagination - [-] FO : Fix #PSCSX-6582, could not change currency with PS_DETECT_COUNTRY - [-] FO : #PSCSX-5459 Add to cart button for accessories - - [-] CORE : cleanCompareProducts interval - [-] CORE : Could not edit a carrier, follow up https://github.com/PrestaShop/PrestaShop/pull/4094 - [-] CORE : Fix #PSCSX-7012, bad length for compagny field (address) for upgrade from < 1.5.2.0 - [-] CORE : #PSCSX-6970, fix typo in getCMSContent - [-] CORE : Undefined var follow up https://github.com/PrestaShop/PrestaShop/pull/4006 - [-] CORE : Could not disable third party modules - [-] CORE : #PSCFV-10112 notice Undefined index: host in classes/ConnectionsSource.php - [-] CORE : Fix #PSCSX-4768, too much call of Carrier::addDeliveryPrice - [-] CORE : Adding few casts to ValidateOrder - [-] CORE : Error in foreign field name - [-] CORE : Follow up https://github.com/PrestaShop/PrestaShop/pull/2509/files - [-] CORE : Report of https://github.com/PrestaShop/PrestaShop/pull/3964 - [-] CORE : Report of https://github.com/PrestaShop/PrestaShop/pull/3963 - [-] CORE : Fixed currency convertion - [-] CORE : Fix #PSCSX-5357, inconsistent cart rule country restriction - [-] CORE : Allow invoice template override - [-] CORE : Fix #PSCSX-6798, add index on search_index table - [-] CORE : Fix #PSCSX-6797, hard coded table name in configuration class - [-] CORE : Typo report of https://github.com/PrestaShop/PrestaShop/pull/3995 - [-] CORE : Fix #PSCSX-6719, bad cache on colors list on attribute deletion - [-] CORE : Again and again fix #PSCSX-6719, bad cache_default_attribute on attribute group deletion - [-] CORE : Fix #PSCSX-6814, bad sql query in Lanqguage::loadUpdateSQL() - [-] CORE : Order::hasDelivery new return type - [-] CORE : Fix #PSCSX-6755, Notice: Undefined variable: delivery_address in classes/pdf/HTMLTemplateOrderSlip.php - [-] CORE : Fix #PSCSX-6632, Property StockAvailable->id_product is empty - [-] CORE : Bad norm function getCountry - [-] CORE : Revert of https://github.com/PrestaShop/PrestaShop/pull/2509 - [-] CORE : Fix #PSCSX-6637, incorrect cart total - [-] CORE : Fix #PSCSX-5273 Reflect 6 decimals for product weight according db structure - [-] CORE : Fix case statement in HTMLTemplateInvoice - [-] CORE : Fix colon in switch statement - [-] CORE : Remove leftover symbol in Translate.php - [-] CORE : Stock synchronization fails in case of shared warehouse - [-] CORE : #PSCSX-6577, could not load bootstrap-sortable.js with Chrome - [-] CORE : DbMySQLi + socket - - [-] BO : Notice in AdminCustomers - [-] BO : Fix #PSCSX-7050, wrong pictures shown in AdminProducts - [-] BO : Fix bad usage of .html() instead of .text() in carrier_wizard.js - [-] BO : Added missing escape on legend field product form - [-] BO : Fix pagination, followup https://github.com/PrestaShop/PrestaShop/commit/dd3cf42354fc1a7cd08b6b9efe202b185bdf3239 - [-] BO : Show stock warning on products less then 0 - [-] BO : Fix PSCSX-6960 - AdminCustomerController, string now translatable - [-] BO : remove old warning icon if no customer found when search one in create order - [-] BO : Fix #PSCSX-6916, Bad redirect when deleting shopping cart rule in customer details view - [-] BO : Fix #PSCSX-6903, Exception on specific price amount import - [-] BO : Fix bug #PSCSX-6924, Property CustomerMessage->message is empty - [-] BO : Fix #PSCSX-6837, delete thumb on product import - [-] BO : Fix #PSCSX-6865 bad utm_campaign, notice: Undefined index: lang_iso - [-] BO : Fix #PSCSX-6860, customer groups - remove enable status on customers - [-] BO : Fix #PSCSX-6859, wrong redirect after editing customer - [-] BO : Fix #PSCSX-6805, confusion about private messages in AdminCustomerThreads - [-] BO : Fixed checking if module is trusted PSCSX-6883 - [-] BO : Fixed bug while testing module - [-] BO : Fix #PSCSX-5435, remove back button message of expired POST data - [-] BO : Fix meta description, follow up https://github.com/PrestaShop/PrestaShop/pull/4015 - [-] BO : Bad sql association for date_upd of product and categories, could not reorder - [-] BO : Partial report of https://github.com/PrestaShop/PrestaShop/pull/3853 - [-] BO : fixed bug Unable to translate header - [-] BO : Fix #PSCSX-6834 Enable product pack and product dematerialized for redirection product (Moved 301) - [-] BO : Fix #PSCSX-6834 Enable product pack and product dematerialized for accessories - [-] BO : fix column icon width - [-] BO : Fix #PSCSX-6663, bad table id after DND - [-] BO : Fix use of custom class with textarea (even if autoload_rte not set) - [-] BO : Fix #PSCSX-6801, AdminBackupControllerCore and timeout - [-] BO : Fix #PSCSX-6795, Catalog Rule for a specific shop do not save shop_id - [-] BO : Group by on currencies on AdminSpecificPriceRule - [-] BO : Fix #PSCSX-6667, bad action display when sub categories disabled - [-] BO : Fix #PSCSX-6753, parse serror when quotes in import file name - [-] BO : Fix #PSCSX-6804, could not bulk delete attributes - [-] BO : Fix #PSCSX-6752, bad id for email translations toggle - [-] BO : Fix #PSCSX-6743, possible Exception in product tabs loading - [-] BO : Fix #PSCSX-6723, could not re enable module on devices - [-] BO : Fix #PSCSX-6718, virtual product Duplicate entry - [-] BO : Fix #PSCSX-6687, commas in carrier prices wizard - [-] BO : Fix #PSCSX-6664, product date_upd when position change - [-] BO : Fix #PSCSX-6664, category date_upd when position change - [-] BO : Fix performance issue with tags - [-] BO : #PSCSX-6658, wrong escaping in helpers/form/form.tpl - [-] BO : undefined var in AdminProducts - [-] BO : Fix #PSCSX-6636 modules logo witdh - [-] BO : Fix #PSCSX-6629 typo Warehouse::$idintval - [-] BO : Fix #SCSX-6588, wrong "back o list" href on AdminCategories - [-] BO : name of select multiple in Form Helper TPL - [-] BO : Fix #PSCSX-5442 cart rules don't retain customer name/email on error - [-] BO : Fix issue with smarty lazy cache & timestamp (PSCSX-6601) - [-] BO : Fix issue with smarty lazy cache & timestamp - [-] BO : Fix #PSCSX-5271, notices on order statuses - [-] BO : Duplicate currencies in AdminCountries in multishop - [-] BO : Fix issue with cover image (PSCSX-6473) - [-] BO : Fix product import dates - [-] BO : Fix #PSCSX-6583 / You can now have a "from" date and a "to" date like '0000-00-00 00:00:00' - [-] BO : Pass empty firstname and lastname email vars to mail template - - [-] INSTALLER : Date format was American (cherry picked from commit 7609530fce25663160def3d4387987d4c957885e) - - [-] TR : Change 'Uitzonderlijk' into 'Openstaand' - [-] TR : #PSCSX-5938 Emails not copied into theme folder - - [-] IN : Wrong id_guest in cart.xml - [-] IN : Bad install value for delivery table - [-] IN : Fix #PSCSX-6700, could not install in Czech, missing translation for fixtures data, still needs translation to be done - - [-] WS : Manage multiple exclude filter values - - [-] CLASS : AdminController / Remove displayNoSmarty() method - [-] CLASS : Module / $live_edit declared but not used - [-] CLASS : Customization / Use getValue() instead of getRow() - [-] CLASS : Address / Use getValue() instead of getRow() in isUsed() method - [-] CLASS : Missing category param when update positions + duplicate call - [-] CLASS : Category / Use DB delete() method in deleteCategoriesFromShop() - [-] CLASS : Category / Use DB delete() method in cleanGroups() & cleanAssoProducts(); - [-] CLASS : Product / Use DB delete() method in cleanGroups() - [-] CLASS : Customer / Give the possibility to filter on active field in getCustomers() - [-] CLASS : Cart / Correct cache_key name for getOrderedCartRulesIds() - [-] CLASS : Product / Use DB delete() method in deleteAccessories() & deleteFromAccessories() methods - [-] CLASS : Product / Change getDefaultIdProductAttribute() method - [-] CLASS : Product / Change getIdProductAttributeMostExpensive() method - [-] CLASS : Product / Use null direclty instead of create new var as null - [-] CLASS : Product / Call orderbyPrice only if there are some results - - [-] MO : #PSCSX-6820 related - [-] MO : NM-188 Correct points on product load in loyalty - - [-] INSTALL : Fix possible duplicate hook - - [-] TEST : Removing PrestaFraud scoring test - - [-] PDF : #PSCSX-6569 Could not translate "Free Shipping" in pdf - - - Improved/changed features: - - [*] BO : #PSCFV-12359 #PSCSX-1257 product tab async loading - [*] BO : wording AdminCarrierWizard - typo - [*] BO : wording - thumbnail image - [*] BO : wording - assign vs affect - [*] BO : Add versioning to addJS to renew admin.js - [*] BO : Fix max width 96px on module logo on "not trusted module" popin. #3356 reported of 1.6.1.x - [*] BO : makes picking products easier - [*] BO : Fix #PSCSX-4024 removing extra sapace at end of product names and url rewrite - [*] BO : Fix #PSCSX-6132 Add search_contains in chosen init - [*] BO : Fix #PSCSX-6570, id_connections in last connections - [*] BO : #NM-305 add driver in AdminInformation - [*] BO : Meta title and description use textarea - - [*] CORE : SpecificPriceRule without conditions to id_product 0 instead of full products list - [*] CORE : Fix htmlentities in conf - [*] CORE : #PSCSX-3181, follow up https://gist.github.com/hereswhatidid/8c8edef106ee95138b03 implements data-keepinline for scripts not being defered - [*] CORE : Media::getMediaPath improved - [*] CORE : Fix #PSCSX-5772 & #PSCSX-4666, enable invoice number reset - [*] CORE : #PSCSX-3576, add category thumbnail - - [*] FO : theme.sql new demo address - [*] FO : Fix #PSCSX-5053, improve findCombination speed - [*] FO : Add InStock mdata when out of stock is OK - - [*] TR : update Swedish installer - [*] TR : Better consistency + improved readability - [*] TR : Translate placeholder imgs to Dutch - [*] TR : Translate login info mail to Dutch - [*] TR : Translated risk levels to Dutch (cherry picked from commit 1e6788f358bc850d3d22964839aaa885119c9be9) - [*] TR : Translated country list to Dutch (cherry picked from commit ea0cdff236936f6a5af3511c0f285dbda24983b6) - [*] TR : Swedish install files, few edits - [*] TR : Translate install xml files to Swedish - - [*] IN : fixtures, add some Czech translations - - [*] MO : Blocklanguages add hreflang and rel alternate to the links for a better SEO and avoid duplicate content - - [*] INSTALL : Alter ignore drop key is now generic and fix an 1.6.1.1 error - [*] INSTALL : The 1.6.1.1 indexes are now safely removed - - - - - -#################################### -# v1.6.1.1 - (2015-08-20) -#################################### - - Fixed bugs: - - [-] FO : Fix #NM-132 undefined var - [-] FO : Fix #PSCSX-6537 / show-right-column in body class - [-] FO : Fix bug #PSCSX-6517, could have edit with defer JS + missing closing tags + additionnal js loading in ajax from #PSCSX-2361 again - [-] FO : Fix #PSCSX-6520 Wrong product availability text on Price drop page - [-] FO : Fix bug #NM-579 Signing in does not change status in the top navbar - [-] FO : undefined var + could not add to cart without block cart top hooked - [-] FO : display only specific price by current combination - [-] FO : remove leftColumnBlocks var declaration in global.js - [-] FO : Fix #PSCSX-6504 / Productcomments and new global.js stars are not display correctly - [-] FO : no cart-summary.js on step 0 with minimu order error - [-] FO : #PSCSX-6432 fix bug while specific price start to 1 quantity and initial price to 0 - [-] FO : Fix #PSCSX-6236, search missing lowercase chars - [-] FO : Remove useless parenthesis - [-] FO : add colors to product list before the hook "actionProductListModifier" - [-] FO : Fix #PSCSX-2183 bdisplay of one_phone_at_least in OPC - [-] FO : Fix temp table on slave issue - [-] FO : Can not see addresses when already registred as guest in OPC - [-] FO : Fix missing cart rule lines in shopping cart - [-] FO : Fix bug #PSCSX-5153, bad free shipping display when carrier out of range - [-] FO : Fix #PSCSX-5820, close new acount form - [-] FO : Fix #PSCSX-4346 correct ajax display of reduction - [-] FO : Fix #PSCSX-4346 specific price amount tax - [-] FO : #PSCSX-6427, link to favorites product in my accoutn with https - [-] FO : Fix bug #PSCSX-4260, "Free shipping" for virtual products, undefined $virtualCart - [-] FO : Fix #PSCSX-6316, display bug with uniform and selects in left column - [-] FO : #PSCSX-6341 fix bug when apply cart rule with free shipping - [-] FO : Fix #PSCSX-5038 order state on split order - [-] FO : Fix #PSCSX-5038 quantity on order detail of split order - [-] FO : #PSCSX-5065, backward compat - [-] FO : auth error if $back is not defined - [-] FO : $order is as class variable - [-] FO : theme retro-compatibility regarding the CGV - [-] FO : #PSCSX-6227 ajax search add hook for stats search - [-] FO : Fix #PSCSX-6345 handle id_product_attribute - [-] FO : Fixed bug showing errors in manufacturer list - [-] FO : Wrong discount table for combination - [-] FO : Invalid combination price in case of ecotax - [-] FO : Fix #PSCSX-6275, issue with attribute anchor separator - [-] FO : Fix #PSCSX-4340, wrong tax label display in cart summary - [-] FO : Fix bug #PSCSX-6103, no product images in cart when combinations feature not active - [-] FO : Fix #PSCSX-6165, root category in breadcrumb - [-] FO : Fix #PSCSX-4340, wrong tax label display in blockcart layer - [-] FO : NOTICE: non-existing property - [-] FO : fixed wrong postcode regexp validation - [-] FO : Fix wrong statement close - - [-] BO : Fix memcached test (PSCSX-6348) - [-] BO : Fix issue with multiple trees loaded on the same page (PSCSX-6268) - [-] BO : Hightlight default combination into Product Quantities tab - [-] BO : Fix #PSCSX-6474, bad display of inputs in orders - [-] BO : #PSCSX-6437 Product import, each image downloaded twice. - [-] BO : Fix placeholder clear event in AdminCustomerThreadsController - [-] BO : Fix #PSCSX-6474 currency input in orders - [-] BO : Fix bug with AdminOrdersController when trying to edit a product - [-] BO : Fix cover image issues (PSCSX-6473) - [-] BO : #PSCSX-6458 KPI not loaded - [-] BO : #PSCSX-6441 small css fix - [-] BO : #PSCSX-6385 remove ability to order position while filtering - [-] BO : Fix filters errors - [-] BO : #PSCSX-6453 Import duplicates parent categories if it does not exist - [-] BO : Set file as required in attachment form - [-] BO : badges in quickview modal - [-] BO : Fix #PSCSX-6457 "Maintenance Mode" disappears in Modules page - [-] BO : Fix #PSCSX-5992, bad display of carriers list - [-] BO : #PSCSX-5968, unable to add payment choosing specific date - [-] BO : #PSCSX-5931 type input field 'file' with multiple option to true - [-] BO : Correct chosen-sprite.png link - [-] BO : Fix #PSCSX-6380 , spaces in products' image url when importing - [-] BO : #PSCSX-6290 Datetimepicker hidden by header - [-] BO : again Fix #PSCSX-5821, after filtering products issue with category - [-] BO : Fix bug #PSCSX-5996, ordering Attributes Groups - [-] BO : Fix KPI refresh functions - [-] BO : #PSCSX-6308 refacto order slip PDF generation - [-] BO : Fix #PSCSX-5407 correct cart summary total - [-] BO : Usage of defined Referrer variable - [-] BO : Could not export default theme in dev mode because of .sass-cache - [-] BO : Fix #PSCSX-4214, "Recommended modules" on Localization Tab - [-] BO : Fix timeout on customer modules list - [-] BO : #PSCSX-6305 Display filters in back-office on mobile - [-] BO : Fix use of custom class with textarea (even if autoload_rte not set) - [-] BO : Remove duplicate bought and must have modules - [-] BO : Fixed bug in partial refund, not executed the hook actionOrderSlipAdd #PSCSX-6287 - [-] BO : Fix #PSCSX-6367, unable to see status of vouchers related to customer - [-] BO : Fix #PSCSX-6361, in employee admin theme list name, each theme name is "default" - [-] BO : Use original PS Addons width for modules icons (57 px) - [-] BO : Fix bought module that can't be installed because of the "must have" type - [-] BO : Fix getModuleTranslation() - [-] BO : Fix #PSCSX-5821, after filtering products issue with category tree filter - [-] BO : avoid redirection on addons registration - [-] BO : Fix #PSCSX-5390, duplicate in modules exceptions - [-] BO : libxml_clear_errors cache issue in AdminController Modules list - [-] BO : Set stock option the same for all context shops when creating a new product - [-] BO : Fix #PSCSX-6234, could not update category position to first position - [-] BO : Fix #PSCSX-6206, bad redirection on Transform a guest into a customer - [-] BO : Incorrect price TI initialisation in case of ecotax - [-] BO : Fix #PSCSX-6160, could not select hook in Admin Modules Positions - [-] BO : FixBug #PSCSX-6208 - Profiling redirection error - [-] BO : Fix unknown iso_user JS var while in AdminTab - [-] BO : Fix sign out exception with debug profiling - [-] BO : Fix bug #PSCSX-6246 - Wrong cart status filter - [-] BO : FIX #PSCSX-6158, notice in modules list - [-] BO : Fix #PSCSX-5365 id_shop not well set - [-] BO : Fix #PSCSX-5738 duplicate product on supply order - [-] BO : Fix #PSCSX-5883 need to check if multistore is enable - [-] BO : Fix #PSCSX-6138, CustomerMessage->message length (244826) must be between 0 and 65000 - [-] BO : Fix #PSCSX-5844, Property CustomerMessage->message is not valid - [-] BO : Fix bug #PSCSX-6154 - Customer filter in orders - [-] BO : Media::addJsDefL should be called in admin controllers with addslashes and no htmlentities - [-] BO : More flexible way to declare click function - [-] BO : Fix #PSCSX-6087 "Maintenance Mode" disappears in Modules page - [-] BO : Fix #PSCSX-6086, wrong version in header - [-] BO : Fix bug #NM-513 - JavaScript error on modules using AdminTab - [-] BO : Change bulk modules update - [-] BO : Fix bug #PSCSX-6052 - Invalid date_upd in import - [-] BO : Fix tree issue - [-] BO : Fix #PSCSX-5615 tinymce allow all html element - - [-] PDF : Order slip Tax detail computation fix. #PSCSX-6408 - [-] PDF : EN to dejavusans - [-] PDF : Fix shop_address missing in old order_invoice outside of upgrade process - [-] PDF : smarty warning for Order slip. #PSCSX-6245 - [-] PDF : Fix #PSCSX-5167, bad date display in delivery slip - [-] PDF : Need to use product_reference that depend of attribute - - [-] CORE : #PSCSX-5164 notices - [-] CORE : Fix PSCSX-6544, typo in replaceAccentedChars for letter B - [-] CORE : Fix bug #PSCSX-5912, actionCategoryDelete on all sub tree - [-] CORE : Avoid a division by zero that produces warning - [-] CORE : Fix #PSCSX-6484, fatal error on PrestaShopCollection::getAll - [-] CORE : Fix #PSCSX-6478 module override with explicit dependencies in ctor - [-] CORE : wrong currency on partial voucher using a different currency in an order - [-] CORE : Fix namespace usage in new Core Stock management for PHP 5.2 until v1.7 - [-] CORE : Warning on getAvailableCarrierList - [-] CORE : Fix #PSCSX-6420, Notice: : id_country in Country.php - [-] CORE : Fix #PSCSX-6425, phpdoc on orderSlip - [-] CORE : Fix #PSCSX-5471 don't need to update if continue before - [-] CORE : Fix #PSCSX-5611 delete advanced stock row when delete product - [-] CORE : Fix #PSCSX-6395, Exception Property StockMvt->id_supply_order is not valid - [-] CORE : Fix Configuration::updateValue method result - [-] CORE : Fix inserting HTML configuration variable first time - [-] CORE : Remove non-existent params from comment - [-] CORE : Fix #PSCSX-5629 Meta don't scan override dir to check new front controller - [-] CORE : Fix #PSCSX-6081 add those db field in the definition - [-] CORE : Fix missing backquotes on Employee - [-] CORE : Fix #PSCSX-6153 id shop not well set so don't cache - [-] CORE : Correct bug were supply order where validate etc.. but stock not added - [-] CORE : Tools::str_replace doesn't exist - [-] CORE : [-] fix #PSCSX-5826, sql db exception on features and attributes positions cleaning - [-] CORE : Added missing hook on update logo from AdminTheme - [-] CORE : Try to fix #PSCSX-5167, no payment mention in delivery pdf when no invoice - [-] CORE : Fix #PSCSX-3480 htaccess generation with media server - [-] CORE : Module class now add 4 space instead of a tab - [-] CORE : Correct regex that remove ligne when not needed - [-] CORE : Fix #PSCSX-5882 delete loose the information out of stock etc.. - [-] CORE : bad property name. image_type doesn't exist anymore. Replaced by imageType - [-] CORE : Fix translation issue with html entities - [-] CORE : Fix PHP 5.2 issue on FileSystem Core class - [-] CORE : fix SSL in CMS links - - [-] IN : Fix #PSCSX-6535 + PSCSX-6346 adding id_cart to id_product_2 key in specific_price - [-] IN : Fix bug #NM-474, no hook on header for blocktopmenu on theme copy - [-] IN : Fix #PSCSX-6133, Property TaxRulesGroup->date_add is not valid - - [-] LO : fix translation ES tabs - [-] LO : correct Sweden flag - - [-] WS : Fix current_state not filterable on Orders (#PSCSX-5578) - - [-] TEST : Clear hook_alias cache - [-] TEST : You mustn't do assertion on setup or teardown - [-] TEST : add setUpBeforeClass() - - [-] PROJECT : Fixed constant name in Order::getTotalPaid - [-] PROJECT : getBrightness() with a short $hex (e.g.: #FFF) - - [-] MO : update.gitmodules / add .git to sendtoafriend url - - [-] CLASS : DbQuery / Add rightJoin() and rightOuterJoin() methods - [-] CLASS : OrderDetail / Use DbQuery->letJoin() instead of join with LEFT JOIN inside - - - Deprecated methods: - - [~] BO : filters on Prices will match only Equality instead of %LIKE%. #PSCSX-6248 - - [~] PROJECT : Product packs: specific case to decrease stocks of a pack if one product is sold separately, as #PSCSX-4759 - - - Improved/changed features: - - [*] MO : Fix #NM-423, no h2 in blockcart - - [*] BO : wording for gross margin KPIs - [*] BO : modules new categories "Customer Reviews", "Social & Community". - [*] BO : AdminDeliverySlip - wording - [*] BO : AdminEmployeesController;php - wording for newsletter subscription - [*] BO : meta.php - error message punctuation - [*] BO : Remove version under the employee drop down - [*] BO : updated BG tab translations - [*] BO : add SR translation for tabs - [*] BO : add ID translation for tabs - [*] BO : add HU translation for tabs - [*] BO : add CS translation for tabs - [*] BO : fix PSCSX-6378, add NL translation for tabs - [*] BO : Fix #PSCSX-6299, Bo redirect_after on AdminSearch - [*] BO : Update wording about SSL - [*] BO : Allow SSL in _PS_HOST_MODE_ - [*] BO : #PSCSX-6240 dashbord add tax excl to sales and cart value - [*] BO : #PSCSX-6226 get real margin in stats best category - [*] BO : #PSCSX-6227 display tax ecxlude on average order/cart value - [*] BO : add bower/saas files to gitignore - [*] BO : Fix #PSCSX-6134, redirect_after on adminCustomers - [*] BO : Missing "readonly" attribute in form.tpl for "textarea" input type (Helpform) - [*] BO : fix #PSCSX-6096 untranslate string in orders pdf - - [*] LO : updated ES tab translation - [*] LO : fix PSCSX-5812 - updated tab translations - - [*] PROJECT : gitignore rules to ignore more mails template changes - [*] PROJECT : Added TODO comment about Configuration::updateValue method - [*] PROJECT : Convert indentation to spaces - - [*] CLASSES : Add actions hooks when customer logs in / out - - [*] PDF : Added page number and page count in footer - [*] PDF : #PSCSX-6166, Fix base price for specific price in % - [*] PDF : Shop address missing for old orders < 1.6.1 as #PSCSX-6169 - - [*] FO : Better display of carrier logo during order process - [*] FO : Remove inline css from js for advancedPayment option - [*] FO : Using class instead of id for displaying AEUC hook - - [*] CORE : Partial Fix #PSCSX-6135, include users proper defines file - - - Added Features: - - [+] TESTS : Add unit tests for PrestaShop#2867 minifyCSS() && ReplaceByAbsoluteURL() - - - - - -#################################### -# v1.6.1.0 - (2015-07-03) -#################################### - - Fixed bugs: - - [-] BO : Fix PSCSX-5831 - [-] BO : Fix PSCSX-5831 - [-] BO : Fix #PSCSX-6063 php warning while display cart without customizable product - [-] BO : Fixed wrong front url to live edit when rewrite url activate and also one lang configured - [-] BO : Fix bug #PSCSX-6029 - Wrong php warning message - [-] BO : fix missing check for new memcached extension - [-] BO : fix issue with cat creation (PSCSX-5899) - [-] BO : fix issue with image resize when original is smaller than target - [-] BO : fix issue with image resize when original is smaller than target - [-] BO : fix issue with image resize when original is smaller than target - [-] BO : fix issue with image resize when original is smaller than target - [-] BO : fix warning - [-] BO : Fix bug #PSCSX-5364 - Missing retina option - [-] BO : unsued if statement - [-] BO : FixBug #PSCSX-1996 - Impossible to disable shop url - [-] BO : #PSCSX-5898 wording - [-] BO : fix bug when generate Pdf delivery slip, wrong constant called with customized products - [-] BO : FixBug #PSCSX-5913 - Wrong column name - [-] BO : Fix PSCSX-1856, Labels edition in multishop - [-] BO : The design is broken with a width between 767px and 924px - [-] BO : HelperForm / Add possibilities to show success, warning and error messages - [-] BO : statuspage JS is included if _PS_HOST_MODE_ is true - [-] BO : Render Payment Add button correctly - [-] BO : Fix bug #PSCSX-5326, Bad product thumb in order - [-] BO : Install specific modules for hosted shops - [-] BO : Fix category creation during import - [-] BO : #PSCSX-5221 Filter contact services by shop - [-] BO : FixBug #PSCSX-5713 - Undefined javascript variable - [-] BO : disable modals on login page, fix some php notices - [-] BO : fixed bug while adding new customized product into new order - [-] BO : Fix apcu compatibility - [-] BO : Fix PSCSX-1856, edit images legends - [-] BO : Fix issue with multiple cart rules - [-] BO : Fix Catalog prices rules shop group context - [-] BO : Fix bug #PSCSX-5170, 'undefined' on images upload, reverts dummy https://github.com/PrestaShop/PrestaShop/commit/295b070c332565e5406d015ef28e880316ed5092 - [-] BO : Correct appearance of warning - [-] BO : Fix #PSCSX-5453 correct processsave return - [-] BO : Fix #PSCSX-5462 correct employee permission - [-] BO : Fix issue with checkbox / radio button in the category tree - [-] BO : #PSCSX-5589 Dashboard filter date update - [-] BO : Display rights warnings while updating a language pack - [-] BO : Fix generation of export themes - [-] BO : Fix memleak during thumbnail generation - [-] BO : Fix #PSCSX-5402, bad alias in list filters thanks @vox_fr - [-] BO : Fix #PSCSX-5440 avoid too much quantity refund in standard refund - [-] BO : Fix #PSCSX-5401, limit results for customers search. - [-] BO : Fix bug #PSCSX-5209 Bad positions moving on other page than first page - [-] BO : Fix parent category selection in category creation - [-] BO : Updated forums link - [-] BO : Allow lazy cache to properly handle partial cache_id struct [-] FO : Add cache_id to createTemplate for product-list-colors - [-] BO : verifyMail less strict on extention length - [-] BO : make name accept PERCENT_PRODUCT_OUT_OF_STOCK_EXPIRE - [-] BO : make name accept PERCENT_PRODUCT_OUT_OF_STOCK_EXPIRE - [-] BO : Fix #PSCSX-5159, warnings on tabs - [-] BO : Correct search for catalog product - [-] BO : Fix #PSCSX-2093 undefined $order - [-] BO : Change getBaseURI call in filemanager config - [-] BO : fix PSCSX-5171 - missing translation in PDF - [-] BO : fix variable initialization - [-] BO : fix PSCSX-5141 - bad URL - [-] BO : remove type column in adminorders shipping table - [-] BO : fix issues with ajax tree loading when creating a new category - [-] BO : Fix #PSCSX-5006, duplicated addresses on customers import + could not update addresses - [-] BO : AdminOrderPreferences - typo - [-] BO : #PSCSX-4326, currency unit to real currency - [-] BO : Fix NaN on price if ecotax isn't set - [-] BO : Fix #PSCSX-4272 Groups customers list does not filter by shop - [-] BO : set proper shop context during search indexing (PSCSX-5097) - [-] BO : Fix bug #PSCSX-4358, could not reorder features and attributes when no deltas, satart position at 0 like catetgories, products, cms // follow up https://github.com/PrestaShop/PrestaShop/commit/6a4cd46540097e899a6c85617d608d4d81bd3b52 - [-] BO : Fix default_on value update - [-] BO : Fix tree category issue - [-] BO : Fix tree category issue - [-] BO : Fix tree category issue - [-] BO : Fix filter category tree issue - [-] BO : AdminImportController / Use $var with Shop::isFeatureActive() - [-] BO : Bad display of module description in moudle lists - [-] BO : AdminImportController / Use $var with Tools::getValue() - [-] BO : Fix #PSCSX-5076, wrong positions in category list - [-] BO : Fix tree category issue - [-] BO : Fix #PSCSX-5006, add forceid to addresses import thanks @indesign47 - [-] BO : PaymentModule -> missing translation - [-] BO : AdminImagesController -> missing translations - [-] BO : Fix bug #PSCSX-5062 Return slip pdf is not possible to download from back-office - [-] BO : Languages form.tpl - remove extra space - [-] BO : AdminEmails / FIX #PSCSX-5000 - [-] BO : wording harmonization - back office - part 2 - [-] BO : wording harmonization - back office - part 1 - [-] BO : Uploader -> add translations - [-] BO : HelperImageUploader -> add translation - [-] BO : Fix attribute indexing (PSCSX-5028). Adapted from PR #2651 - [-] BO : Speed up search indexing & reduce memory usage (PSCSX-5039) - [-] BO : Fix bug #PSCSX-5027, bad cast in Helperlist - [-] BO : Fix bug #PSCSX-4917, missing multiple_value_separator - [-] BO : fix count optimizations - [-] BO : Add back the ability to fully flush the template cache - [-] BO : Notice follow up https://github.com/PrestaShop/PrestaShop/commit/1f0a89954adf849f5670788e4e3394a44ec05eca - [-] BO : Fix Syntax Error - [-] BO : Fix #PSCSX-4929 display problem of media server - [-] BO : Fix #PSCSX-4948 correct filemanager url in multistore - [-] BO : Fixed bug importing products when id_shop_default not 1 - [-] BO : Fix #PSCSX-4787 - [-] BO : AdminModules - Fix #PSCSX-4988 - [-] BO : Fix bug #PSCSX-4733 again - [-] BO : Fix bug #PSCSX-4762 again - [-] BO : Fix bug #PSCSX-4733, threads statuses not translated - [-] BO : Fix warnings #PSCSX-4734 in AdminRequestSql - [-] BO : Fix bug #PSCSX-4735, add list_id to sql forms - [-] BO : Removed hardcoded BO header image - [-] BO : Fix #PSCSX-4736, cms default order by - [-] BO : Fix bug #PSCSX-4762, too much calls of getQuantityAvailableByProduct - [-] BO : don't try to update the routes if the rewriting is disabled (the form is empty) - [-] BO : Fix Lithuanian encoding in PDF generation - [-] BO : Fix #PSCSX-4939 mistake - [-] BO : AdminimportController -> addresses add DNI - [-] BO : AdminimportController -> addresses add DNI - [-] BO : Fix delivery time string language in carrier wizard summary. - [-] BO : Fix Bug #PSCSX-4829 - [-] BO : Fix #PSCSX-4791 disabling advanced stock - [-] BO : Fix warehouse when add stock - [-] BO : AdminimportController -> active manufacturer - [-] BO : Sync stock reference, EAN13, UPC codes when updating product and attributes - [-] BO : Fix function return value in write context in AdminWarehousesController.php - [-] BO : Fix #PSCSX-4738 check if field is send - [-] BO : Fix bug #PSCFV-12280 again, page number on processStatus button - [-] BO : Fix bug #PSCFV-12280, save product list, last part - [-] BO : Fix bug #PSCFV-12280, save product list, first part - [-] BO : Fix #PSCSX-3035 swap helper update and add if no selected carrier for warehouse - [-] BO : Fix bug #PSCSX-4747, Inactive customers when creating new orders - [-] BO : unused variable - [-] BO : FixBig #PSCSX-4690, #PSCSX-4676 - Fixing Credit slip - Part 2 - [-] BO : FixBig #PSCSX-4690, #PSCSX-4676 - Fixing Credit slip - Part 1 - [-] BO : Missing Warehouse product location on ajax order product calls - [-] BO : Fix #PSCSX-4676 (follow up all in ti or te) - [-] BO : FixBug #PSCSX-4667 - Do not refund if no quantity selected - [-] BO : AdminShopUrlController -> add translation - [-] BO : AdminShopGroupController -> add translation - [-] BO : AdminShopController -> add translation - [-] BO : Hide field for totally refunded product line - [-] BO : Show free shipping vouchers in manual order - [-] BO : Fix bug #PSCSX-4635, could delete own account in bulk - [-] BO : Notices + bad merge - [-] BO : #PSCSX-4625, could not see errors on adding quicklink - [-] BO : avoid duplicates on modules image thumbnail - [-] BO : Fix #PSCSX-4567 Instant stock - [-] BO : Fix #PSCSX-4496 send if add tax or not to voucher - [-] BO : FileManager -> add translations - [-] BO : TinyMCE -> add translations - [-] BO : missing double quote breaking addons modal title and link - [-] BO : The new products now gets the group reductions correctly - [-] BO : Fix #PSCSX-4267 standard refund mess up - [-] BO : Fix Bug #PNM-3248 - Missing module name in warning - [-] BO : Fix #PSCSX-4479 correct media server if settings was badly update - [-] BO : Fix #PSCSX-4320 typo error - [-] BO : Fix #PSCSX-4320 typo error - [-] BO : Fix #PSCSX-4453 check float instead of int - [-] BO : Fix #PSCSX-4452 correct sync for product in pack - [-] BO : Fix #PSCSX-4538, typo - [-] BO : Fix the wrong impact price value on the combinations list helper. - [-] BO : Fix bug #PSCSX-4504, could not delete order retunr states - [-] BO : Fix #PSCSX-4504, bad display for two last default order states - [-] BO : #PSCSX-4479 Add check on htaccess before changing media servers - [-] BO : Fix #PSCSX-3408 : Carrier package size are tested for every rotation possible - [-] BO : Avoid slash in special product name - [-] BO : #PSCSX-3031 - Set KPI for product out of stock - [-] BO : fixed bug : it's not possible to override some AdminCartRulesController template - [-] BO : Permit "product_rule_group.tpl" override - [-] BO : FixBug #PSCSX-385 Cart rule does get minimum amount with correct curreny - [-] BO : FixBug #PSCFV-8755 - Total shipping amount include in second voucher - [-] BO : FixBug domain not added to regenerated htaccess - [-] BO : Error display on image legend length - [-] BO : Remove percentage char from frendly url - [-] BO : Clear CCC cache after media servers update - [-] BO : Image upload, legend can be null - [-] BO : fixed bug loading wrong root category in AdminCategoriesController - [-] BO : Undefined on image upload, revert of https://github.com/PrestaShop/PrestaShop/commit/48b7a49b1aea34a2def355ffec1d4c08dfdbdfd6 - [-] BO : Double separator in function createTemplate() - - [-] CORE : Fix PHP 5.2 Dispatcher warning on parse_url() - [-] CORE : Fix issue with PHP 5.2 and func_get_args() - [-] CORE : Fix bug PSCSX-5952 - HTMLPurifier_Config not loaded - [-] CORE : Fix issue with advancedeucompliance dependencies and Tax label display - [-] CORE : FixBug #PSCSX-5698 - Wrong ecotax calculation - [-] CORE : Module. New line replacement - [-] CORE : Fix issue with OPC/Advanced payment API when deleting all products from cart - [-] CORE : Fix #PSCSX-5724 avoid db exception - [-] CORE : Fix payment and carrier for OPC mode - [-] CORE : Fixed duplicate in EmailLister::getAvailableMails() - [-] CORE : follow up 4b21903 : we got this wrong, need to start from the tax incl price - [-] CORE : Fixed OPC with AdvancedPaymentOptions activated - [-] CORE : Fix #NM-345 need to recalculte depth only when current depth as changed - [-] CORE : Fixed issue with newInstanceArgs on PHP 5.3 - [-] CORE : Fix potential issue on EmailLister::getAvailableMails() - [-] CORE : Fix testing Exception handler - [-] CORE : Fix #PSCSX-5605 correct query syntax error - [-] CORE : Fix potential sql issue while using reserved SQL keywords - [-] CORE : Fix #PSCSX-1919 allow