diff --git a/admin/themes/default/sass/controllers/_order.sass b/admin/themes/default/sass/controllers/_order.sass index d061c8615..8c054362e 100644 --- a/admin/themes/default/sass/controllers/_order.sass +++ b/admin/themes/default/sass/controllers/_order.sass @@ -82,4 +82,17 @@ max-height: 200px .panel-refund-request .refunded_amount - margin-top: 2px \ No newline at end of file + margin-top: 2px + +.panel-guest_address + .panel-heading + align-items: center + display: flex + gap: 10px + justify-content: space-between + .panel-title + width: 100% + .dropdown-menu + right: 0 + left: unset + font-size: 14px diff --git a/admin/themes/default/sass/partials/_kpi.sass b/admin/themes/default/sass/partials/_kpi.sass index e6ccfe8cb..6e2e15fbf 100644 --- a/admin/themes/default/sass/partials/_kpi.sass +++ b/admin/themes/default/sass/partials/_kpi.sass @@ -16,6 +16,7 @@ $kpi-gap: 10px flex-wrap: wrap margin-left: -($kpi-gap / 2) margin-right: -($kpi-gap / 2) + flex-grow: 1 .kpi-wrap display: inline-block width: 20% diff --git a/admin/themes/default/sass/partials/_print.sass b/admin/themes/default/sass/partials/_print.sass index 118b98014..2732a42aa 100644 --- a/admin/themes/default/sass/partials/_print.sass +++ b/admin/themes/default/sass/partials/_print.sass @@ -65,7 +65,7 @@ margin-bottom: 0 !important #addressInvoice width: 49% !important - float: right !important + float: right !important margin-bottom: 0 !important #status tr:first-child td @@ -81,15 +81,14 @@ i display: none !important .kpi-container.panel - margin: 30px 0 20px 0 !important border: solid 1px black !important + .actions-wrap + display: none .box-stats - padding: 10px 0 !important height: auto !important - width: 25% !important font-size: 8pt !important - i - font-size: 20pt !important + span.arrow + display: none .alert border: 1px solid black !important &:before @@ -99,3 +98,38 @@ margin: 0 !important .panel-total td font-size: 13pt!important + + + #customer_cart_details + thead + display: none + tr + display: block + border: 1px solid #ccc + -webkit-box-shadow: #EAEDEF 0 2px 0 0 + box-shadow: #EAEDEF 0 2px 0 0 + width: 100% + margin-bottom: 6px + td + display: block + display: grid + grid-template-columns: 2fr 3fr + text-align: center !important + position: relative + width: 100% !important + text-align: left !important + line-height: 2em !important + font-size: 1.15em !important + white-space: nowrap + overflow: hidden + text-overflow: ellipsis + > span + padding: 0px 5px + > span:nth-child(1) + border-right: 1px solid #EAEDEF + padding-right: 10px + white-space: nowrap + color: #aaa + text-align: right + font-size: .9em + font-style: italic \ No newline at end of file diff --git a/admin/themes/default/template/controllers/cart_rules/modal_confirm_bulk_delete.tpl b/admin/themes/default/template/controllers/cart_rules/modal_confirm_bulk_delete.tpl new file mode 100644 index 000000000..30c9df455 --- /dev/null +++ b/admin/themes/default/template/controllers/cart_rules/modal_confirm_bulk_delete.tpl @@ -0,0 +1,83 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to 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 IN +* @license https://store.webkul.com/license.html +*} + +{if isset($cartRules)} + +{/if} \ No newline at end of file diff --git a/admin/themes/default/template/controllers/cart_rules/modal_confirm_delete.tpl b/admin/themes/default/template/controllers/cart_rules/modal_confirm_delete.tpl new file mode 100644 index 000000000..eb08eb9e4 --- /dev/null +++ b/admin/themes/default/template/controllers/cart_rules/modal_confirm_delete.tpl @@ -0,0 +1,71 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to 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 IN +* @license https://store.webkul.com/license.html +*} + +{if isset($cartRule)} + +{/if} \ No newline at end of file diff --git a/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl b/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl index 31b65cf8a..2d4a2409f 100644 --- a/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl @@ -33,7 +33,7 @@ {if isset($next_thread) && $next_thread} {$next_thread.name} - + {/if}
@@ -71,7 +71,7 @@

{if $count_ok} - {l s='[1]%1$d[/1] order(s) validated for a total amount of [2]%2$s[/2]' sprintf=[$count_ok, $total_ok] tags=['', '']} + {l s='[1]%1$d[/1] order(s) validated, total amount paid [2]%2$s[/2]' sprintf=[$count_ok, $total_ok] tags=['', '']} {else} {l s="No orders validated for the moment"} {/if} @@ -115,7 +115,7 @@
{l s="Choose a template"} - --> + --> @@ -159,7 +159,7 @@ }); timer = setInterval("markAsRead()", 3000); }); - + function markAsRead() { $.ajax({ diff --git a/admin/themes/default/template/controllers/customers/helpers/view/view.tpl b/admin/themes/default/template/controllers/customers/helpers/view/view.tpl index 18145ce07..8aab78130 100644 --- a/admin/themes/default/template/controllers/customers/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/customers/helpers/view/view.tpl @@ -197,85 +197,122 @@ {if $orders AND count($orders)} {assign var=count_ok value=count($orders_ok)} {assign var=count_ko value=count($orders_ko)} -

-
-
- - {l s='Valid orders:'} - {$count_ok} - {l s='for a total amount of %s' sprintf=$total_ok} -
-
- - {l s='Invalid orders:'} - {$count_ko} + {if $count_ok || $count_ko} + -
- - {if $count_ok} - - - - - - - - - - - - - - {foreach $orders_ok AS $key => $order} - - - - - - - - - - {/foreach} - -
{l s='ID'}{l s='Date'}{l s='Payment'}{l s='Status'}{l s='Products'}{l s='Total spent'}
{$order['id_order']}{dateFormat date=$order['date_add'] full=0}{$order['payment']}{$order['order_state']}{$order['nb_products']}{$order['total_paid_real']} - - {l s='View'} - -
{/if} - {if $count_ko} - - - - - - - - - - - - - {foreach $orders_ko AS $key => $order} - - - - - - - - - {/foreach} - -
{l s='ID'}{l s='Date'}{l s='Payment'}{l s='Status'}{l s='Products'}{l s='Total spent'}
{$order['id_order']}{dateFormat date=$order['date_add'] full=0}{$order['payment']}{$order['order_state']}{$order['nb_products']}{$order['total_paid_real']}
- {/if} {else} -

- {l s='%1$s %2$s has not placed any orders yet' sprintf=[$customer->firstname, $customer->lastname]} -

+

+ {l s='%1$s %2$s has not placed any orders yet' sprintf=[$customer->firstname, $customer->lastname]} +

{/if}
@@ -289,7 +326,6 @@ {l s='ID'} {l s='Date'} - {l s='Carrier'} {l s='Total'} @@ -302,7 +338,6 @@ {dateFormat date=$cart['date_upd'] full=0} - {$cart['name']} {$cart['total_price']} {/foreach} @@ -315,33 +350,95 @@ {/if}
{if $products AND count($products)} -
-
- {l s='Purchased products'} {count($products)} +
+
+ {l s='Room types and services'} {count($products)} +
+
- - - - - - - - - - {foreach $products AS $key => $product} - - - - - - {/foreach} - -
{l s='Date'}{l s='Name'}{l s='Quantity'}
{dateFormat date=$product['date_add'] full=0} - - {$product['product_name']} - - {$product['product_quantity']}
-
{/if} {if count($interested)}
@@ -454,7 +551,7 @@ - + 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 07f87ca73..a33e41262 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 @@ -118,7 +118,7 @@ {assign var=shown_room_type_price value=$data.product_price_tax_excl} {/if}
- + {$currency->prefix}{$currency->suffix}
diff --git a/admin/themes/default/template/controllers/orders/_overbookings.tpl b/admin/themes/default/template/controllers/orders/_overbookings.tpl index 8f0064708..963b33489 100644 --- a/admin/themes/default/template/controllers/orders/_overbookings.tpl +++ b/admin/themes/default/template/controllers/orders/_overbookings.tpl @@ -42,7 +42,7 @@ {dateFormat date=$data['date_from']} {l s='To'} {dateFormat date=$data['date_to']} {if $order->with_occupancy && $data['children']} - {else} - {if $data['adults']}{$data['adults']}{/if} {if $data['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if {$data['children']}}, {$data['children']} {if $data['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if} + {if $data['adults']}{$data['adults']}{/if} {if $data['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if {$data['children']}}, {$data['children']} {if $data['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if} {/if} diff --git a/admin/themes/default/template/controllers/orders/_product_line.tpl b/admin/themes/default/template/controllers/orders/_product_line.tpl index 11ab4b428..453398fd0 100644 --- a/admin/themes/default/template/controllers/orders/_product_line.tpl +++ b/admin/themes/default/template/controllers/orders/_product_line.tpl @@ -35,33 +35,11 @@

{$data.room_type}

- {dateFormat date=$data.date_from} - {dateFormat date=$data.date_to} - - {if $can_edit} - - {/if} + {dateFormat date=$data.date_from} - {dateFormat date=$data.date_to} {if $data['children']} - {else} - {if $data['adults']}{$data['adults']}{/if} {if $data['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if {$data['children']}}, {$data['children']} {if $data['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if} + {if $data['adults']}{$data['adults']}{/if} {if $data['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if {$data['children']}}, {$data['children']} {if $data['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if} {/if} - - -

- - {convertPriceWithCurrency price=$data['total_price_tax_excl'] currency=$currency->id} - -

-

{l s='Per day price:'} {convertPriceWithCurrency price=$data['paid_unit_price_tax_excl'] currency=$currency->id}

-
- +

+ + {convertPriceWithCurrency price=$data['total_price_tax_excl'] currency=$currency->id} + +

+

{l s='Per day price:'} {convertPriceWithCurrency price=$data['paid_unit_price_tax_excl'] currency=$currency->id}

- - {convertPriceWithCurrency price=($data['extra_demands_price_te'] + $data['additional_services_price_te'] + $data['convenience_fee_te'] + $data['additional_services_price_auto_add_te']) currency=$currency->id} - {if $data['extra_demands']|count || $data['additional_services']|count} - - - - {/if} - - - - - {convertPriceWithCurrency price=($data['total_room_tax']) currency=$currency->id} - - - {convertPriceWithCurrency price=($data['total_room_price_ti']) currency=$currency->id} - {if $can_edit} - {/if} + + {convertPriceWithCurrency price=($data['total_room_tax']) currency=$currency->id} + + + {convertPriceWithCurrency price=($data['total_room_price_ti']) currency=$currency->id} + {if (isset($refundReqBookings) && $refundReqBookings)} {if $data.id|in_array:$refundReqBookings} @@ -220,19 +107,6 @@ {/if} {if ($can_edit && !$order->hasBeenDelivered())} - - {if sizeof($invoices_collection)} - - {else} -   - {/if} -
{if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && $data.is_cancelled} diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index 3cd980765..8b7dae366 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -275,7 +275,7 @@ id_room: parseInt($(cart_row).attr('data-id-room')), date_from: $(cart_row).attr('data-date-from'), date_to: $(cart_row).attr('data-date-to'), - price: new Number($(this).val().replace(",",".")).toFixed(4).toString(), + price: new Number($(this).val().replace(",",".")).toString(), id_cart: id_cart }; updateProductPrice(params, cart_row); @@ -667,6 +667,8 @@ tab: "AdminCarts", action: "updateProductPrice", params: params, + id_cart: id_cart, + id_customer: id_customer }, success : function(response) { updateCartLine(response.curr_booking_info, cart_row); diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl index fa85718d8..7cc1b7c09 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -584,7 +584,7 @@
  {$customer->date_add|date_format:"%d %b, %Y"} ({l s='Member since'})
  {$customerStats['nb_orders']|intval} ({l s='Total valid order placed'})
-
  {displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id} ({l s='Total spent since registration'})
+
  {displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_spent'], $currency), 2) currency=$currency->id} ({l s='Total spent since registration'})
{if Configuration::get('PS_B2B_ENABLE')}
{$customer->siret} ({l s='Siret'})
{$customer->ape|date_format:"%d %b, %Y"} ({l s='APE'})
@@ -634,128 +634,60 @@
{/if} - -