Merge pull request #1272 from sumitwebkul/gli-2313
Fixed: Order confirmation and Guest tracking flow issues and order emails are improved
This commit is contained in:
@@ -1100,7 +1100,10 @@ abstract class PaymentModuleCore extends Module
|
||||
// $service_products_price_tax_incl = $order->getTotalProductsWithTaxes(false, false, Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE);
|
||||
// $service_products_tax = ($order->getTotalProductsWithTaxes(false, false, Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE) - $order->getTotalProductsWithoutTaxes(false, false, Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE));
|
||||
|
||||
$idOrderHotel = HotelBookingDetail::getIdHotelByIdOrder($order->id);
|
||||
$objHotelBranchInfo = new HotelBranchInformation($idOrderHotel, $order->id_lang);
|
||||
$data = array(
|
||||
'{hotel_name}' => $objHotelBranchInfo->hotel_name,
|
||||
'{cart_booking_data_html}' => $cart_booking_data_html,
|
||||
'{cart_booking_data_text}' => $cart_booking_data_text,
|
||||
'{extra_demands_details_html}' => $extra_demands_details_html,
|
||||
|
||||
@@ -176,7 +176,16 @@ class GuestTrackingControllerCore extends FrontController
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
$totalRoomsBooked = 0;
|
||||
if ($orderReference = Tools::getValue('id_order')) {
|
||||
// Get rooms bookings in the order
|
||||
$objHotelBooking = new HotelBookingDetail();
|
||||
if ($cartRoomBookings = $objHotelBooking->getBookingDataByOrderReference($orderReference)) {
|
||||
$totalRoomsBooked = count($cartRoomBookings);
|
||||
}
|
||||
}
|
||||
$this->context->smarty->assign(array(
|
||||
'total_rooms_booked' => $totalRoomsBooked,
|
||||
'action' => $this->context->link->getPageLink('guest-tracking.php', true),
|
||||
'errors' => $this->errors,
|
||||
));
|
||||
|
||||
@@ -108,6 +108,7 @@ class OrderConfirmationControllerCore extends FrontController
|
||||
$order = new Order($this->id_order);
|
||||
$cart = new Cart($order->id_cart);
|
||||
/*By webkul to show order details properly on order history page*/
|
||||
$totalRoomsBooked = 0;
|
||||
if (Module::isInstalled('hotelreservationsystem')) {
|
||||
require_once _PS_MODULE_DIR_.'hotelreservationsystem/define.php';
|
||||
$any_back_order = 0;
|
||||
@@ -351,6 +352,8 @@ class OrderConfirmationControllerCore extends FrontController
|
||||
1,
|
||||
Product::PRICE_ADDITION_TYPE_WITH_ROOM
|
||||
);
|
||||
|
||||
$totalRoomsBooked += 1;
|
||||
}
|
||||
} else if ($product->service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE) {
|
||||
$cover_image_arr = $product->getCover($type_value['product_id']);
|
||||
@@ -403,8 +406,10 @@ class OrderConfirmationControllerCore extends FrontController
|
||||
|
||||
$shw_bo_msg = Configuration::get('WK_SHOW_MSG_ON_BO');
|
||||
$bo_msg = Configuration::get('WK_BO_MESSAGE');
|
||||
|
||||
$this->context->smarty->assign(
|
||||
array(
|
||||
'total_rooms_booked' => $totalRoomsBooked,
|
||||
'refund_allowed' => (int) $order->isReturnable(),
|
||||
'is_free_order' => $this->id_module == -1 && $order->module == 'free_order',
|
||||
'any_back_order' => $any_back_order,
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for booking with {shop_name}!</span>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for booking with <strong>{hotel_hotel_name}</strong>!</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -113,7 +113,7 @@
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span>
|
||||
If you have a guest account, you can follow your order via the <a href="{guest_tracking_url}" style="color:#337ff1">"Guest Tracking"</a> section on our website. </span>
|
||||
If you have a guest account, you can follow your order via the <a href="{guest_tracking_url}?id_order={order_name}" style="color:#337ff1">"Guest Tracking"</a> section on our website. </span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
Thank you for booking with {shop_name}!
|
||||
Thank you for booking with <strong>{hotel_hotel_name}</strong>!
|
||||
|
||||
Order {order_name} - Awaiting payment
|
||||
Order reference: {order_name}
|
||||
@@ -16,7 +16,7 @@ You can review your order and download your invoice from the
|
||||
clicking "My account" [/{my_account_url}] on our website.
|
||||
|
||||
If you have a guest account, you can follow your order via the
|
||||
"Guest Tracking" [/{guest_tracking_url}] section on our website.
|
||||
"Guest Tracking" [/{guest_tracking_url}?id_order={order_name}] section on our website.
|
||||
|
||||
{shop_name} [/{shop_url}] powered by Webkul(tm)
|
||||
[https://webkul.com]
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
Order canceled - <a href="{history_url}" style="color:#337ff1">{order_name}</a>
|
||||
</p>
|
||||
<span style="color:#777">Your order with the reference <span style="color:#333"><strong>{order_name}</strong></span> from <span style="color:#333"><strong>{shop_name}</strong></span> has been canceled.</span>
|
||||
<span style="color:#777">Your order with the reference <span style="color:#333"><strong>{order_name}</strong></span> from <span style="color:#333"><strong>{hotel_hotel_name}</strong></span> has been canceled.</span>
|
||||
</font>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
Your order with the reference {order_name} from {shop_name} has
|
||||
Your order with the reference {order_name} from <strong>{hotel_hotel_name}</strong> has
|
||||
been canceled.
|
||||
|
||||
Here are your order details:
|
||||
|
||||
@@ -4,51 +4,51 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
||||
<title>Message from {shop_name}</title>
|
||||
|
||||
|
||||
<style> @media only screen and (max-width: 300px){
|
||||
|
||||
|
||||
<style> @media only screen and (max-width: 300px){
|
||||
body {
|
||||
width:218px !important;
|
||||
margin:auto !important;
|
||||
}
|
||||
.table {width:195px !important;margin:auto !important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto !important;display: block !important;}
|
||||
span.title{font-size:20px !important;line-height: 23px !important}
|
||||
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
|
||||
span.subtitle{font-size: 14px !important;line-height: 18px !important;padding-top:10px !important;display:block !important;}
|
||||
td.box p{font-size: 12px !important;font-weight: bold !important;}
|
||||
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
|
||||
display: block !important;
|
||||
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
|
||||
display: block !important;
|
||||
}
|
||||
.table-recap{width: 200px!important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center !important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center !important;}
|
||||
.address{display: block !important;margin-bottom: 10px !important;}
|
||||
.space_address{display: none !important;}
|
||||
.space_address{display: none !important;}
|
||||
}
|
||||
@media only screen and (min-width: 301px) and (max-width: 500px) {
|
||||
@media only screen and (min-width: 301px) and (max-width: 500px) {
|
||||
body {width:308px!important;margin:auto!important;}
|
||||
.table {width:285px!important;margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
|
||||
display: block !important;
|
||||
.table {width:285px!important;margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
.table-recap table, .table-recap thead, .table-recap tbody, .table-recap th, .table-recap td, .table-recap tr {
|
||||
display: block !important;
|
||||
}
|
||||
.table-recap{width: 295px !important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center !important;}
|
||||
|
||||
|
||||
}
|
||||
@media only screen and (min-width: 501px) and (max-width: 768px) {
|
||||
body {width:478px!important;margin:auto!important;}
|
||||
.table {width:450px!important;margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
}
|
||||
@media only screen and (max-device-width: 480px) {
|
||||
body {width:308px!important;margin:auto!important;}
|
||||
.table {width:285px;margin:auto!important;}
|
||||
.table {width:450px!important;margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
|
||||
}
|
||||
@media only screen and (max-device-width: 480px) {
|
||||
body {width:308px!important;margin:auto!important;}
|
||||
.table {width:285px;margin:auto!important;}
|
||||
.logo, .titleblock, .linkbelow, .box, .footer, .space_footer{width:auto!important;display: block!important;}
|
||||
|
||||
.table-recap{width: 295px!important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center!important;}
|
||||
.table-recap tr td, .conf_body td{text-align:center!important;}
|
||||
.address{display: block !important;margin-bottom: 10px !important;}
|
||||
.space_address{display: none !important;}
|
||||
.space_address{display: none !important;}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
Order {order_name} - Order changed </p>
|
||||
<span style="color:#777">
|
||||
Your order with the reference <span style="color:#333"><strong>{order_name}</strong></span> from <span style="color:#333"><strong>{shop_name}</strong></span> has been changed by the merchant. </span>
|
||||
Your order with the reference <span style="color:#333"><strong>{order_name}</strong></span> from <span style="color:#333"><strong>{hotel_hotel_name}</strong></span> has been changed by the merchant. </span>
|
||||
</font>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
|
||||
[/{shop_url}]
|
||||
[/{shop_url}]
|
||||
|
||||
Hi {firstname} {lastname},
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
Your order with the reference {order_name} from {shop_name} has
|
||||
been changed by the merchant.
|
||||
Your order with the reference {order_name} from <strong>{hotel_hotel_name}</strong> has
|
||||
been changed by the merchant.
|
||||
|
||||
You can review your order and download your invoice from the
|
||||
"Order history" [/{history_url}] section of your customer account by
|
||||
clicking "My account" [/{my_account_url}] on our website.
|
||||
clicking "My account" [/{my_account_url}] on our website.
|
||||
|
||||
If you have a guest account, you can follow your order via the
|
||||
"Guest Tracking" [/{guest_tracking_url}?id_order={order_name}] section
|
||||
on our website.
|
||||
on our website.
|
||||
|
||||
{shop_name} [/{shop_url}] powered by Webkul(tm)
|
||||
[https://webkul.com]
|
||||
[https://webkul.com]
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for selecting our hotel!</span>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for booking with <strong>{hotel_name}</strong>!</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Message from {shop_name}
|
||||
Hi {firstname} {lastname},
|
||||
Thank you for selecting our hotel!
|
||||
Thank you for booking with <strong>{hotel_name}</strong>!
|
||||
Order details
|
||||
Order: {order_name} Placed on {date}
|
||||
Room Image
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">New Bookings created on {shop_name}!</span>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">New bookings are created on <strong>{hotel_name}</strong>!</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Message from {shop_name}
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
New Bookings created on {shop_name}!
|
||||
New bookings are created on <strong>{hotel_name}</strong>!
|
||||
|
||||
Customer details
|
||||
Name: {customer_name}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;line-height:25px">Thank you for selecting our hotel!</span><br/><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;line-height:25px">Thank you for booking with <strong>{hotel_hotel_name}</strong>!</span><br/><br/>
|
||||
<span class="subtitle" style="font-weight:600;font-size:16px;line-height:25px">Bookings in this order are Not Confirmed yet !!</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:14px;line-height:25px">We are sorry for your inconvenience. Please contact hotel to get final confirmation for your bookings.</span>
|
||||
</font>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Message from {shop_name}
|
||||
Hi {firstname} {lastname},
|
||||
Thank you for selecting our hotel!
|
||||
Thank you for booking with <strong>{hotel_hotel_name}</strong>!
|
||||
Bookings in this order are Not Confirmed yet !!
|
||||
We are sorry for your inconvenience. Please contact hotel to get final confirmation for your bookings.
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;line-height:25px">New Bookings created on {shop_name}!</span><br/><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;line-height:25px">New bookings are created on <strong>{hotel_hotel_name}</strong>!</span><br/><br/>
|
||||
<span class="subtitle" style="font-weight:600;font-size:16px;line-height:25px">Bookings in this order have Overbookings !!</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:14px;line-height:25px">This order is not confirmed yet. Please check the order details to resolve overbookings.</span>
|
||||
</font>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Message from {shop_name}
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
New Bookings created on {shop_name}!
|
||||
New bookings are created on <strong>{hotel_hotel_name}</strong>!
|
||||
Bookings in this order have Overbookings !!
|
||||
This order is not confirmed yet. Please check the order details to resolve overbookings.
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for booking with {shop_name}!</span>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for booking with <strong>{hotel_hotel_name}</strong>!</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
Thank you for booking with {shop_name}!
|
||||
Thank you for booking with <strong>{hotel_hotel_name}</strong>!
|
||||
|
||||
Order {order_name} - Payment processed
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi {firstname} {lastname},</span><br/>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for booking with {shop_name}!</span>
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">Thank you for booking with <strong>{hotel_hotel_name}</strong>!</span>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
Hi {firstname} {lastname},
|
||||
|
||||
Thank you for booking with {shop_name}!
|
||||
Thank you for booking with <strong>{hotel_hotel_name}</strong>!
|
||||
|
||||
Your payment for order with the reference {order_name} was
|
||||
successfully processed.
|
||||
|
||||
@@ -225,6 +225,10 @@ class Bankwire extends PaymentModule
|
||||
$cartTotal = $objOrder->getOrdersTotalPaid();
|
||||
}
|
||||
|
||||
// Get rooms bookings in the order
|
||||
$objHotelBooking = new HotelBookingDetail();
|
||||
$cartRoomBookings = $objHotelBooking->getBookingDataByOrderReference($objOrder->reference);
|
||||
$smartyVars['cart_room_bookings'] = $cartRoomBookings;
|
||||
$smartyVars['total_to_pay'] = Tools::displayPrice($cartTotal, $params['currencyObj'], false);
|
||||
$smartyVars['bankwireDetails'] = Tools::nl2br($this->details);
|
||||
$smartyVars['bankwireAddress'] = Tools::nl2br($this->address);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*}
|
||||
|
||||
{if $status == 'ok'}
|
||||
<p class="alert alert-success">{l s='Your order on %s is complete.' sprintf=$shop_name mod='bankwire'}</p><br /><br />
|
||||
<p class="alert alert-success">{l s='Your' mod='bankwire'} {if $cart_room_bookings|count > 1}{l s='bookings have' mod='bankwire'}{else}{l s='booking has' mod='bankwire'}{/if} {l s='been created successfully!' mod='bankwire'}</p><br /><br />
|
||||
<p>{l s='Please send us a bank wire with:' mod='bankwire'}</p>
|
||||
<br />- {l s='Amount' mod='bankwire'} <span class="price"><strong>{$total_to_pay}</strong></span>
|
||||
<br /><br />- {l s='Name of account owner:' mod='bankwire'} <strong>{if $bankwireOwner}{$bankwireOwner}{else}___________{/if}</strong>
|
||||
|
||||
@@ -207,6 +207,10 @@ class Cheque extends PaymentModule
|
||||
$cartTotal = $objOrder->getOrdersTotalPaid();
|
||||
}
|
||||
|
||||
// Get rooms bookings in the order
|
||||
$objHotelBooking = new HotelBookingDetail();
|
||||
$cartRoomBookings = $objHotelBooking->getBookingDataByOrderReference($objOrder->reference);
|
||||
$smartyVars['cart_room_bookings'] = $cartRoomBookings;
|
||||
$smartyVars['total_to_pay'] = Tools::displayPrice($cartTotal, $params['currencyObj'], false);
|
||||
$smartyVars['chequeName'] = $this->chequeName;
|
||||
$smartyVars['chequeAddress'] = Tools::nl2br($this->address);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*}
|
||||
|
||||
{if $status == 'ok'}
|
||||
<p class="alert alert-success">{l s='Your order on %s is complete.' sprintf=$shop_name mod='cheque'}</p><br />
|
||||
<p class="alert alert-success">{l s='Your' mod='cheque'} {if $cart_room_bookings|count > 1}{l s='bookings have' mod='cheque'}{else}{l s='booking has' mod='cheque'}{/if} {l s='been created successfully!' mod='cheque'}</p><br /><br />
|
||||
{l s='Your check must include:' mod='cheque'}<br />
|
||||
- {l s='Payment amount.' mod='cheque'} <span class="price"><strong>{$total_to_pay}</strong></span>
|
||||
<br />- {l s='Payable to the order of' mod='cheque'} <strong>{if $chequeName}{$chequeName}{else}___________{/if}</strong>
|
||||
|
||||
@@ -1575,6 +1575,18 @@ class HotelBookingDetail extends ObjectModel
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* [getBookingDataByOrderReference :: To get all room bookings by order reference].
|
||||
* @param [string] $orderReference [Reference of the order]
|
||||
* @return [array] [If data found Returns the array containing the information of the booking of an order reference]
|
||||
*/
|
||||
public function getBookingDataByOrderReference($orderReference)
|
||||
{
|
||||
return Db::getInstance()->executeS(
|
||||
'SELECT * FROM `'._DB_PREFIX_.'htl_booking_detail` WHERE `id_order` IN ( SELECT `id_order` FROM `'._DB_PREFIX_.'orders` WHERE `reference` = "'.pSQL($orderReference).'" )'
|
||||
);
|
||||
}
|
||||
|
||||
public static function getIdHotelByIdOrder($idOrder)
|
||||
{
|
||||
return Db::getInstance()->getValue(
|
||||
|
||||
@@ -131,6 +131,9 @@
|
||||
{if isset($show_login_link) && $show_login_link}
|
||||
<p><img src="{$img_dir}icon/userinfo.gif" alt="{l s='Information'}" class="icon" /><a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='Click here to log in to your customer account.'}</a><br /><br /></p>
|
||||
{/if}
|
||||
{if isset($smarty.get.ord_conf) && $smarty.get.ord_conf}
|
||||
<p class="alert alert-success">{l s='Your'} {if $total_rooms_booked > 1}{l s='bookings have'}{else}{l s='booking has'}{/if} {l s='been created successfully!'}</p><br />
|
||||
{/if}
|
||||
{block name='guest_tracking_form'}
|
||||
<form method="post" action="{$action|escape:'html':'UTF-8'}" class="std" id="guestTracking">
|
||||
<fieldset class="description_box box">
|
||||
|
||||
@@ -964,7 +964,7 @@ function confirmFreeOrder()
|
||||
if (response.success) {
|
||||
$('#confirmOrder').prop('disabled', false);
|
||||
if (isGuest) {
|
||||
document.location.href = guestTrackingUrl+'?id_order='+encodeURIComponent(response.reference)+'&email='+encodeURIComponent(response.email);
|
||||
document.location.href = guestTrackingUrl+'?id_order='+encodeURIComponent(response.reference)+'&ord_conf=1'+'&email='+encodeURIComponent(response.email);
|
||||
} else {
|
||||
document.location.href = response.order_confirmation_url;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*}
|
||||
|
||||
{if $status == 'ok'}
|
||||
<p class="alert alert-success">{l s='Your order on %s is complete.' sprintf=$shop_name mod='cheque'}</p><br /><br />
|
||||
<p class="alert alert-success">{l s='Your' mod='bankwire'} {if $cart_room_bookings|count > 1}{l s='bookings have' mod='bankwire'}{else}{l s='booking has' mod='bankwire'}{/if} {l s='been created successfully!' mod='bankwire'}</p><br /><br />
|
||||
{l s='Please send us a bank wire with:' mod='bankwire'}
|
||||
<br />- {l s='Amount' mod='bankwire'} <span class="price"><strong>{$total_to_pay}</strong></span>
|
||||
<br />- {l s='Name of account owner:' mod='bankwire'} <strong>{if $bankwireOwner}{$bankwireOwner}{else}___________{/if}</strong>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*}
|
||||
|
||||
{if $status == 'ok'}
|
||||
<p class="alert alert-success">{l s='Your order on %s is complete.' sprintf=$shop_name mod='cheque'}</p><br />
|
||||
<p class="alert alert-success">{l s='Your' mod='cheque'} {if $cart_room_bookings|count > 1}{l s='bookings have' mod='cheque'}{else}{l s='booking has' mod='cheque'}{/if} {l s='been created successfully!' mod='cheque'}</p><br /><br />
|
||||
{l s='Your check must include:' mod='cheque'}<br />
|
||||
- {l s='Payment amount.' mod='cheque'} <span class="price"><strong>{$total_to_pay}</strong></span>
|
||||
<br />- {l s='Payable to the order of' mod='cheque'} <strong>{if $chequeName}{$chequeName}{else}___________{/if}</strong>
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
{block name='errors'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
|
||||
{block name='displayOrderConfirmation'}
|
||||
{$HOOK_ORDER_CONFIRMATION}
|
||||
{/block}
|
||||
@@ -46,13 +47,13 @@
|
||||
{/block}
|
||||
{if isset($order->id) && $order->id}
|
||||
{if $is_guest}
|
||||
<p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p>
|
||||
<p>{l s='Your Order Reference is:'} <span class="bold">{$order->reference}</span></p>
|
||||
<p class="cart_navigation exclusive">
|
||||
<a class="button-exclusive btn btn-default" href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order|urlencode}&email={$email|urlencode}")|escape:'html':'UTF-8'}" title="{l s='Follow my order'}"><i class="icon-chevron-left"></i>{l s='Follow my order'}</a>
|
||||
</p>
|
||||
{else}
|
||||
{if isset($is_free_order) && $is_free_order}
|
||||
<p class="alert alert-success">{l s='Your order on %s is complete.' sprintf=$shop_name}</p><br />
|
||||
<p class="alert alert-success">{l s='Your'} {if $totalRoomsBooked > 1}{l s='bookings have'}{else}{l s='booking has'}{/if} {l s='been created successfully!'}</p><br />
|
||||
{/if}
|
||||
<p><strong>{l s='Order Status :'}</strong> <span>{l s='Confirmed'}</span></p>
|
||||
<p><strong>{l s='Order Reference :'}</strong> <span class="bold">{$order->reference}</span></p>
|
||||
|
||||
Reference in New Issue
Block a user