Added block wise override feature for the smarty template files
This commit is contained in:
@@ -24,297 +24,20 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
class SmartyCustomCore extends Smarty
|
||||
class SmartyCustomCore extends SmartyDev
|
||||
{
|
||||
public $display_comments = false;
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->template_class = 'Smarty_Custom_Template';
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete compiled template file (lazy delete if resource_name is not specified)
|
||||
*
|
||||
* @param string $resource_name template name
|
||||
* @param string $compile_id compile id
|
||||
* @param int $exp_time expiration time
|
||||
*
|
||||
* @return int number of template files deleted
|
||||
*/
|
||||
public function clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null)
|
||||
{
|
||||
if ($resource_name == null) {
|
||||
Db::getInstance()->execute('REPLACE INTO `'._DB_PREFIX_.'smarty_last_flush` (`type`, `last_flush`) VALUES (\'compile\', FROM_UNIXTIME('.time().'))');
|
||||
return 0;
|
||||
} else {
|
||||
return parent::clearCompiledTemplate($resource_name, $compile_id, $exp_time);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark all template files to be regenerated
|
||||
*
|
||||
* @param int $exp_time expiration time
|
||||
* @param string $type resource type
|
||||
*
|
||||
* @return int number of cache files which needs to be updated
|
||||
*/
|
||||
public function clearAllCache($exp_time = null, $type = null)
|
||||
{
|
||||
Db::getInstance()->execute('REPLACE INTO `'._DB_PREFIX_.'smarty_last_flush` (`type`, `last_flush`) VALUES (\'template\', FROM_UNIXTIME('.time().'))');
|
||||
return $this->delete_from_lazy_cache(null, null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark file to be regenerated for a specific template
|
||||
*
|
||||
* @param string $template_name template name
|
||||
* @param string $cache_id cache id
|
||||
* @param string $compile_id compile id
|
||||
* @param int $exp_time expiration time
|
||||
* @param string $type resource type
|
||||
*
|
||||
* @return int number of cache files which needs to be updated
|
||||
*/
|
||||
public function clearCache($template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null)
|
||||
{
|
||||
return $this->delete_from_lazy_cache($template_name, $cache_id, $compile_id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the compile cache needs to be invalidated (multi front + local cache compatible)
|
||||
*/
|
||||
public function check_compile_cache_invalidation()
|
||||
{
|
||||
static $last_flush = null;
|
||||
if (!file_exists($this->getCompileDir().'last_flush')) {
|
||||
@touch($this->getCompileDir().'last_flush', time());
|
||||
} elseif (defined('_DB_PREFIX_')) {
|
||||
if ($last_flush === null) {
|
||||
$sql = 'SELECT UNIX_TIMESTAMP(last_flush) as last_flush FROM `'._DB_PREFIX_.'smarty_last_flush` WHERE type=\'compile\'';
|
||||
$last_flush = Db::getInstance()->getValue($sql, false);
|
||||
}
|
||||
if ((int)$last_flush && @filemtime($this->getCompileDir().'last_flush') < $last_flush) {
|
||||
@touch($this->getCompileDir().'last_flush', time());
|
||||
parent::clearCompiledTemplate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false)
|
||||
{
|
||||
$this->check_compile_cache_invalidation();
|
||||
return parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null, $do_clone = true)
|
||||
{
|
||||
$this->check_compile_cache_invalidation();
|
||||
if ($this->caching) {
|
||||
$this->check_template_invalidation($template, $cache_id, $compile_id);
|
||||
return parent::createTemplate($template, $cache_id, $compile_id, $parent, $do_clone);
|
||||
} else {
|
||||
return parent::createTemplate($template, $cache_id, $compile_id, $parent, $do_clone);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the lazy template cache invalidation
|
||||
*
|
||||
* @param string $template template name
|
||||
* @param string $cache_id cache id
|
||||
* @param string $compile_id compile id
|
||||
*/
|
||||
public function check_template_invalidation($template, $cache_id, $compile_id)
|
||||
{
|
||||
static $last_flush = null;
|
||||
if (!file_exists($this->getCacheDir().'last_template_flush')) {
|
||||
@touch($this->getCacheDir().'last_template_flush', time());
|
||||
} elseif (defined('_DB_PREFIX_')) {
|
||||
if ($last_flush === null) {
|
||||
$sql = 'SELECT UNIX_TIMESTAMP(last_flush) as last_flush FROM `'._DB_PREFIX_.'smarty_last_flush` WHERE type=\'template\'';
|
||||
$last_flush = Db::getInstance()->getValue($sql, false);
|
||||
}
|
||||
|
||||
if ((int)$last_flush && @filemtime($this->getCacheDir().'last_template_flush') < $last_flush) {
|
||||
@touch($this->getCacheDir().'last_template_flush', time());
|
||||
parent::clearAllCache();
|
||||
} else {
|
||||
if ($cache_id !== null && (is_object($cache_id) || is_array($cache_id))) {
|
||||
$cache_id = null;
|
||||
}
|
||||
|
||||
if ($this->is_in_lazy_cache($template, $cache_id, $compile_id) === false) {
|
||||
// insert in cache before the effective cache creation to avoid nasty race condition
|
||||
$this->insert_in_lazy_cache($template, $cache_id, $compile_id);
|
||||
parent::clearCache($template, $cache_id, $compile_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Store the cache file path
|
||||
*
|
||||
* @param string $filepath cache file path
|
||||
* @param string $template template name
|
||||
* @param string $cache_id cache id
|
||||
* @param string $compile_id compile id
|
||||
*/
|
||||
public function update_filepath($filepath, $template, $cache_id, $compile_id)
|
||||
{
|
||||
$template_md5 = md5($template);
|
||||
$sql = 'UPDATE `'._DB_PREFIX_.'smarty_lazy_cache`
|
||||
SET filepath=\''.pSQL($filepath).'\'
|
||||
WHERE `template_hash`=\''.pSQL($template_md5).'\'';
|
||||
|
||||
$sql .= ' AND cache_id="'.pSQL((string)$cache_id).'"';
|
||||
|
||||
if (strlen($compile_id) > 32) {
|
||||
$compile_id = md5($compile_id);
|
||||
}
|
||||
$sql .= ' AND compile_id="'.pSQL((string)$compile_id).'"';
|
||||
Db::getInstance()->execute($sql, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current template is stored in the lazy cache
|
||||
* Entry in the lazy cache = no need to regenerate the template
|
||||
*
|
||||
* @param string $template template name
|
||||
* @param string $cache_id cache id
|
||||
* @param string $compile_id compile id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_in_lazy_cache($template, $cache_id, $compile_id)
|
||||
{
|
||||
static $is_in_lazy_cache = array();
|
||||
$template_md5 = md5($template);
|
||||
|
||||
if (strlen($compile_id) > 32) {
|
||||
$compile_id = md5($compile_id);
|
||||
}
|
||||
|
||||
$key = md5($template_md5.'-'.$cache_id.'-'.$compile_id);
|
||||
|
||||
if (isset($is_in_lazy_cache[$key])) {
|
||||
return $is_in_lazy_cache[$key];
|
||||
} else {
|
||||
$sql = 'SELECT UNIX_TIMESTAMP(last_update) as last_update, filepath FROM `'._DB_PREFIX_.'smarty_lazy_cache`
|
||||
WHERE `template_hash`=\''.pSQL($template_md5).'\'';
|
||||
$sql .= ' AND cache_id="'.pSQL((string)$cache_id).'"';
|
||||
$sql .= ' AND compile_id="'.pSQL((string)$compile_id).'"';
|
||||
|
||||
$result = Db::getInstance()->getRow($sql, false);
|
||||
// If the filepath is not yet set, it means the cache update is in progress in another process.
|
||||
// In this case do not try to clear the cache again and tell to use the existing cache, if any
|
||||
if ($result !== false && $result['filepath'] == '') {
|
||||
// If the cache update is stalled for more than 1min, something should be wrong,
|
||||
// remove the entry from the lazy cache
|
||||
if ($result['last_update'] < time() - 60) {
|
||||
$this->delete_from_lazy_cache($template, $cache_id, $compile_id);
|
||||
}
|
||||
|
||||
$return = true;
|
||||
} else {
|
||||
if ($result === false
|
||||
|| @filemtime($this->getCacheDir().$result['filepath']) < $result['last_update']) {
|
||||
$return = false;
|
||||
} else {
|
||||
$return = $result['filepath'];
|
||||
}
|
||||
}
|
||||
$is_in_lazy_cache[$key] = $return;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert the current template in the lazy cache
|
||||
*
|
||||
* @param string $template template name
|
||||
* @param string $cache_id cache id
|
||||
* @param string $compile_id compile id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function insert_in_lazy_cache($template, $cache_id, $compile_id)
|
||||
{
|
||||
$template_md5 = md5($template);
|
||||
$sql = 'INSERT IGNORE INTO `'._DB_PREFIX_.'smarty_lazy_cache`
|
||||
(`template_hash`, `cache_id`, `compile_id`, `last_update`)
|
||||
VALUES (\''.pSQL($template_md5).'\'';
|
||||
|
||||
$sql .= ',"'.pSQL((string)$cache_id).'"';
|
||||
|
||||
if (strlen($compile_id) > 32) {
|
||||
$compile_id = md5($compile_id);
|
||||
}
|
||||
$sql .= ',"'.pSQL((string)$compile_id).'"';
|
||||
$sql .= ', FROM_UNIXTIME('.time().'))';
|
||||
|
||||
return Db::getInstance()->execute($sql, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the current template from the lazy cache or the whole cache if no template name is given
|
||||
*
|
||||
* @param string $template template name
|
||||
* @param string $cache_id cache id
|
||||
* @param string $compile_id compile id
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function delete_from_lazy_cache($template, $cache_id, $compile_id)
|
||||
{
|
||||
if (!$template) {
|
||||
return Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'smarty_lazy_cache`', false);
|
||||
}
|
||||
|
||||
$template_md5 = md5($template);
|
||||
$sql = 'DELETE FROM `'._DB_PREFIX_.'smarty_lazy_cache`
|
||||
WHERE template_hash=\''.pSQL($template_md5).'\'';
|
||||
|
||||
if ($cache_id != null) {
|
||||
$sql .= ' AND cache_id LIKE "'.pSQL((string)$cache_id).'%"';
|
||||
}
|
||||
|
||||
if ($compile_id != null) {
|
||||
if (strlen($compile_id) > 32) {
|
||||
$compile_id = md5($compile_id);
|
||||
}
|
||||
$sql .= ' AND compile_id="'.pSQL((string)$compile_id).'"';
|
||||
}
|
||||
Db::getInstance()->execute($sql, false);
|
||||
return Db::getInstance()->Affected_Rows();
|
||||
}
|
||||
}
|
||||
|
||||
class Smarty_Custom_Template extends Smarty_Internal_Template
|
||||
class Smarty_Custom_Template extends Smarty_Dev_Template
|
||||
{
|
||||
/** @var SmartyCustom|null */
|
||||
public $smarty = null;
|
||||
public $display_comments = false;
|
||||
|
||||
public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false)
|
||||
{
|
||||
if ($this->smarty->caching) {
|
||||
$tpl = parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
|
||||
if (property_exists($this, 'cached')) {
|
||||
$filepath = str_replace($this->smarty->getCacheDir(), '', $this->cached->filepath);
|
||||
if ($this->smarty->is_in_lazy_cache($this->template_resource, $this->cache_id, $this->compile_id) != $filepath) {
|
||||
$this->smarty->update_filepath($filepath, $this->template_resource, $this->cache_id, $this->compile_id);
|
||||
}
|
||||
}
|
||||
return $tpl;
|
||||
} else {
|
||||
return parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,9 +37,18 @@ class SmartyDev extends Smarty
|
||||
*/
|
||||
public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false)
|
||||
{
|
||||
return "\n<!-- begin $template -->\n"
|
||||
.parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter)
|
||||
."\n<!-- end $template -->\n";
|
||||
if (($overrideTemplate = Hook::exec('displayOverrideTemplate', array('default_template' => $template, 'controller' => Context::getContext()->controller)))
|
||||
&& file_exists($overrideTemplate)
|
||||
) {
|
||||
$template = $overrideTemplate;
|
||||
}
|
||||
|
||||
$response = parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
|
||||
if (!isset($this->display_comments) || $this->display_comments) {
|
||||
$response = "\n<!-- begin $template -->\n".$response."\n<!-- end $template -->\n";
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,8 +65,22 @@ class Smarty_Dev_Template extends Smarty_Internal_Template
|
||||
$tpl = $this->template_resource;
|
||||
}
|
||||
|
||||
return "\n<!-- begin $tpl -->\n"
|
||||
.parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter)
|
||||
."\n<!-- end $tpl -->\n";
|
||||
if (($overrideTemplate = Hook::exec('displayOverrideTemplate', array('default_template' => $tpl, 'controller' => Context::getContext()->controller)))
|
||||
&& file_exists($overrideTemplate)
|
||||
) {
|
||||
$tpl = $overrideTemplate;
|
||||
if (!is_null($template)) {
|
||||
$template = Context::getContext()->smarty->createTemplate($tpl);
|
||||
} else {
|
||||
$template = $tpl;
|
||||
}
|
||||
}
|
||||
|
||||
$response = parent::fetch($template, $cache_id, $compile_id, $parent, $display, $merge_tpl_vars, $no_output_filter);
|
||||
if (!isset($this->display_comments) || $this->display_comments) {
|
||||
$response = "\n<!-- begin $tpl -->\n".$response."\n<!-- end $tpl -->\n";
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1624,28 +1624,10 @@ class FrontControllerCore extends Controller
|
||||
if ($this->useMobileTheme()) {
|
||||
$this->setMobileTemplate($default_template);
|
||||
} else {
|
||||
$template = $this->getOverrideTemplate();
|
||||
if ($template) {
|
||||
parent::setTemplate($template);
|
||||
} else {
|
||||
parent::setTemplate($default_template);
|
||||
}
|
||||
parent::setTemplate($default_template);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an overridden template path (if any) for this controller.
|
||||
* If not overridden, will return false. This method can be easily overriden in a
|
||||
* specific controller.
|
||||
*
|
||||
* @since 1.5.0.13
|
||||
* @return string|bool
|
||||
*/
|
||||
public function getOverrideTemplate()
|
||||
{
|
||||
return Hook::exec('DisplayOverrideTemplate', array('controller' => $this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if mobile theme is active and in use.
|
||||
*
|
||||
|
||||
@@ -34,7 +34,7 @@ if (Configuration::get('PS_SMARTY_LOCAL')) {
|
||||
} elseif (_PS_MODE_DEV_ && !defined('_PS_ADMIN_DIR_')) {
|
||||
$smarty = new SmartyDev();
|
||||
} else {
|
||||
$smarty = new Smarty();
|
||||
$smarty = new SmartyCustom();
|
||||
}
|
||||
|
||||
$smarty->setCompileDir(_PS_CACHE_DIR_.'smarty/compile');
|
||||
|
||||
@@ -22,427 +22,442 @@
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<!-- MODULE Block cart -->
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
<div class="header-top-item {if $PS_CATALOG_MODE}header_user_catalog{/if}">
|
||||
{/if}
|
||||
<div class="shopping_cart">
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
|
||||
{block name='block_cart_content'}
|
||||
<!-- MODULE Block cart -->
|
||||
{block name='block_cart_shopping_cart'}
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
<div class="header-top-item {if $PS_CATALOG_MODE}header_user_catalog{/if}">
|
||||
{/if}
|
||||
<div class="shopping_cart">
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
</a>
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
|
||||
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
</a>
|
||||
{block name='block_cart_cart_block'}
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
{/if}
|
||||
</span>
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- .cart_block -->
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='block_cart_layer_cart'}
|
||||
{counter name=active_overlay assign=active_overlay}
|
||||
{if !$PS_CATALOG_MODE && $active_overlay == 1}
|
||||
<div id="layer_cart">
|
||||
<div class="clearfix">
|
||||
{block name='block_cart_layer_cart_product'}
|
||||
<div class="layer_cart_product col-xs-12 col-md-6">
|
||||
<span class="cross" title="{l s='Close window' mod='blockcart'}"></span>
|
||||
<h2 class="layer_cart_room_txt">
|
||||
<i class="icon-check"></i>{l s='Room successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<h2 class="layer_cart_product_txt">
|
||||
<i class="icon-check"></i>{l s='Item successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<div class="product-image-container layer_cart_img">
|
||||
</div>
|
||||
<div class="layer_cart_product_info">
|
||||
<span id="layer_cart_product_title" class="product-name"></span>
|
||||
<span id="layer_cart_product_attributes"></span>
|
||||
<div class="layer_cart_room_txt">
|
||||
<strong class="dark">{l s='Time Duration' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_time_duration"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}{l s='Room occupancy' mod='blockcart'}{else}{l s='Rooms quantity added' mod='blockcart'}{/if} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Quantity' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_quantity"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{l s='Room type cost' mod='blockcart'} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Total' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_price"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='block_cart_layer_cart_cart'}
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div> -->
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
</p>
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div><!-- .cart_block -->
|
||||
<div class="crossseling"></div>
|
||||
</div> <!-- #layer_cart -->
|
||||
<div class="layer_cart_overlay"></div>
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
</div>
|
||||
{/if}
|
||||
{counter name=active_overlay assign=active_overlay}
|
||||
{if !$PS_CATALOG_MODE && $active_overlay == 1}
|
||||
<div id="layer_cart">
|
||||
<div class="clearfix">
|
||||
<div class="layer_cart_product col-xs-12 col-md-6">
|
||||
<span class="cross" title="{l s='Close window' mod='blockcart'}"></span>
|
||||
<h2 class="layer_cart_room_txt">
|
||||
<i class="icon-check"></i>{l s='Room successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<h2 class="layer_cart_product_txt">
|
||||
<i class="icon-check"></i>{l s='Item successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<div class="product-image-container layer_cart_img">
|
||||
</div>
|
||||
<div class="layer_cart_product_info">
|
||||
<span id="layer_cart_product_title" class="product-name"></span>
|
||||
<span id="layer_cart_product_attributes"></span>
|
||||
<div class="layer_cart_room_txt">
|
||||
<strong class="dark">{l s='Time Duration' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_time_duration"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}{l s='Room occupancy' mod='blockcart'}{else}{l s='Rooms quantity added' mod='blockcart'}{/if} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Quantity' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_quantity"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{l s='Room type cost' mod='blockcart'} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Total' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_price"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
{/block}
|
||||
{/block}
|
||||
{block name='block_cart_js_vars'}
|
||||
{strip}
|
||||
{addJsDefL name=someErrorCondition}{l s='Some Error occured.Please try again.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDef CUSTOMIZE_TEXTFIELD=$CUSTOMIZE_TEXTFIELD}
|
||||
{addJsDef img_dir=$img_dir|escape:'quotes':'UTF-8'}
|
||||
{addJsDef generated_date=$smarty.now|intval}
|
||||
{addJsDef ajax_allowed=$ajax_allowed|boolval}
|
||||
{addJsDef hasDeliveryAddress=(isset($cart->id_address_delivery) && $cart->id_address_delivery)}
|
||||
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
{addJsDefL name=customizationIdMessage}{l s='Customization #' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=removingLinkText}{l s='remove this product from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeShippingTranslation}{l s='Free shipping!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeProductTranslation}{l s='Free!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=delete_txt}{l s='Delete' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=toBeDetermined}{l s='To be determined' mod='blockcart' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{* MODULE Block cart
|
||||
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
###################################################################
|
||||
By webkul to send needed variable in ajax-cart.js
|
||||
################################################################### *}
|
||||
{addJsDef module_dir=$module_dir}
|
||||
{addJsDef currency_sign = $currency->sign}
|
||||
{addJsDef room_warning_num = $warning_num}
|
||||
{addJsDef currency_format = $currency->format}
|
||||
{addJsDef currency_blank = $currency->blank}
|
||||
{addJsDefL name=adults_txt}{l s='Adults' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=children_txt}{l s='Children' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=price_txt}{l s='Price' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=total_qty_txt}{l s='Total Qty.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=qty_txt}{l s='Qty' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=duration_txt}{l s='Duration' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=capacity_txt}{l s='Capacity' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=remove_rm_title}{l s='Remove this room from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=no_internet_txt}{l s='No internet. Please check your internet connection.' mod='blockcart' js=1}{/addJsDefL}
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
</div> -->
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="crossseling"></div>
|
||||
</div> <!-- #layer_cart -->
|
||||
<div class="layer_cart_overlay"></div>
|
||||
{/if}
|
||||
{strip}
|
||||
{addJsDefL name=someErrorCondition}{l s='Some Error occured.Please try again.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDef CUSTOMIZE_TEXTFIELD=$CUSTOMIZE_TEXTFIELD}
|
||||
{addJsDef img_dir=$img_dir|escape:'quotes':'UTF-8'}
|
||||
{addJsDef generated_date=$smarty.now|intval}
|
||||
{addJsDef ajax_allowed=$ajax_allowed|boolval}
|
||||
{addJsDef hasDeliveryAddress=(isset($cart->id_address_delivery) && $cart->id_address_delivery)}
|
||||
|
||||
{addJsDefL name=customizationIdMessage}{l s='Customization #' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=removingLinkText}{l s='remove this product from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeShippingTranslation}{l s='Free shipping!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeProductTranslation}{l s='Free!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=delete_txt}{l s='Delete' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=toBeDetermined}{l s='To be determined' mod='blockcart' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{* MODULE Block cart
|
||||
|
||||
###################################################################
|
||||
By webkul to send needed variable in ajax-cart.js
|
||||
################################################################### *}
|
||||
{addJsDef module_dir=$module_dir}
|
||||
{addJsDef currency_sign = $currency->sign}
|
||||
{addJsDef room_warning_num = $warning_num}
|
||||
{addJsDef currency_format = $currency->format}
|
||||
{addJsDef currency_blank = $currency->blank}
|
||||
{addJsDefL name=adults_txt}{l s='Adults' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=children_txt}{l s='Children' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=price_txt}{l s='Price' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=total_qty_txt}{l s='Total Qty.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=qty_txt}{l s='Qty' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=duration_txt}{l s='Duration' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=capacity_txt}{l s='Capacity' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=remove_rm_title}{l s='Remove this room from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=no_internet_txt}{l s='No internet. Please check your internet connection.' mod='blockcart' js=1}{/addJsDefL}
|
||||
|
||||
{addJsDef rm_avail_process_lnk = $link->getModuleLink('blockcart', 'checkroomavailabilityajaxprocess')}
|
||||
{addJsDef pagename = $current_page}
|
||||
{/strip}
|
||||
{* ###################################################################
|
||||
End
|
||||
################################################################### *}
|
||||
{addJsDef rm_avail_process_lnk = $link->getModuleLink('blockcart', 'checkroomavailabilityajaxprocess')}
|
||||
{addJsDef pagename = $current_page}
|
||||
{/strip}
|
||||
{* ###################################################################
|
||||
End
|
||||
################################################################### *}
|
||||
{/block}
|
||||
@@ -23,30 +23,32 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if count($currencies) > 1}
|
||||
<div id="currencies-block-top" class="currencies-block-wrap nav-main-item-right hidden-xs pull-right">
|
||||
<div class="dropdown">
|
||||
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
{foreach from=$currencies key=k item=f_currency}
|
||||
{if $cookie->id_currency == $f_currency.id_currency}{$f_currency.iso_code}{/if}
|
||||
{/foreach}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
{block name='block_currencies_content'}
|
||||
{if count($currencies) > 1}
|
||||
<div id="currencies-block-top" class="currencies-block-wrap nav-main-item-right hidden-xs pull-right">
|
||||
<div class="dropdown">
|
||||
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
{foreach from=$currencies key=k item=f_currency}
|
||||
{if $cookie->id_currency == $f_currency.id_currency}{$f_currency.iso_code}{/if}
|
||||
{/foreach}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$currencies key=k item=f_currency}
|
||||
{if strpos($f_currency.name, '('|cat:$f_currency.iso_code:')') === false}
|
||||
{assign var="currency_name" value={l s='%s (%s)' sprintf=[$f_currency.name, $f_currency.iso_code]}}
|
||||
{else}
|
||||
{assign var="currency_name" value=$f_currency.name}
|
||||
{/if}
|
||||
<li {if $cookie->id_currency == $f_currency.id_currency}class="disabled"{/if}>
|
||||
<a href="javascript:setCurrency({$f_currency.id_currency});" title="{$currency_name}">
|
||||
{$currency_name}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$currencies key=k item=f_currency}
|
||||
{if strpos($f_currency.name, '('|cat:$f_currency.iso_code:')') === false}
|
||||
{assign var="currency_name" value={l s='%s (%s)' sprintf=[$f_currency.name, $f_currency.iso_code]}}
|
||||
{else}
|
||||
{assign var="currency_name" value=$f_currency.name}
|
||||
{/if}
|
||||
<li {if $cookie->id_currency == $f_currency.id_currency}class="disabled"{/if}>
|
||||
<a href="javascript:setCurrency({$f_currency.id_currency});" title="{$currency_name}">
|
||||
{$currency_name}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -17,32 +17,34 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{if count($languages) > 1}
|
||||
<div id="languages-block-top" class="languages-block-wrap nav-main-item-right hidden-xs pull-right">
|
||||
<div class="dropdown">
|
||||
{foreach from=$languages key=k item=language}
|
||||
{if $language.iso_code == $lang_iso}
|
||||
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
{$language.name|regex_replace:"/\s\(.*\)$/":""}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
{block name='block_languages_content'}
|
||||
{if count($languages) > 1}
|
||||
<div id="languages-block-top" class="languages-block-wrap nav-main-item-right hidden-xs pull-right">
|
||||
<div class="dropdown">
|
||||
{foreach from=$languages key=k item=language}
|
||||
<li {if $language.iso_code == $lang_iso}class="disabled"{/if}>
|
||||
{assign var=indice_lang value=$language.id_lang}
|
||||
{if isset($lang_rewrite_urls.$indice_lang)}
|
||||
<a href="{$lang_rewrite_urls.$indice_lang|escape:'html':'UTF-8'}" title="{$language.name}">
|
||||
{else}
|
||||
<a href="{$link->getLanguageLink($language.id_lang)|escape:'html':'UTF-8'}" title="{$language.name}">
|
||||
{/if}
|
||||
<span>{$language.name|regex_replace:"/\s\(.*\)$/":""}</span>
|
||||
</a>
|
||||
</li>
|
||||
{if $language.iso_code == $lang_iso}
|
||||
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">
|
||||
{$language.name|regex_replace:"/\s\(.*\)$/":""}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$languages key=k item=language}
|
||||
<li {if $language.iso_code == $lang_iso}class="disabled"{/if}>
|
||||
{assign var=indice_lang value=$language.id_lang}
|
||||
{if isset($lang_rewrite_urls.$indice_lang)}
|
||||
<a href="{$lang_rewrite_urls.$indice_lang|escape:'html':'UTF-8'}" title="{$language.name}">
|
||||
{else}
|
||||
<a href="{$link->getLanguageLink($language.id_lang)|escape:'html':'UTF-8'}" title="{$language.name}">
|
||||
{/if}
|
||||
<span>{$language.name|regex_replace:"/\s\(.*\)$/":""}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -17,33 +17,39 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
<div class="header-top-item">
|
||||
<button type="button" class="nav_toggle">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
{block name='navigation_menu_content'}
|
||||
<div class="header-top-item">
|
||||
<button type="button" class="nav_toggle">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div id="menu_cont" class="menu_cont_right">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
<div class="row margin-lr-0">
|
||||
<span class="pull-right close_navbar"><i class="icon-close"></i></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<ul class="nav nav-pills nav-stacked wk-nav-style">
|
||||
{if isset($navigation_links) && $navigation_links}
|
||||
{foreach $navigation_links as $navigationLink}
|
||||
<li>
|
||||
<a class="navigation-link" href="{$navigationLink['link']}">{$navigationLink['name']}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{hook h="displayDefaultNavigationHook"}
|
||||
</ul>
|
||||
{hook h="displayExternalNavigationHook"}
|
||||
<div id="menu_cont" class="menu_cont_right">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
<div class="row margin-lr-0">
|
||||
<span class="pull-right close_navbar"><i class="icon-close"></i></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<ul class="nav nav-pills nav-stacked wk-nav-style">
|
||||
{if isset($navigation_links) && $navigation_links}
|
||||
{foreach $navigation_links as $navigationLink}
|
||||
<li>
|
||||
<a class="navigation-link" href="{$navigationLink['link']}">{$navigationLink['name']}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{block name='display_default_navigation_hook'}
|
||||
{hook h="displayDefaultNavigationHook"}
|
||||
{/block}
|
||||
</ul>
|
||||
{block name='display_external_navigation_hook'}
|
||||
{hook h="displayExternalNavigationHook"}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -17,15 +17,17 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{if $email != ''}
|
||||
<div class="contact-item">
|
||||
<i class="icon-envelope-o"></i>
|
||||
<a href="mailto:{$email}">{$email}</a>
|
||||
</div>
|
||||
{/if}
|
||||
{if $phone != ''}
|
||||
<div class="contact-item">
|
||||
<i class="icon-phone"></i>
|
||||
<a href="tel:{$phone}">{$phone}</a>
|
||||
</div>
|
||||
{/if}
|
||||
{block name='display_nav_content'}
|
||||
{if $email != ''}
|
||||
<div class="contact-item">
|
||||
<i class="icon-envelope-o"></i>
|
||||
<a href="mailto:{$email}">{$email}</a>
|
||||
</div>
|
||||
{/if}
|
||||
{if $phone != ''}
|
||||
<div class="contact-item">
|
||||
<i class="icon-phone"></i>
|
||||
<a href="tel:{$phone}">{$phone}</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -17,23 +17,27 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
<div class="header-desc-container">
|
||||
<div class="header-desc-wrapper">
|
||||
<div class="header-desc-primary">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="header-desc-welcome">{l s='Welcome To' mod='hotelreservationsystem'}</p>
|
||||
<hr class="heasder-desc-hr-first"/>
|
||||
<div class="header-desc-inner-wrapper">
|
||||
<h1 class="header-hotel-name">{$WK_HTL_CHAIN_NAME|escape:'htmlall':'UTF-8'}</h1>
|
||||
<p class="header-hotel-desc">{$WK_HTL_TAG_LINE|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="heasder-desc-hr-second"/>
|
||||
{block name='header_hotel_desc_block_content'}
|
||||
<div class="header-desc-container">
|
||||
<div class="header-desc-wrapper">
|
||||
<div class="header-desc-primary">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="header-desc-welcome">{l s='Welcome To' mod='hotelreservationsystem'}</p>
|
||||
<hr class="heasder-desc-hr-first"/>
|
||||
<div class="header-desc-inner-wrapper">
|
||||
<h1 class="header-hotel-name">{$WK_HTL_CHAIN_NAME|escape:'htmlall':'UTF-8'}</h1>
|
||||
<p class="header-hotel-desc">{$WK_HTL_TAG_LINE|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="heasder-desc-hr-second"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{block name='display_after_header_hotel_desc'}
|
||||
{hook h="displayAfterHeaderHotelDesc"}
|
||||
{/block}
|
||||
</div>
|
||||
{hook h="displayAfterHeaderHotelDesc"}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -17,59 +17,65 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
{if isset($InteriorImg) && $InteriorImg}
|
||||
<div id="hotelInteriorBlock" class="row home_block_container">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
{if $HOTEL_INTERIOR_HEADING && $HOTEL_INTERIOR_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_INTERIOR_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_INTERIOR_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{hook h="displayInteriorExtraContent"}
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="row home_block_content htlInterior-owlCarousel">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<div class="owl-carousel owl-theme">
|
||||
{assign var='intImgIteration' value=0}
|
||||
{foreach from=$InteriorImg item=img_name name=intImg}
|
||||
{if $smarty.foreach.intImg.iteration%3 == 1}
|
||||
<div class="interiorImgWrapper">
|
||||
{/if}
|
||||
<div class="interiorbox" data-fancybox-group="interiorGallery" rel="interiorGallery" href="{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotel_interior/`$img_name['name']|escape:'htmlall':'UTF-8'`.jpg")}" title="{$img_name['display_name']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="interiorboxInner">
|
||||
<img src="{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotel_interior/`$img_name['name']|escape:'htmlall':'UTF-8'`.jpg")}" class="interiorImg" alt="{$img_name['display_name']|escape:'htmlall':'UTF-8'}">
|
||||
</div>
|
||||
<div class="interiorHoverBlockWrapper">
|
||||
<div class="interiorHoverPrimaryBlock">
|
||||
<div class="interiorHoverSecondaryBlock">
|
||||
<i class="icon-search-plus"></i>
|
||||
{block name='hotel_interior_content'}
|
||||
{if isset($InteriorImg) && $InteriorImg}
|
||||
<div id="hotelInteriorBlock" class="row home_block_container">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
{block name='hotel_interior_heading'}
|
||||
{if $HOTEL_INTERIOR_HEADING && $HOTEL_INTERIOR_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_INTERIOR_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_INTERIOR_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{hook h="displayInteriorExtraContent"}
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='hotel_interior_body'}
|
||||
<div class="row home_block_content htlInterior-owlCarousel">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<div class="owl-carousel owl-theme">
|
||||
{assign var='intImgIteration' value=0}
|
||||
{foreach from=$InteriorImg item=img_name name=intImg}
|
||||
{if $smarty.foreach.intImg.iteration%3 == 1}
|
||||
<div class="interiorImgWrapper">
|
||||
{/if}
|
||||
<div class="interiorbox" data-fancybox-group="interiorGallery" rel="interiorGallery" href="{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotel_interior/`$img_name['name']|escape:'htmlall':'UTF-8'`.jpg")}" title="{$img_name['display_name']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="interiorboxInner">
|
||||
<img src="{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotel_interior/`$img_name['name']|escape:'htmlall':'UTF-8'`.jpg")}" class="interiorImg" alt="{$img_name['display_name']|escape:'htmlall':'UTF-8'}">
|
||||
</div>
|
||||
<div class="interiorHoverBlockWrapper">
|
||||
<div class="interiorHoverPrimaryBlock">
|
||||
<div class="interiorHoverSecondaryBlock">
|
||||
<i class="icon-search-plus"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if $smarty.foreach.intImg.iteration%3 == 0}
|
||||
</div>
|
||||
</div>
|
||||
{if $smarty.foreach.intImg.iteration%3 == 0}
|
||||
</div>
|
||||
{/if}
|
||||
{assign var='intImgIteration' value=$smarty.foreach.intImg.iteration}
|
||||
{/foreach}
|
||||
{if $intImgIteration%3}
|
||||
{assign var='intImgLeft' value=3-($intImgIteration%3)}
|
||||
{for $foo=1 to $intImgLeft}
|
||||
<div class="interiorbox">
|
||||
<div class="interiorboxInner">
|
||||
<img src="{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/Default-Image.png")}" class="interiorImg" alt="Default Image">
|
||||
{/if}
|
||||
{assign var='intImgIteration' value=$smarty.foreach.intImg.iteration}
|
||||
{/foreach}
|
||||
{if $intImgIteration%3}
|
||||
{assign var='intImgLeft' value=3-($intImgIteration%3)}
|
||||
{for $foo=1 to $intImgLeft}
|
||||
<div class="interiorbox">
|
||||
<div class="interiorboxInner">
|
||||
<img src="{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/Default-Image.png")}" class="interiorImg" alt="Default Image">
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
</div>
|
||||
</div>
|
||||
{/for}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
<hr class="home_block_seperator"/>
|
||||
</div>
|
||||
<hr class="home_block_seperator"/>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -20,131 +20,135 @@
|
||||
{if isset($hotelAmenities) && $hotelAmenities}
|
||||
<div id="hotelAmenitiesBlock" class="row home_block_container">
|
||||
<div class="col-xs-12 col-sm-12 home_amenities_wrapper">
|
||||
{if $HOTEL_AMENITIES_HEADING && $HOTEL_AMENITIES_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_AMENITIES_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_AMENITIES_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="homeAmenitiesBlock home_block_content">
|
||||
{assign var='amenityPosition' value=0}
|
||||
{assign var='amenityIteration' value=0}
|
||||
{foreach from=$hotelAmenities item=amenity name=amenityBlock}
|
||||
|
||||
{if $smarty.foreach.amenityBlock.iteration%2 != 0}
|
||||
<div class="row margin-lr-0">
|
||||
{if $amenityPosition}
|
||||
{assign var='amenityPosition' value=0}
|
||||
{else}
|
||||
{assign var='amenityPosition' value=1}
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="col-md-6 padding-lr-0 hidden-xs hidden-sm">
|
||||
<div class="row margin-lr-0 amenity_content">
|
||||
{if $amenityPosition}
|
||||
<div class="col-md-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="col-md-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 padding-lr-0 visible-sm">
|
||||
<div class="row margin-lr-0 amenity_content">
|
||||
{if $smarty.foreach.amenityBlock.iteration%2 != 0}
|
||||
<div class="col-sm-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="col-sm-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 padding-lr-0 visible-xs">
|
||||
<div class="row margin-lr-0 amenity_content">
|
||||
<div class="col-xs-12 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if $smarty.foreach.amenityBlock.iteration%2 == 0}
|
||||
{block name='hotel_amenities_heading'}
|
||||
{if $HOTEL_AMENITIES_HEADING && $HOTEL_AMENITIES_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_AMENITIES_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_AMENITIES_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
{/if}
|
||||
{assign var='amenityIteration' value=$smarty.foreach.amenityBlock.iteration}
|
||||
{/foreach}
|
||||
{if $amenityIteration%2}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='hotel_amenities_body'}
|
||||
<div class="homeAmenitiesBlock home_block_content">
|
||||
{assign var='amenityPosition' value=0}
|
||||
{assign var='amenityIteration' value=0}
|
||||
{foreach from=$hotelAmenities item=amenity name=amenityBlock}
|
||||
|
||||
{if $smarty.foreach.amenityBlock.iteration%2 != 0}
|
||||
<div class="row margin-lr-0">
|
||||
{if $amenityPosition}
|
||||
{assign var='amenityPosition' value=0}
|
||||
{else}
|
||||
{assign var='amenityPosition' value=1}
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="col-md-6 padding-lr-0 hidden-xs hidden-sm">
|
||||
<div class="row margin-lr-0 amenity_content">
|
||||
{if $amenityPosition}
|
||||
<div class="col-md-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="col-md-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 padding-lr-0 visible-sm">
|
||||
<div class="row margin-lr-0 amenity_content">
|
||||
{if $smarty.foreach.amenityBlock.iteration%2 != 0}
|
||||
<div class="col-sm-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="col-sm-6 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 padding-lr-0 visible-xs">
|
||||
<div class="row margin-lr-0 amenity_content">
|
||||
<div class="col-xs-12 padding-lr-0">
|
||||
<div class="amenity_img_primary">
|
||||
<div class="amenity_img_secondary" style="background-image: url('{$link->getMediaLink("`$module_dir|escape:'htmlall':'UTF-8'`views/img/hotels_features_img/`$amenity.id_features_block|escape:'htmlall':'UTF-8'`.jpg")}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 padding-lr-0 amenity_desc_cont">
|
||||
<div class="amenity_desc_primary">
|
||||
<div class="amenity_desc_secondary">
|
||||
<p class="amenity_heading">{$amenity['feature_title']|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="amenity_description">{$amenity['feature_description']|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="amenity_desc_hr" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if $smarty.foreach.amenityBlock.iteration%2 == 0}
|
||||
</div>
|
||||
{/if}
|
||||
{assign var='amenityIteration' value=$smarty.foreach.amenityBlock.iteration}
|
||||
{/foreach}
|
||||
{if $amenityIteration%2}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
<hr class="home_block_seperator"/>
|
||||
</div>
|
||||
|
||||
@@ -17,62 +17,70 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
<div id="filter_results" class="row block">
|
||||
<div class="col-sm-12">
|
||||
{if isset($config) && $config['SHOW_AMENITIES_FILTER'] && $all_feat}
|
||||
<div class="row margin-lr-0 layered_filter_cont">
|
||||
<div class="col-sm-12 layered_filter_heading">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="pull-left lf_headingmain_wrapper">
|
||||
<span>{l s='Amenities' mod='wkhotelfilterblock'}</span>
|
||||
<hr class="theme-text-underline">
|
||||
{block name='hotel_filter_content'}
|
||||
<div id="filter_results" class="row block">
|
||||
<div class="col-sm-12">
|
||||
{block name='hotel_filter_amenitt_filter'}
|
||||
{if isset($config) && $config['SHOW_AMENITIES_FILTER'] && $all_feat}
|
||||
<div class="row margin-lr-0 layered_filter_cont">
|
||||
<div class="col-sm-12 layered_filter_heading">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="pull-left lf_headingmain_wrapper">
|
||||
<span>{l s='Amenities' mod='wkhotelfilterblock'}</span>
|
||||
<hr class="theme-text-underline">
|
||||
</div>
|
||||
<span class="pull-right clear_filter">{l s='Clear Filter' mod='wkhotelfilterblock'}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 lf_sub_cont">
|
||||
{foreach $all_feat as $feat}
|
||||
<div class="layered_filt">
|
||||
<input type="checkbox" class="filter" data-type="amenities" value="{$feat.id_feature}">
|
||||
<span class="filters_name">{$feat.name}</span>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<span class="pull-right clear_filter">{l s='Clear Filter' mod='wkhotelfilterblock'}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 lf_sub_cont">
|
||||
{foreach $all_feat as $feat}
|
||||
<div class="layered_filt">
|
||||
<input type="checkbox" class="filter" data-type="amenities" value="{$feat.id_feature}">
|
||||
<span class="filters_name">{$feat.name}</span>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{if isset($config) && $config['SHOW_PRICE_FILTER']}
|
||||
<div class="row margin-lr-0 layered_filter_cont">
|
||||
<div class="col-sm-12 layered_filter_heading">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="pull-left lf_headingmain_wrapper">
|
||||
<span>{l s='Price' mod='wkhotelfilterblock'}</span>
|
||||
<hr class="theme-text-underline">
|
||||
{block name='hotel_filter_price_filter'}
|
||||
{if isset($config) && $config['SHOW_PRICE_FILTER']}
|
||||
<div class="row margin-lr-0 layered_filter_cont">
|
||||
<div class="col-sm-12 layered_filter_heading">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="pull-left lf_headingmain_wrapper">
|
||||
<span>{l s='Price' mod='wkhotelfilterblock'}</span>
|
||||
<hr class="theme-text-underline">
|
||||
</div>
|
||||
<span class="pull-right clear_filter">{l s='Clear Filter' mod='wkhotelfilterblock'}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 lf_sub_cont">
|
||||
<div class="row margin-lr-0 price_filter_subcont">
|
||||
<span class="pull-left">{$currency->prefix} <span id="filter_price_from">{$min_price}</span> {$currency->suffix}</span>
|
||||
<span class="pull-right">{$currency->prefix} <span id="filter_price_to">{$max_price}</span> {$currency->suffix}</span>
|
||||
</div>
|
||||
<div id="filter_price_silder"></div>
|
||||
</div>
|
||||
<span class="pull-right clear_filter">{l s='Clear Filter' mod='wkhotelfilterblock'}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 lf_sub_cont">
|
||||
<div class="row margin-lr-0 price_filter_subcont">
|
||||
<span class="pull-left">{$currency->prefix} <span id="filter_price_from">{$min_price}</span> {$currency->suffix}</span>
|
||||
<span class="pull-right">{$currency->prefix} <span id="filter_price_to">{$max_price}</span> {$currency->suffix}</span>
|
||||
</div>
|
||||
<div id="filter_price_silder"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{strip}
|
||||
{addJsDef num_days = $num_days}
|
||||
{addJsDef date_from = $date_from}
|
||||
{addJsDef date_to = $date_to}
|
||||
{/block}
|
||||
{block name='hotel_filter_js_vars'}
|
||||
{strip}
|
||||
{addJsDef num_days = $num_days}
|
||||
{addJsDef date_from = $date_from}
|
||||
{addJsDef date_to = $date_to}
|
||||
|
||||
{addJsDef cat_link = $cat_link}
|
||||
{addJsDef min_price = $min_price}
|
||||
{addJsDef max_price = $max_price}
|
||||
{addJsDef warning_num = $warning_num}
|
||||
{addJsDef cat_link = $cat_link}
|
||||
{addJsDef min_price = $min_price}
|
||||
{addJsDef max_price = $max_price}
|
||||
{addJsDef warning_num = $warning_num}
|
||||
|
||||
{addJsDefL name=viewMoreTxt}{l s='View More' js=1 mod='wkhotelfilterblock'}{/addJsDefL}
|
||||
{addJsDefL name=bookNowTxt}{l s='Book Now' js=1 mod='wkhotelfilterblock'}{/addJsDefL}
|
||||
{/strip}
|
||||
{addJsDefL name=viewMoreTxt}{l s='View More' js=1 mod='wkhotelfilterblock'}{/addJsDefL}
|
||||
{addJsDefL name=bookNowTxt}{l s='Book Now' js=1 mod='wkhotelfilterblock'}{/addJsDefL}
|
||||
{/strip}
|
||||
{/block}
|
||||
@@ -17,64 +17,70 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
{if isset($hotelRoomDisplay) && $hotelRoomDisplay}
|
||||
<div id="hotelRoomsBlock" class="row home_block_container">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
{if $HOTEL_ROOM_DISPLAY_HEADING && $HOTEL_ROOM_DISPLAY_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_ROOM_DISPLAY_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_ROOM_DISPLAY_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="row home_block_content">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
{assign var='htlRoomBlockIteration' value=0}
|
||||
{foreach from=$hotelRoomDisplay item=roomDisplay name=htlRoom}
|
||||
{if $smarty.foreach.htlRoom.iteration%2}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="col-sm-12 col-md-6 margin-btm-30">
|
||||
<a href="{$link->getProductLink($roomDisplay.id_product)|escape:'html':'UTF-8'}">
|
||||
<img src="{$roomDisplay.image|escape:'htmlall':'UTF-8'}" alt="{$roomDisplay.name|escape:'htmlall':'UTF-8'}" class="img-responsive width-100">
|
||||
</a>
|
||||
{hook h='displayHotelRoomsBlockImageAfter' room_type=$roomDisplay}
|
||||
<div class="hotelRoomDescContainer">
|
||||
<div class="row margin-lr-0">
|
||||
<p class="htlRoomTypeNameText pull-left">{$roomDisplay.name|escape:'htmlall':'UTF-8'}</p>
|
||||
{if $roomDisplay.show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
|
||||
<p class="htlRoomTypePriceText pull-right">
|
||||
{if $roomDisplay.feature_price_diff >= 0}
|
||||
<span class="wk_roomType_price {if $roomDisplay.feature_price_diff>0}room_type_old_price{/if}">{convertPrice price = $roomDisplay.price_without_reduction}</span>
|
||||
{/if}
|
||||
{if $roomDisplay.feature_price_diff}
|
||||
<span class="wk_roomType_price">{convertPrice price = $roomDisplay.feature_price}</span>
|
||||
{/if}
|
||||
/ {l s='Per Night' mod='wkhotelroom'}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="row margin-lr-0 htlRoomTypeDescText">
|
||||
{$roomDisplay.description}
|
||||
</div>
|
||||
<div class="row margin-lr-0">
|
||||
<a class="btn btn-default button htlRoomTypeBookNow" href="{$link->getProductLink($roomDisplay.id_product)|escape:'html':'UTF-8'}"><span>{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE}{l s='book now' mod='wkhotelroom'}{else}{l s='View' mod='wkhotelroom'}{/if}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if !($smarty.foreach.htlRoom.iteration%2)}
|
||||
{block name='hotel_room_dispalay_block_content'}
|
||||
{if isset($hotelRoomDisplay) && $hotelRoomDisplay}
|
||||
<div id="hotelRoomsBlock" class="row home_block_container">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
{block name='hotel_room_display_header'}
|
||||
{if $HOTEL_ROOM_DISPLAY_HEADING && $HOTEL_ROOM_DISPLAY_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_ROOM_DISPLAY_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_ROOM_DISPLAY_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
{/if}
|
||||
{assign var='htlRoomBlockIteration' value=$smarty.foreach.htlRoom.iteration}
|
||||
{/foreach}
|
||||
{if $htlRoomBlockIteration%2}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='hotel_room_display_body'}
|
||||
<div class="row home_block_content">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
{assign var='htlRoomBlockIteration' value=0}
|
||||
{foreach from=$hotelRoomDisplay item=roomDisplay name=htlRoom}
|
||||
{if $smarty.foreach.htlRoom.iteration%2}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="col-sm-12 col-md-6 margin-btm-30">
|
||||
<a href="{$link->getProductLink($roomDisplay.id_product)|escape:'html':'UTF-8'}">
|
||||
<img src="{$roomDisplay.image|escape:'htmlall':'UTF-8'}" alt="{$roomDisplay.name|escape:'htmlall':'UTF-8'}" class="img-responsive width-100">
|
||||
</a>
|
||||
{block name='display_hotel_rooms_block_image_after'}
|
||||
{hook h='displayHotelRoomsBlockImageAfter' room_type=$roomDisplay}
|
||||
{/block}
|
||||
<div class="hotelRoomDescContainer">
|
||||
<div class="row margin-lr-0">
|
||||
<p class="htlRoomTypeNameText pull-left">{$roomDisplay.name|escape:'htmlall':'UTF-8'}</p>
|
||||
{if $roomDisplay.show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
|
||||
<p class="htlRoomTypePriceText pull-right">
|
||||
{if $roomDisplay.feature_price_diff >= 0}
|
||||
<span class="wk_roomType_price {if $roomDisplay.feature_price_diff>0}room_type_old_price{/if}">{convertPrice price = $roomDisplay.price_without_reduction}</span>
|
||||
{/if}
|
||||
{if $roomDisplay.feature_price_diff}
|
||||
<span class="wk_roomType_price">{convertPrice price = $roomDisplay.feature_price}</span>
|
||||
{/if}
|
||||
/ {l s='Per Night' mod='wkhotelroom'}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="row margin-lr-0 htlRoomTypeDescText">{$roomDisplay.description}</div>
|
||||
<div class="row margin-lr-0">
|
||||
<a class="btn btn-default button htlRoomTypeBookNow" href="{$link->getProductLink($roomDisplay.id_product)|escape:'html':'UTF-8'}"><span>{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE}{l s='book now' mod='wkhotelroom'}{else}{l s='View' mod='wkhotelroom'}{/if}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if !($smarty.foreach.htlRoom.iteration%2)}
|
||||
</div>
|
||||
{/if}
|
||||
{assign var='htlRoomBlockIteration' value=$smarty.foreach.htlRoom.iteration}
|
||||
{/foreach}
|
||||
{if $htlRoomBlockIteration%2}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
<hr class="home_block_seperator"/>
|
||||
</div>
|
||||
<hr class="home_block_seperator"/>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -17,12 +17,16 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
{if isset($hotels_info) && count($hotels_info)}
|
||||
<div class="header-rmsearch-wrapper">
|
||||
<div class="filter_header clearfix">
|
||||
<p>{l s='Search Rooms' mod='wkroomsearchblock'}</p>
|
||||
<hr class="header-bottom-hr">
|
||||
{block name='category_page_search_content'}
|
||||
{if isset($hotels_info) && count($hotels_info)}
|
||||
<div class="header-rmsearch-wrapper">
|
||||
<div class="filter_header clearfix">
|
||||
<p>{l s='Search Rooms' mod='wkroomsearchblock'}</p>
|
||||
<hr class="header-bottom-hr">
|
||||
</div>
|
||||
{block name='search_form_container'}
|
||||
{include file="./searchForm.tpl"}
|
||||
{/block}
|
||||
</div>
|
||||
{include file="./searchForm.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -17,22 +17,27 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
{if isset($is_index_page) && $is_index_page}
|
||||
<div class="header-rmsearch-container header-rmsearch-hide-xs hidden-xs">
|
||||
{if isset($hotels_info) && count($hotels_info)}
|
||||
<div class="header-rmsearch-wrapper" id="xs_room_search_form">
|
||||
<div class="header-rmsearch-primary">
|
||||
<div class="fancy_search_header_xs">
|
||||
<p>{l s='Search Rooms' mod='wkroomsearchblock'}</p>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="header-rmsearch-inner-wrapper">
|
||||
{include file="./searchForm.tpl"}
|
||||
|
||||
{block name='landing_page_search_content'}
|
||||
{if isset($is_index_page) && $is_index_page}
|
||||
<div class="header-rmsearch-container header-rmsearch-hide-xs hidden-xs">
|
||||
{if isset($hotels_info) && count($hotels_info)}
|
||||
<div class="header-rmsearch-wrapper" id="xs_room_search_form">
|
||||
<div class="header-rmsearch-primary">
|
||||
<div class="fancy_search_header_xs">
|
||||
<p>{l s='Search Rooms' mod='wkroomsearchblock'}</p>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="header-rmsearch-inner-wrapper">
|
||||
{block name='search_form_container'}
|
||||
{include file="./searchForm.tpl"}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -17,8 +17,10 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
<div class="row margin-top-20 visible-xs">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<button id="xs_room_search" class="btn button button-medium" href="#xs_room_search_form"><span>{l s='Make Booking' mod='wkroomsearchblock'}</span></button>
|
||||
{block name='landing_page_xs_btn_content'}
|
||||
<div class="row margin-top-20 visible-xs">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<button id="xs_room_search" class="btn button button-medium" href="#xs_room_search_form"><span>{l s='Make Booking' mod='wkroomsearchblock'}</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
@@ -17,43 +17,49 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
{if isset($hotels_info) && count($hotels_info)}
|
||||
{* searched information wrapper block*}
|
||||
{if isset($search_data) && $search_data}
|
||||
<div class="header-rmsearch-details-wrapper">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-9 form-group">
|
||||
<div class="filter_header row">
|
||||
<div class="col-sm-12">
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}:
|
||||
<button class="btn btn-default visible-xs modify_roomtype_search_btn pull-right"><i class="icon-pencil"></i></button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{block name='room_type_page_search_content'}
|
||||
{if isset($hotels_info) && count($hotels_info)}
|
||||
{* searched information wrapper block*}
|
||||
{block name='room_type_search_details'}
|
||||
{if isset($search_data) && $search_data}
|
||||
<div class="header-rmsearch-details-wrapper">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search_result_info">
|
||||
{$search_data['htl_dtl']['hotel_name']|escape:'htmlall':'UTF-8'}, {$search_data['htl_dtl']['city']|escape:'htmlall':'UTF-8'} {if !$search_data['order_date_restrict']}<img src="{$module_dir}views/img/icon-arrow-left.svg"> {$search_data['date_from']|escape:'htmlall':'UTF-8'|date_format:"%d %b %Y"} - {$search_data['date_to']|escape:'htmlall':'UTF-8'|date_format:"%d %b %Y"}<span class="faded-txt"> ({1+$search_data['num_days']|escape:'htmlall':'UTF-8'} {l s='Days' mod='wkroomsearchblock'} {$search_data['num_days']|escape:'htmlall':'UTF-8'} {if $search_data['num_days'] > 1}{l s='Nights' mod='wkroomsearchblock'}{else}{l s='Night' mod='wkroomsearchblock'}{/if})</span> {/if}
|
||||
<div class="col-sm-9 form-group">
|
||||
<div class="filter_header row">
|
||||
<div class="col-sm-12">
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}:
|
||||
<button class="btn btn-default visible-xs modify_roomtype_search_btn pull-right"><i class="icon-pencil"></i></button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search_result_info">
|
||||
{$search_data['htl_dtl']['hotel_name']|escape:'htmlall':'UTF-8'}, {$search_data['htl_dtl']['city']|escape:'htmlall':'UTF-8'} {if !$search_data['order_date_restrict']}<img src="{$module_dir}views/img/icon-arrow-left.svg"> {$search_data['date_from']|escape:'htmlall':'UTF-8'|date_format:"%d %b %Y"} - {$search_data['date_to']|escape:'htmlall':'UTF-8'|date_format:"%d %b %Y"}<span class="faded-txt"> ({1+$search_data['num_days']|escape:'htmlall':'UTF-8'} {l s='Days' mod='wkroomsearchblock'} {$search_data['num_days']|escape:'htmlall':'UTF-8'} {if $search_data['num_days'] > 1}{l s='Nights' mod='wkroomsearchblock'}{else}{l s='Night' mod='wkroomsearchblock'}{/if})</span> {/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 form-group hidden-xs">
|
||||
<button class="btn btn-default modify_roomtype_search_btn pull-right">{l s='Modify Search' mod='wkroomsearchblock'}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 form-group hidden-xs">
|
||||
<button class="btn btn-default modify_roomtype_search_btn pull-right">{l s='Modify Search' mod='wkroomsearchblock'}</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* search form wrapper block*}
|
||||
<div class="header-rmsearch-wrapper">
|
||||
<div class="container">
|
||||
<div class="filter_header">
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}</p>
|
||||
</div>
|
||||
{* search form *}
|
||||
{block name='search_form_container'}
|
||||
{include file="./searchForm.tpl"}
|
||||
{/block}
|
||||
<a href="#" class="close_room_serach_wrapper"><img src="{$module_dir}views/img/icon-close.svg"></a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* search form wrapper block*}
|
||||
<div class="header-rmsearch-wrapper">
|
||||
<div class="container">
|
||||
<div class="filter_header">
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}</p>
|
||||
</div>
|
||||
{* search form *}
|
||||
{include file="./searchForm.tpl"}
|
||||
<a href="#" class="close_room_serach_wrapper"><img src="{$module_dir}views/img/icon-close.svg"></a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -17,214 +17,230 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
<form method="POST" id="search_hotel_block_form" class="grid">
|
||||
{if isset($location_enabled) && $location_enabled}
|
||||
<div class="form-group area-{$column_widths['location']}">
|
||||
<input type="text" class="form-control header-rmsearch-input input-location" id="hotel_location" name="hotel_location" autocomplete="off" placeholder="{l s='Hotel Location' mod='wkroomsearchblock'}" {if isset($search_data)}value="{$search_data['location']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input hidden="hidden" name="location_category_id" id="location_category_id" {if isset($search_data)}value="{$search_data['location_category_id']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="dropdown">
|
||||
<ul class="location_search_results_ul dropdown-menu"></ul>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if count($hotels_info) <= 1 && !$show_hotel_name}
|
||||
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($hotels_info[0]['max_order_date'])}{$hotels_info[0]['max_order_date']|escape:'htmlall':'UTF-8'}{/if}">
|
||||
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($hotels_info[0]['preparation_time'])}{$hotels_info[0]['preparation_time']|escape:'htmlall':'UTF-8'}{/if}">
|
||||
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" value="{$hotels_info[0]['id_category']}">
|
||||
<input type="hidden" id="id_hotel" name="id_hotel" value="{$hotels_info[0]['id']|escape:'htmlall':'UTF-8'}">
|
||||
<input type="hidden" id="htl_name" class="form-control header-rmsearch-input" value="{$hotels_info[0]['hotel_name']}" readonly>
|
||||
{else}
|
||||
<div class="form-group area-{$column_widths['hotel']}">
|
||||
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" {if isset($search_data)}value="{$search_data['htl_dtl']['id_category']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input type="hidden" id="id_hotel" name="id_hotel" {if isset($search_data)}value="{$search_data['htl_dtl']['id']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($max_order_date)}{$max_order_date|escape:'htmlall':'UTF-8'}{/if}">
|
||||
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($preparation_time)}{$preparation_time|escape:'htmlall':'UTF-8'}{/if}">
|
||||
|
||||
<div class="hotel-selector-wrap {if isset($language_is_rtl) && $language_is_rtl}rtl{/if}">
|
||||
<select name="id_hotel" class="chosen header-rmsearch-input" data-placeholder="{l s='Select Hotel' mod='wkroomsearchblock'}" id="id_hotel_button">
|
||||
<option value=""></option>
|
||||
{foreach $hotels_info as $name_val}
|
||||
<option class="search_result_li" value="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-id-hotel="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-hotel-cat-id="{$name_val['id_category']|escape:'htmlall':'UTF-8'}" data-max_order_date="{$name_val['max_order_date']}" data-preparation_time="{$name_val['preparation_time']|escape:'htmlall':'UTF-8'}" {if isset($search_data) && $name_val['id'] == $search_data['htl_dtl']['id']}selected{/if}>{$name_val['hotel_name']|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($multiple_dates_input) && $multiple_dates_input}
|
||||
<div class="grid area-{$column_widths['date']}" id="daterange_value">
|
||||
<div class="form-group">
|
||||
<input type="hidden" id="check_in_time" name="check_in_time" {if isset($search_data)}value="{$search_data['date_from']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_from" placeholder="{l s='Check-in' mod='wkroomsearchblock'}"><span>{l s='Check-in' mod='wkroomsearchblock'}</span></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_to" placeholder="{l s='Check-out' mod='wkroomsearchblock'}"><span>{l s='Check-out' mod='wkroomsearchblock'}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="form-group area-{$column_widths['date']}">
|
||||
<input type="hidden" id="check_in_time" name="check_in_time" {if isset($search_data)}value="{$search_data['date_from']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="form-control header-rmsearch-input input-date" id="daterange_value" autocomplete="off" placeholder="{l s='Check-in - Check-out' mod='wkroomsearchblock'}" tabindex="-1"><span>{l s='Check-in' mod='wkroomsearchblock'} <i class="icon icon-minus"></i> {l s='Check-out' mod='wkroomsearchblock'}</span></div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if isset($is_occupancy_wise_search) && $is_occupancy_wise_search}
|
||||
<div class="form-group area-{$column_widths['occupancy']}">
|
||||
<div class="dropdown">
|
||||
<button class="form-control input-occupancy header-rmsearch-input {if isset($error) && $error == 1}error_border{/if}" type="button" data-toggle="dropdown" id="guest_occupancy">
|
||||
<span class="pull-left">{if (isset($search_data['occupancy_adults']) && $search_data['occupancy_adults'])}{$search_data['occupancy_adults']} {if $search_data['occupancy_adults'] > 1}{l s='Adults' mod='wkroomsearchblock'}{else}{l s='Adult' mod='wkroomsearchblock'}{/if}, {if isset($search_data['occupancy_children']) && $search_data['occupancy_children']}{$search_data['occupancy_children']} {if $search_data['occupancy_children'] > 1}
|
||||
{l s='Children' mod='wkroomsearchblock'}{else}{l s='Child' mod='wkroomsearchblock'}{/if}, {/if}{$search_data['occupancies']|count} {if $search_data['occupancies']|count > 1}{l s='Rooms' mod='wkroomsearchblock'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room' mod='wkroomsearchblock'}{/if}</span>
|
||||
</button>
|
||||
<div id="search_occupancy_wrapper" class="dropdown-menu">
|
||||
<div id="occupancy_inner_wrapper">
|
||||
{if isset($search_data['occupancies']) && $search_data['occupancies']}
|
||||
{assign var=countRoom value=1}
|
||||
{foreach from=$search_data['occupancies'] key=key item=$occupancy name=occupancyInfo}
|
||||
<div class="occupancy-room-block">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room' mod='wkroomsearchblock'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove' mod='wkroomsearchblock'}</a>{/if}</div>
|
||||
<div class="occupancy_info_block" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
|
||||
<div class="row">
|
||||
<div class="form-group occupancy_count_block col-sm-5 col-xs-6">
|
||||
<label>{l s='Adults' mod='wkroomsearchblock'}</label>
|
||||
<div>
|
||||
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group occupancy_count_block col-sm-7 col-xs-6">
|
||||
<label>{l s='Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="label-desc-txt">({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})</p>
|
||||
</div>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group children_age_info_block col-sm-12" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
|
||||
<label>{l s='All Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="children_ages">
|
||||
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
|
||||
{foreach $occupancy['child_ages'] as $childAge}
|
||||
<div>
|
||||
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
|
||||
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1' mod='wkroomsearchblock'}</option>
|
||||
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1' mod='wkroomsearchblock'}</option>
|
||||
{for $age=1 to ($max_child_age-1)}
|
||||
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
|
||||
{/for}
|
||||
</select>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
</div>
|
||||
{assign var=countRoom value=$countRoom+1}
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="occupancy-room-block">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1' mod='wkroomsearchblock'}</span></div>
|
||||
<div class="occupancy_info_block" occ_block_index="0">
|
||||
<div class="row">
|
||||
<div class="form-group occupancy_count_block col-sm-5 col-xs-6">
|
||||
<label>{l s='Adults' mod='wkroomsearchblock'}</label>
|
||||
<div>
|
||||
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[0][adults]" value="1">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>1</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group occupancy_count_block col-sm-7 col-xs-6">
|
||||
<label>{l s='Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[0][children]" value="0">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>0</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="label-desc-txt">({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})</p>
|
||||
</div>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
<div class="row">
|
||||
<div class="form-group children_age_info_block col-sm-12">
|
||||
<label>{l s='All Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="children_ages">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="occupancy_block_actions">
|
||||
<span id="add_new_occupancy">
|
||||
<a class="add_new_occupancy_btn" href="#"><i class="icon-plus"></i> <span>{l s='Add Room' mod='wkroomsearchblock'}</span></a>
|
||||
</span>
|
||||
<span>
|
||||
<button class="submit_occupancy_btn btn btn-primary">{l s='Done' mod='wkroomsearchblock'}</button>
|
||||
</span>
|
||||
{block name='search_form_content'}
|
||||
<form method="POST" id="search_hotel_block_form" class="grid">
|
||||
{block name='search_form_location_field'}
|
||||
{if isset($location_enabled) && $location_enabled}
|
||||
<div class="form-group area-{$column_widths['location']}">
|
||||
<input type="text" class="form-control header-rmsearch-input input-location" id="hotel_location" name="hotel_location" autocomplete="off" placeholder="{l s='Hotel Location' mod='wkroomsearchblock'}" {if isset($search_data)}value="{$search_data['location']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input hidden="hidden" name="location_category_id" id="location_category_id" {if isset($search_data)}value="{$search_data['location_category_id']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="dropdown">
|
||||
<ul class="location_search_results_ul dropdown-menu"></ul>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='search_form_hotel_field'}
|
||||
{if count($hotels_info) <= 1 && !$show_hotel_name}
|
||||
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($hotels_info[0]['max_order_date'])}{$hotels_info[0]['max_order_date']|escape:'htmlall':'UTF-8'}{/if}">
|
||||
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($hotels_info[0]['preparation_time'])}{$hotels_info[0]['preparation_time']|escape:'htmlall':'UTF-8'}{/if}">
|
||||
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" value="{$hotels_info[0]['id_category']}">
|
||||
<input type="hidden" id="id_hotel" name="id_hotel" value="{$hotels_info[0]['id']|escape:'htmlall':'UTF-8'}">
|
||||
<input type="hidden" id="htl_name" class="form-control header-rmsearch-input" value="{$hotels_info[0]['hotel_name']}" readonly>
|
||||
{else}
|
||||
<div class="form-group area-{$column_widths['hotel']}">
|
||||
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" {if isset($search_data)}value="{$search_data['htl_dtl']['id_category']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input type="hidden" id="id_hotel" name="id_hotel" {if isset($search_data)}value="{$search_data['htl_dtl']['id']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($max_order_date)}{$max_order_date|escape:'htmlall':'UTF-8'}{/if}">
|
||||
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($preparation_time)}{$preparation_time|escape:'htmlall':'UTF-8'}{/if}">
|
||||
|
||||
<div class="hotel-selector-wrap {if isset($language_is_rtl) && $language_is_rtl}rtl{/if}">
|
||||
<select name="id_hotel" class="chosen header-rmsearch-input" data-placeholder="{l s='Select Hotel' mod='wkroomsearchblock'}" id="id_hotel_button">
|
||||
<option value=""></option>
|
||||
{foreach $hotels_info as $name_val}
|
||||
<option class="search_result_li" value="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-id-hotel="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-hotel-cat-id="{$name_val['id_category']|escape:'htmlall':'UTF-8'}" data-max_order_date="{$name_val['max_order_date']}" data-preparation_time="{$name_val['preparation_time']|escape:'htmlall':'UTF-8'}" {if isset($search_data) && $name_val['id'] == $search_data['htl_dtl']['id']}selected{/if}>{$name_val['hotel_name']|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='search_from_date_field'}
|
||||
{if isset($multiple_dates_input) && $multiple_dates_input}
|
||||
<div class="grid area-{$column_widths['date']}" id="daterange_value">
|
||||
<div class="form-group">
|
||||
<input type="hidden" id="check_in_time" name="check_in_time" {if isset($search_data)}value="{$search_data['date_from']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_from" placeholder="{l s='Check-in' mod='wkroomsearchblock'}"><span>{l s='Check-in' mod='wkroomsearchblock'}</span></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_to" placeholder="{l s='Check-out' mod='wkroomsearchblock'}"><span>{l s='Check-out' mod='wkroomsearchblock'}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="form-group area-{$column_widths['date']}">
|
||||
<input type="hidden" id="check_in_time" name="check_in_time" {if isset($search_data)}value="{$search_data['date_from']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
|
||||
<div class="form-control header-rmsearch-input input-date" id="daterange_value" autocomplete="off" placeholder="{l s='Check-in - Check-out' mod='wkroomsearchblock'}" tabindex="-1"><span>{l s='Check-in' mod='wkroomsearchblock'} <i class="icon icon-minus"></i> {l s='Check-out' mod='wkroomsearchblock'}</span></div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='search_form_occupancy_field'}
|
||||
{if isset($is_occupancy_wise_search) && $is_occupancy_wise_search}
|
||||
<div class="form-group area-{$column_widths['occupancy']}">
|
||||
<div class="dropdown">
|
||||
<button class="form-control input-occupancy header-rmsearch-input {if isset($error) && $error == 1}error_border{/if}" type="button" data-toggle="dropdown" id="guest_occupancy">
|
||||
<span class="pull-left">{if (isset($search_data['occupancy_adults']) && $search_data['occupancy_adults'])}{$search_data['occupancy_adults']} {if $search_data['occupancy_adults'] > 1}{l s='Adults' mod='wkroomsearchblock'}{else}{l s='Adult' mod='wkroomsearchblock'}{/if}, {if isset($search_data['occupancy_children']) && $search_data['occupancy_children']}{$search_data['occupancy_children']} {if $search_data['occupancy_children'] > 1}
|
||||
{l s='Children' mod='wkroomsearchblock'}{else}{l s='Child' mod='wkroomsearchblock'}{/if}, {/if}{$search_data['occupancies']|count} {if $search_data['occupancies']|count > 1}{l s='Rooms' mod='wkroomsearchblock'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room' mod='wkroomsearchblock'}{/if}</span>
|
||||
</button>
|
||||
{block name='search_form_occupancy_field_wrapper'}
|
||||
<div id="search_occupancy_wrapper" class="dropdown-menu">
|
||||
<div id="occupancy_inner_wrapper">
|
||||
{if isset($search_data['occupancies']) && $search_data['occupancies']}
|
||||
{assign var=countRoom value=1}
|
||||
{foreach from=$search_data['occupancies'] key=key item=$occupancy name=occupancyInfo}
|
||||
<div class="occupancy-room-block">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room' mod='wkroomsearchblock'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove' mod='wkroomsearchblock'}</a>{/if}</div>
|
||||
<div class="occupancy_info_block" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
|
||||
<div class="row">
|
||||
<div class="form-group occupancy_count_block col-sm-5 col-xs-6">
|
||||
<label>{l s='Adults' mod='wkroomsearchblock'}</label>
|
||||
<div>
|
||||
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group occupancy_count_block col-sm-7 col-xs-6">
|
||||
<label>{l s='Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="label-desc-txt">({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})</p>
|
||||
</div>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group children_age_info_block col-sm-12" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
|
||||
<label>{l s='All Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="children_ages">
|
||||
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
|
||||
{foreach $occupancy['child_ages'] as $childAge}
|
||||
<div>
|
||||
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
|
||||
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1' mod='wkroomsearchblock'}</option>
|
||||
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1' mod='wkroomsearchblock'}</option>
|
||||
{for $age=1 to ($max_child_age-1)}
|
||||
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
|
||||
{/for}
|
||||
</select>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
</div>
|
||||
{assign var=countRoom value=$countRoom+1}
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="occupancy-room-block">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1' mod='wkroomsearchblock'}</span></div>
|
||||
<div class="occupancy_info_block" occ_block_index="0">
|
||||
<div class="row">
|
||||
<div class="form-group occupancy_count_block col-sm-5 col-xs-6">
|
||||
<label>{l s='Adults' mod='wkroomsearchblock'}</label>
|
||||
<div>
|
||||
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[0][adults]" value="1">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>1</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group occupancy_count_block col-sm-7 col-xs-6">
|
||||
<label>{l s='Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[0][children]" value="0">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>0</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="label-desc-txt">({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})</p>
|
||||
</div>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
<div class="row">
|
||||
<div class="form-group children_age_info_block col-sm-12">
|
||||
<label>{l s='All Children' mod='wkroomsearchblock'}</label>
|
||||
<div class="children_ages">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{block name='search_form_occupancy_actions'}
|
||||
<div class="occupancy_block_actions">
|
||||
<span id="add_new_occupancy">
|
||||
<a class="add_new_occupancy_btn" href="#"><i class="icon-plus"></i> <span>{l s='Add Room' mod='wkroomsearchblock'}</span></a>
|
||||
</span>
|
||||
<span>
|
||||
<button class="submit_occupancy_btn btn btn-primary">{l s='Done' mod='wkroomsearchblock'}</button>
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='search_form_submit'}
|
||||
<div class="form-group search_room_submit_block area-{$column_widths['search']}">
|
||||
<button type="submit" class="btn btn btn-primary pull-right" name="search_room_submit" id="search_room_submit">
|
||||
<span>{l s='Search Rooms' mod='wkroomsearchblock'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group search_room_submit_block area-{$column_widths['search']}">
|
||||
<button type="submit" class="btn btn btn-primary pull-right" name="search_room_submit" id="search_room_submit">
|
||||
<span>{l s='Search Rooms' mod='wkroomsearchblock'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{/block}
|
||||
</form>
|
||||
{/block}
|
||||
@@ -17,45 +17,51 @@
|
||||
* @license https://store.webkul.com/license.html
|
||||
*}
|
||||
|
||||
{if isset($testimonials_data) && $testimonials_data}
|
||||
<div id="hotelTestimonialBlock" class="row home_block_container">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
{if $HOTEL_TESIMONIAL_BLOCK_HEADING && $HOTEL_TESIMONIAL_BLOCK_CONTENT}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_TESIMONIAL_BLOCK_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_TESIMONIAL_BLOCK_CONTENT|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="row home_block_content htlTestemonial-owlCarousel">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<div class="owl-carousel">
|
||||
{foreach $testimonials_data as $tesimonial}
|
||||
<div class="row">
|
||||
<div class='col-xs-4 col-sm-offset-1 col-sm-2'>
|
||||
<img src="{$module_dir|escape:'htmlall':'UTF-8'}views/img/icon-double-codes.png" class="img-responsive">
|
||||
</div>
|
||||
<div class='col-xs-12 col-sm-7'>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 testimonialContentContainer">
|
||||
<p class="testimonialContentText">{$tesimonial.testimonial_content|escape:'htmlall':'UTF-8'}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 testimonialPersonDetail">
|
||||
<img width="60px" src="{$tesimonial.img_url}" class="testimonialPersonImg">
|
||||
<p class="testimonialPersonName">{$tesimonial.name|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="testimonialPersonDesig">{$tesimonial.designation|escape:'htmlall':'UTF-8'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{block name='testimonial_content'}
|
||||
{if isset($testimonials_data) && $testimonials_data}
|
||||
<div id="hotelTestimonialBlock" class="row home_block_container">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
{block name='testimonial_header'}
|
||||
{if $HOTEL_TESIMONIAL_BLOCK_HEADING && $HOTEL_TESIMONIAL_BLOCK_CONTENT}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_TESIMONIAL_BLOCK_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_TESIMONIAL_BLOCK_CONTENT|escape:'htmlall':'UTF-8'}</p>
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='testimonial_body'}
|
||||
<div class="row home_block_content htlTestemonial-owlCarousel">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<div class="owl-carousel">
|
||||
{foreach $testimonials_data as $tesimonial}
|
||||
<div class="row">
|
||||
<div class='col-xs-4 col-sm-offset-1 col-sm-2'>
|
||||
<img src="{$module_dir|escape:'htmlall':'UTF-8'}views/img/icon-double-codes.png" class="img-responsive">
|
||||
</div>
|
||||
<div class='col-xs-12 col-sm-7'>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 testimonialContentContainer">
|
||||
<p class="testimonialContentText">{$tesimonial.testimonial_content|escape:'htmlall':'UTF-8'}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 testimonialPersonDetail">
|
||||
<img width="60px" src="{$tesimonial.img_url}" class="testimonialPersonImg">
|
||||
<p class="testimonialPersonName">{$tesimonial.name|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="testimonialPersonDesig">{$tesimonial.designation|escape:'htmlall':'UTF-8'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -17,213 +17,231 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="booking-form card">
|
||||
<div class="booking_room_fields">
|
||||
<form id="booking-form" action="" method="post">
|
||||
{if isset($id_hotel) && $id_hotel}
|
||||
<div class="form-group htl_location_block">
|
||||
<label for="" class="control-label">{l s='Hotel Location'}</label>
|
||||
<p>{$hotel_location|escape:'html':'UTF-8'}</p>
|
||||
</div>
|
||||
{/if}
|
||||
{if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
|
||||
{* Block for booking products *}
|
||||
{if $product->booking_product}
|
||||
{if !$order_date_restrict}
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-12">
|
||||
<label class="control-label">{l s='Check In - Check Out'}</label>
|
||||
<div class="form-control input-date" id="room_date_range" autocomplete="off" placeholder="{l s='Check-in - Check-out'}"><span>{l s='Check-in'} <i class="icon icon-minus"></i> {l s='Check-out'}</span></div>
|
||||
<input type="hidden" class="input-date" name="room_check_in" id="room_check_in" value="{if isset($date_from)}{$date_from}{/if}" />
|
||||
<input type="hidden" class="input-date" name="room_check_out" id="room_check_out" value="{if isset($date_to)}{$date_to}{/if}" />
|
||||
</div>
|
||||
{block name='booking_form_content'}
|
||||
<div class="booking-form card">
|
||||
<div class="booking_room_fields">
|
||||
<form id="booking-form" action="" method="post">
|
||||
{block name='booking_form_hotel_location'}
|
||||
{if isset($id_hotel) && $id_hotel}
|
||||
<div class="form-group htl_location_block">
|
||||
<label for="" class="control-label">{l s='Hotel Location'}</label>
|
||||
<p>{$hotel_location|escape:'html':'UTF-8'}</p>
|
||||
</div>
|
||||
{if $total_available_rooms > 0}
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-12"{if !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
|
||||
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
|
||||
<label class="control-label">{l s='Guests'}</label>
|
||||
{include file="./occupancy_field.tpl"}
|
||||
{else}
|
||||
<label class="control-label">{l s='No. of Rooms'}</label>
|
||||
{include file="./quantity_field.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{if (isset($has_room_type_demands) && $has_room_type_demands) || (isset($service_products_exists) && $service_products_exists)}
|
||||
<hr class="separator-hr-mg-10">
|
||||
<div class="row price_desc_block">
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Room Price'}</label>
|
||||
<p>
|
||||
<span class="total_price_block">{convertPrice price=$rooms_price|floatval}</span>
|
||||
<span class="pull-right plus-sign">+</span>
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
{if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
|
||||
{* Block for booking products *}
|
||||
{block name='booking_form'}
|
||||
{if $product->booking_product}
|
||||
{if !$order_date_restrict}
|
||||
{block name='booking_dates_fields'}
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-12">
|
||||
<label class="control-label">{l s='Check In - Check Out'}</label>
|
||||
<div class="form-control input-date" id="room_date_range" autocomplete="off" placeholder="{l s='Check-in - Check-out'}"><span>{l s='Check-in'} <i class="icon icon-minus"></i> {l s='Check-out'}</span></div>
|
||||
<input type="hidden" class="input-date" name="room_check_in" id="room_check_in" value="{if isset($date_from)}{$date_from}{/if}" />
|
||||
<input type="hidden" class="input-date" name="room_check_out" id="room_check_out" value="{if isset($date_to)}{$date_to}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Extra Services'}</label>
|
||||
<p class="extra_demands_price_block">
|
||||
{if isset($demands_price)}{convertPrice price=$demands_price}{else}{convertPrice price=0}{/if}
|
||||
{if (isset($selected_demands) && $selected_demands) || (isset($selected_service_product) && $selected_service_product)}
|
||||
<span class="services-info">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
{/if}
|
||||
</p>
|
||||
{if (isset(selected_demands) && selected_demands) || (isset(selected_service_product) && selected_service_product)}
|
||||
<div class="services-info-container" style="display: none;">
|
||||
<div class="services-info-tooltip-cont">
|
||||
{if isset($selected_service_product) && $selected_service_product}
|
||||
<div class="extra-service-panel">
|
||||
<p class="panel_title">{l s='Selected services'} <span>{l s='(Per room)'}</span></p>
|
||||
<div class="services-list">
|
||||
{foreach $selected_service_product as $product}
|
||||
<div class="services-list-row">
|
||||
<div>
|
||||
{$product['name']}
|
||||
{if $product['allow_multiple_quantity']}
|
||||
<p>{l s='qty'}: {$product['quantity']}</p>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='booking_quantity_fields'}
|
||||
{if $total_available_rooms > 0}
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-12"{if !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
|
||||
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
|
||||
<label class="control-label">{l s='Guests'}</label>
|
||||
{block name='booking_occupancy_field_container'}
|
||||
{include file="./occupancy_field.tpl"}
|
||||
{/block}
|
||||
{else}
|
||||
<label class="control-label">{l s='No. of Rooms'}</label>
|
||||
{block name='booking_quantity_field_container'}
|
||||
{include file="./quantity_field.tpl"}
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{if (isset($has_room_type_demands) && $has_room_type_demands) || (isset($service_products_exists) && $service_products_exists)}
|
||||
<hr class="separator-hr-mg-10">
|
||||
<div class="row price_desc_block">
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Room Price'}</label>
|
||||
<p>
|
||||
<span class="total_price_block">{convertPrice price=$rooms_price|floatval}</span>
|
||||
<span class="pull-right plus-sign">+</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Extra Services'}</label>
|
||||
<p class="extra_demands_price_block">
|
||||
{if isset($demands_price)}{convertPrice price=$demands_price}{else}{convertPrice price=0}{/if}
|
||||
{if (isset($selected_demands) && $selected_demands) || (isset($selected_service_product) && $selected_service_product)}
|
||||
<span class="services-info">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
{/if}
|
||||
</p>
|
||||
{block name='booking_services_demands_info'}
|
||||
{if (isset(selected_demands) && selected_demands) || (isset(selected_service_product) && selected_service_product)}
|
||||
<div class="services-info-container" style="display: none;">
|
||||
<div class="services-info-tooltip-cont">
|
||||
{if isset($selected_service_product) && $selected_service_product}
|
||||
<div class="extra-service-panel">
|
||||
<p class="panel_title">{l s='Selected services'} <span>{l s='(Per room)'}</span></p>
|
||||
<div class="services-list">
|
||||
{foreach $selected_service_product as $product}
|
||||
<div class="services-list-row">
|
||||
<div>
|
||||
{$product['name']}
|
||||
{if $product['allow_multiple_quantity']}
|
||||
<p>{l s='qty'}: {$product['quantity']}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>{displayPrice price=$product['price']}</p>
|
||||
<a class="btn btn-sm btn-default remove_roomtype_product" data-id-product="{$product['id_product']}"><i class="icon-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>{displayPrice price=$product['price']}</p>
|
||||
<a class="btn btn-sm btn-default remove_roomtype_product" data-id-product="{$product['id_product']}"><i class="icon-trash"></i></a>
|
||||
{/if}
|
||||
{if isset($selected_demands) && $selected_demands}
|
||||
<div class="extra-service-panel">
|
||||
<p class="panel_title">{l s='Selected facilities'} <span>{l s='(Per room)'}</span></p>
|
||||
<div class="services-list">
|
||||
{foreach $selected_demands as $product}
|
||||
<div class="services-list-row">
|
||||
<div>
|
||||
{$product['name']}
|
||||
{if isset($product['advance_option']) && $product['advance_option']}
|
||||
<p>{l s='Option:'} {$product['advance_option']['name']}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>{displayPrice price=$product['price']}</p>
|
||||
<a class="btn btn-sm btn-default remove_roomtype_demand" data-id_global_demand="{$product['id_global_demand']}"><i class="icon-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<hr>
|
||||
<div class="extra-service-panel">
|
||||
<div class="summary-row">
|
||||
<div>{l s='Total price per room'}</div>
|
||||
<div><p class="service_price">{displayPrice price=$demands_price_per_room}</p></div>
|
||||
</div>
|
||||
<div class="summary-row">
|
||||
<div>{l s='Total price:'}</div>
|
||||
<div><p class="service_price">{displayPrice price=$demands_price}</p></div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($selected_demands) && $selected_demands}
|
||||
<div class="extra-service-panel">
|
||||
<p class="panel_title">{l s='Selected facilities'} <span>{l s='(Per room)'}</span></p>
|
||||
<div class="services-list">
|
||||
{foreach $selected_demands as $product}
|
||||
<div class="services-list-row">
|
||||
<div>
|
||||
{$product['name']}
|
||||
{if isset($product['advance_option']) && $product['advance_option']}
|
||||
<p>{l s='Option:'} {$product['advance_option']['name']}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>{displayPrice price=$product['price']}</p>
|
||||
<a class="btn btn-sm btn-default remove_roomtype_demand" data-id_global_demand="{$product['id_global_demand']}"><i class="icon-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<hr>
|
||||
<div class="extra-service-panel">
|
||||
<div class="summary-row">
|
||||
<div>{l s='Total price per room'}</div>
|
||||
<div><p class="service_price">{displayPrice price=$demands_price_per_room}</p></div>
|
||||
</div>
|
||||
<div class="summary-row">
|
||||
<div>{l s='Total price:'}</div>
|
||||
<div><p class="service_price">{displayPrice price=$demands_price}</p></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
<hr class="separator-hr-mg-10 form-group">
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<hr class="separator-hr-mg-10 form-group">
|
||||
{/if}
|
||||
<div id="booking_action_block">
|
||||
<div class="row">
|
||||
<div class="total_price_block col-xs-7 form-group">
|
||||
<label class="control-label">{l s='Subtotal'}</label>
|
||||
<p>
|
||||
{if $total_price && $total_price_without_discount > $total_price}
|
||||
<span class="room_type_old_price">
|
||||
{convertPrice price=$total_price_without_discount|floatval}
|
||||
</span>
|
||||
{/if}
|
||||
{convertPrice price=$total_price|floatval}
|
||||
</p>
|
||||
</div>
|
||||
{if $total_available_rooms <= $warning_count}
|
||||
<div class="col-xs-5 form-group text-right num_quantity_alert">
|
||||
<span class="num_searched_avail_rooms">
|
||||
{$total_available_rooms|escape:'html':'UTF-8'}
|
||||
</span>
|
||||
{if $total_available_rooms > 1} {l s='rooms left!'} {else} {l s='room left!'} {/if}
|
||||
<div id="booking_action_block">
|
||||
<div class="row">
|
||||
<div class="total_price_block col-xs-7 form-group">
|
||||
<label class="control-label">{l s='Subtotal'}</label>
|
||||
<p>
|
||||
{if $total_price && $total_price_without_discount > $total_price}
|
||||
<span class="room_type_old_price">
|
||||
{convertPrice price=$total_price_without_discount|floatval}
|
||||
</span>
|
||||
{/if}
|
||||
{convertPrice price=$total_price|floatval}
|
||||
</p>
|
||||
</div>
|
||||
{if $total_available_rooms <= $warning_count}
|
||||
<div class="col-xs-5 form-group text-right num_quantity_alert">
|
||||
<span class="num_searched_avail_rooms">
|
||||
{$total_available_rooms|escape:'html':'UTF-8'}
|
||||
</span>
|
||||
{if $total_available_rooms > 1} {l s='rooms left!'} {else} {l s='room left!'} {/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div>
|
||||
{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || (isset($restricted_country_mode) && $restricted_country_mode) || $PS_CATALOG_MODE || $order_date_restrict}
|
||||
{else}
|
||||
<div id="additional_products" class="hidden">
|
||||
{if isset($selected_service_product) && $selected_service_product}
|
||||
{foreach $selected_service_product as $product}
|
||||
<input type="hidded" id="service_product_{$product['id_product']}" name="service_product[{$product['id_product']}][]" class="service_product" data-id_product="{$product['id_product']}" value="{$product['quantity']}">
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<p id="add_to_cart" class="buttons_bottom_block no-print">
|
||||
<button type="submit" name="Submit" class="exclusive book_now_submit">
|
||||
<span>
|
||||
{if isset($content_only) && $content_only && (isset($product->customization_required) && $product->customization_required)}{l s='Customize'}{else}{l s='Book Now'}{/if}
|
||||
</span>
|
||||
<span id="booking_action_loader"></span>
|
||||
</button>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div>
|
||||
{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || (isset($restricted_country_mode) && $restricted_country_mode) || $PS_CATALOG_MODE || $order_date_restrict}
|
||||
{else}
|
||||
<div id="additional_products" class="hidden">
|
||||
{if isset($selected_service_product) && $selected_service_product}
|
||||
{foreach $selected_service_product as $product}
|
||||
<input type="hidded" id="service_product_{$product['id_product']}" name="service_product[{$product['id_product']}][]" class="service_product" data-id_product="{$product['id_product']}" value="{$product['quantity']}">
|
||||
{/foreach}
|
||||
{/if}
|
||||
<div class="sold_out_alert">
|
||||
<span>{l s='All rooms sold out!'}</span>
|
||||
</div>
|
||||
<p id="add_to_cart" class="buttons_bottom_block no-print">
|
||||
<button type="submit" name="Submit" class="exclusive book_now_submit">
|
||||
<span>
|
||||
{if isset($content_only) && $content_only && (isset($product->customization_required) && $product->customization_required)}{l s='Customize'}{else}{l s='Book Now'}{/if}
|
||||
</span>
|
||||
<span id="booking_action_loader"></span>
|
||||
</button>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{else}
|
||||
<div class="sold_out_alert">
|
||||
<span>{l s='All rooms sold out!'}</span>
|
||||
|
||||
{if $product->allow_multiple_quantity}
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6" id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
|
||||
<label for="quantity_wanted">{l s='Quantity'}</label>
|
||||
<div class="qty_sec_cont">
|
||||
<div class="qty_input_cont row margin-lr-0">
|
||||
<input autocomplete="off" type="text" min="1" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}">
|
||||
</div>
|
||||
<div class="qty_direction">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<span class="clearfix"></span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="row">
|
||||
<div class="total_price_block col-xs-7 form-group">
|
||||
<label class="control-label">{l s='Price'}</label>
|
||||
<p>
|
||||
{convertPrice price=$productPrice|floatval}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
|
||||
{if $product->allow_multiple_quantity}
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6" id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
|
||||
<label for="quantity_wanted">{l s='Quantity'}</label>
|
||||
<div class="qty_sec_cont">
|
||||
<div class="qty_input_cont row margin-lr-0">
|
||||
<input autocomplete="off" type="text" min="1" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}">
|
||||
</div>
|
||||
<div class="qty_direction">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<span class="clearfix"></span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="row">
|
||||
<div class="total_price_block col-xs-7 form-group">
|
||||
<label class="control-label">{l s='Price'}</label>
|
||||
<p>
|
||||
{convertPrice price=$productPrice|floatval}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{/if}
|
||||
{if $order_date_restrict}
|
||||
<div class="order_restrict_alert">
|
||||
<span>{l s='You can\'t book rooms after %s.' sprintf=[{dateFormat date=$max_order_date full=0}]}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</form>
|
||||
{block name='order_restrict_alert'}
|
||||
{if $order_date_restrict}
|
||||
<div class="order_restrict_alert">
|
||||
<span>{l s='You can\'t book rooms after %s.' sprintf=[{dateFormat date=$max_order_date full=0}]}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -17,135 +17,143 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<section>
|
||||
{if (isset($selectedRoomDemands) && $selectedRoomDemands) || (isset($roomTypeServiceProducts) && $roomTypeServiceProducts)}
|
||||
<ul class="nav nav-tabs">
|
||||
{if isset($selectedRoomDemands) && $selectedRoomDemands}
|
||||
<li class="active"><a href="#room_type_demands_desc" data-toggle="tab">{l s='Facilities'}</a></li>
|
||||
{/if}
|
||||
{if isset($roomTypeServiceProducts) && $roomTypeServiceProducts}
|
||||
<li{if !isset($selectedRoomDemands) || !$selectedRoomDemands} class="active"{/if}><a href="#room_type_service_product_desc" data-toggle="tab">{l s='Services'}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{if isset($selectedRoomDemands) && $selectedRoomDemands}
|
||||
<div id="room_type_demands_desc" class="tab-pane active">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<p class="rooms_extra_demands_text">{l s='Add below facilities to the rooms for better hotel experience'}</p>
|
||||
</div>
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $selectedRoomDemands as $key => $roomDemand}
|
||||
<div class="card accordion">
|
||||
<div class="row accordion-section">
|
||||
<div class="col-sm-12 demand_header">
|
||||
<a class="accordion-section-title {if $roomCount == 1}active{/if}" href="#accordion_demand_{$key|escape:'html':'UTF-8'}">
|
||||
{l s='Room'} {$roomCount|escape:'html':'UTF-8'}
|
||||
<span>({if {$roomDemand['adults']} <= 9}0{$roomDemand['adults']}{else}{$roomDemand['adults']}{/if} {if $roomDemand['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if {$roomDemand['children']} <= 9}0{$roomDemand['children']}{else}{$roomDemand['children']}{/if} {if $roomDemand['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if})</span>
|
||||
</a>
|
||||
{block name='cart_booking_demands_content'}
|
||||
<section>
|
||||
{if (isset($selectedRoomDemands) && $selectedRoomDemands) || (isset($roomTypeServiceProducts) && $roomTypeServiceProducts)}
|
||||
{block name='cart_booking_demand_tabs'}
|
||||
<ul class="nav nav-tabs">
|
||||
{if isset($selectedRoomDemands) && $selectedRoomDemands}
|
||||
<li class="active"><a href="#room_type_demands_desc" data-toggle="tab">{l s='Facilities'}</a></li>
|
||||
{/if}
|
||||
{if isset($roomTypeServiceProducts) && $roomTypeServiceProducts}
|
||||
<li{if !isset($selectedRoomDemands) || !$selectedRoomDemands} class="active"{/if}><a href="#room_type_service_product_desc" data-toggle="tab">{l s='Services'}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
{/block}
|
||||
{block name='cart_booking_demand_tabs_content'}
|
||||
<div class="tab-content">
|
||||
{block name='cart_booking_demand_tab_content'}
|
||||
{if isset($selectedRoomDemands) && $selectedRoomDemands}
|
||||
<div id="room_type_demands_desc" class="tab-pane active">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<p class="rooms_extra_demands_text">{l s='Add below facilities to the rooms for better hotel experience'}</p>
|
||||
</div>
|
||||
<div id="accordion_demand_{$key|escape:'html':'UTF-8'}" class="room_demand_detail col-sm-12 accordion-section-content {if $roomCount == 1}open{/if}" {if $roomCount == 1}style="display: block;"{/if}>
|
||||
{if isset($roomTypeDemands) && $roomTypeDemands}
|
||||
{foreach $roomTypeDemands as $idGlobalDemand => $demand}
|
||||
<div class="row room_demand_block">
|
||||
<div class="col-xs-8">
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
<p class="checkbox">
|
||||
<input id_cart_booking="{$roomDemand['id']}" value="{$idGlobalDemand|escape:'html':'UTF-8'}" type="checkbox" class="id_room_type_demand" {if isset($roomDemand['selected_global_demands']) && $roomDemand['selected_global_demands'] && ($idGlobalDemand|in_array:$roomDemand['selected_global_demands'])}checked{/if} />
|
||||
</p>
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $selectedRoomDemands as $key => $roomDemand}
|
||||
<div class="card accordion">
|
||||
<div class="row accordion-section">
|
||||
<div class="col-sm-12 demand_header">
|
||||
<a class="accordion-section-title {if $roomCount == 1}active{/if}" href="#accordion_demand_{$key|escape:'html':'UTF-8'}">
|
||||
{l s='Room'} {$roomCount|escape:'html':'UTF-8'}
|
||||
<span>({if {$roomDemand['adults']} <= 9}0{$roomDemand['adults']}{else}{$roomDemand['adults']}{/if} {if $roomDemand['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if {$roomDemand['children']} <= 9}0{$roomDemand['children']}{else}{$roomDemand['children']}{/if} {if $roomDemand['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if})</span>
|
||||
</a>
|
||||
</div>
|
||||
<div id="accordion_demand_{$key|escape:'html':'UTF-8'}" class="room_demand_detail col-sm-12 accordion-section-content {if $roomCount == 1}open{/if}" {if $roomCount == 1}style="display: block;"{/if}>
|
||||
{if isset($roomTypeDemands) && $roomTypeDemands}
|
||||
{foreach $roomTypeDemands as $idGlobalDemand => $demand}
|
||||
<div class="row room_demand_block">
|
||||
<div class="col-xs-8">
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
<p class="checkbox">
|
||||
<input id_cart_booking="{$roomDemand['id']}" value="{$idGlobalDemand|escape:'html':'UTF-8'}" type="checkbox" class="id_room_type_demand" {if isset($roomDemand['selected_global_demands']) && $roomDemand['selected_global_demands'] && ($idGlobalDemand|in_array:$roomDemand['selected_global_demands'])}checked{/if} />
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-xs-10 demand_adv_option_block">
|
||||
<p>{$demand['name']|escape:'html':'UTF-8'}</p>
|
||||
{if isset($demand['adv_option']) && $demand['adv_option']}
|
||||
<select class="id_option">
|
||||
{foreach $demand['adv_option'] as $idOption => $option}
|
||||
{assign var=demand_key value="`$idGlobalDemand`-`$idOption`"}
|
||||
<option optionPrice="{$option['price']|escape:'html':'UTF-8'}" value="{$idOption|escape:'html':'UTF-8'}" {if isset($roomDemand['extra_demands'][$demand_key])}selected{/if} key="{$demand_key}">{$option['name']}</option>
|
||||
{if isset($roomDemand['extra_demands'][$demand_key])}
|
||||
{assign var=selected_adv_option value="$idOption"}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
{else}
|
||||
<input type="hidden" class="id_option" value="0" />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<p class="pull-right">
|
||||
<span class="extra_demand_option_price">{if isset($selected_adv_option) && isset($demand['adv_option'][$selected_adv_option]['price'])}{convertPrice price = $demand['adv_option'][$selected_adv_option]['price']|escape:'html':'UTF-8'}{else}{convertPrice price = $demand['price']|escape:'html':'UTF-8'}{/if}</span>{if $demand['price_calc_method'] == HotelRoomTypeGlobalDemand::WK_PRICE_CALC_METHOD_EACH_DAY}{l s='/Night'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-10 demand_adv_option_block">
|
||||
<p>{$demand['name']|escape:'html':'UTF-8'}</p>
|
||||
{if isset($demand['adv_option']) && $demand['adv_option']}
|
||||
<select class="id_option">
|
||||
{foreach $demand['adv_option'] as $idOption => $option}
|
||||
{assign var=demand_key value="`$idGlobalDemand`-`$idOption`"}
|
||||
<option optionPrice="{$option['price']|escape:'html':'UTF-8'}" value="{$idOption|escape:'html':'UTF-8'}" {if isset($roomDemand['extra_demands'][$demand_key])}selected{/if} key="{$demand_key}">{$option['name']}</option>
|
||||
{if isset($roomDemand['extra_demands'][$demand_key])}
|
||||
{assign var=selected_adv_option value="$idOption"}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
{else}
|
||||
<input type="hidden" class="id_option" value="0" />
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='cart_booking_service_tab_content'}
|
||||
{if isset($roomTypeServiceProducts) && $roomTypeServiceProducts}
|
||||
<div id="room_type_service_product_desc" class="tab-pane{if !isset($selectedRoomDemands) || !$selectedRoomDemands} active{/if}">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<p class="rooms_extra_demands_text">{l s='Add below services to the rooms for better hotel experience'}</p>
|
||||
</div>
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $cartRooms as $key => $cartRoom}
|
||||
<div class="card accordion">
|
||||
<div class="row accordion-section">
|
||||
<div class="col-sm-12 demand_header">
|
||||
<a class="accordion-section-title {if $roomCount == 1}active{/if}" href="#accordion_service_{$key|escape:'html':'UTF-8'}">
|
||||
{l s='Room'} {$roomCount|escape:'html':'UTF-8'}
|
||||
<span>({if {$cartRoom['adults']} <= 9}0{$cartRoom['adults']}{else}{$cartRoom['adults']}{/if} {if $cartRoom['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if {$cartRoom['children']} <= 9}0{$cartRoom['children']}{else}{$cartRoom['children']}{/if} {if $cartRoom['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if})</span>
|
||||
</a>
|
||||
</div>
|
||||
<div id="accordion_service_{$key|escape:'html':'UTF-8'}" class=" col-sm-12 room_demand_detail accordion-section-content {if $roomCount == 1}open{/if}" {if $roomCount == 1}style="display: block;"{/if}>
|
||||
{if isset($roomTypeServiceProducts) && $roomTypeServiceProducts}
|
||||
{foreach $roomTypeServiceProducts as $product}
|
||||
<div class="row room_demand_block">
|
||||
<div class="col-xs-8">
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{if $product.available_for_order}
|
||||
<p class="checkbox">
|
||||
<input data-id_cart_booking="{$cartRoom['id']}" value="{$product['id_product']|escape:'html':'UTF-8'}" type="checkbox" class="change_room_type_service_product" {if isset($cartRoom['selected_service']) && $cartRoom['selected_service'] && ($product['id_product']|array_key_exists:$cartRoom['selected_service'])}checked{/if} />
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-xs-10">
|
||||
<p>{$product['name']|escape:'html':'UTF-8'}</p>
|
||||
{if $product.allow_multiple_quantity}
|
||||
<div class="qty_container">
|
||||
<input type="text" class="form-control qty" id="qty_{$product.id_product}" name="service_product_qty_{$product.id_product}" data-id-product="{$product.id_product}" data-max_quantity="{$product.max_quantity}" value="{if isset($cartRoom['selected_service']) && $cartRoom['selected_service'] && ($product['id_product']|array_key_exists:$cartRoom['selected_service'])}{$cartRoom['selected_service'][$product['id_product']]['quantity']}{else}1{/if}">
|
||||
<div class="qty_controls">
|
||||
<a href="#" class="qty_up"><span><i class="icon-plus"></i></span></a>
|
||||
<a href="#" class="qty_down"><span><i class="icon-minus"></i></span></a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{if ($product.show_price && !isset($restricted_country_mode)) || isset($groups)}
|
||||
<span class="pull-right">{if !$priceDisplay}{convertPrice price=$product.price_tax_incl}{else}{convertPrice price=$product.price_tax_exc}{/if}{if $product.price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_DAY}{l s='/Night'}{/if}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<p class="pull-right">
|
||||
<span class="extra_demand_option_price">{if isset($selected_adv_option) && isset($demand['adv_option'][$selected_adv_option]['price'])}{convertPrice price = $demand['adv_option'][$selected_adv_option]['price']|escape:'html':'UTF-8'}{else}{convertPrice price = $demand['price']|escape:'html':'UTF-8'}{/if}</span>{if $demand['price_calc_method'] == HotelRoomTypeGlobalDemand::WK_PRICE_CALC_METHOD_EACH_DAY}{l s='/Night'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if isset($roomTypeServiceProducts) && $roomTypeServiceProducts}
|
||||
<div id="room_type_service_product_desc" class="tab-pane{if !isset($selectedRoomDemands) || !$selectedRoomDemands} active{/if}">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<p class="rooms_extra_demands_text">{l s='Add below services to the rooms for better hotel experience'}</p>
|
||||
</div>
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $cartRooms as $key => $cartRoom}
|
||||
<div class="card accordion">
|
||||
<div class="row accordion-section">
|
||||
<div class="col-sm-12 demand_header">
|
||||
<a class="accordion-section-title {if $roomCount == 1}active{/if}" href="#accordion_service_{$key|escape:'html':'UTF-8'}">
|
||||
{l s='Room'} {$roomCount|escape:'html':'UTF-8'}
|
||||
<span>({if {$cartRoom['adults']} <= 9}0{$cartRoom['adults']}{else}{$cartRoom['adults']}{/if} {if $cartRoom['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if {$cartRoom['children']} <= 9}0{$cartRoom['children']}{else}{$cartRoom['children']}{/if} {if $cartRoom['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if})</span>
|
||||
</a>
|
||||
</div>
|
||||
<div id="accordion_service_{$key|escape:'html':'UTF-8'}" class=" col-sm-12 room_demand_detail accordion-section-content {if $roomCount == 1}open{/if}" {if $roomCount == 1}style="display: block;"{/if}>
|
||||
{if isset($roomTypeServiceProducts) && $roomTypeServiceProducts}
|
||||
{foreach $roomTypeServiceProducts as $product}
|
||||
<div class="row room_demand_block">
|
||||
<div class="col-xs-8">
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
{if $product.available_for_order}
|
||||
<p class="checkbox">
|
||||
<input data-id_cart_booking="{$cartRoom['id']}" value="{$product['id_product']|escape:'html':'UTF-8'}" type="checkbox" class="change_room_type_service_product" {if isset($cartRoom['selected_service']) && $cartRoom['selected_service'] && ($product['id_product']|array_key_exists:$cartRoom['selected_service'])}checked{/if} />
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-xs-10">
|
||||
<p>{$product['name']|escape:'html':'UTF-8'}</p>
|
||||
{if $product.allow_multiple_quantity}
|
||||
<div class="qty_container">
|
||||
<input type="text" class="form-control qty" id="qty_{$product.id_product}" name="service_product_qty_{$product.id_product}" data-id-product="{$product.id_product}" data-max_quantity="{$product.max_quantity}" value="{if isset($cartRoom['selected_service']) && $cartRoom['selected_service'] && ($product['id_product']|array_key_exists:$cartRoom['selected_service'])}{$cartRoom['selected_service'][$product['id_product']]['quantity']}{else}1{/if}">
|
||||
<div class="qty_controls">
|
||||
<a href="#" class="qty_up"><span><i class="icon-plus"></i></span></a>
|
||||
<a href="#" class="qty_down"><span><i class="icon-minus"></i></span></a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{if ($product.show_price && !isset($restricted_country_mode)) || isset($groups)}
|
||||
<span class="pull-right">{if !$priceDisplay}{convertPrice price=$product.price_tax_incl}{else}{convertPrice price=$product.price_tax_exc}{/if}{if $product.price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_DAY}{l s='/Night'}{/if}</span>
|
||||
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
<div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
<div>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
</section>
|
||||
{/block}
|
||||
|
||||
@@ -17,12 +17,14 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{if is_array($hotel_images) && count($hotel_images)}
|
||||
{foreach from=$hotel_images item=hotel_image}
|
||||
<div class="col-sm-4 image-item">
|
||||
<a class="hotel-images-fancybox" href="{$hotel_image.link|escape:'html':'UTF-8'}">
|
||||
<img class="img img-responsive" src="{$hotel_image.link|escape:'html':'UTF-8'}">
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{block name='hotel_images'}
|
||||
{if is_array($hotel_images) && count($hotel_images)}
|
||||
{foreach from=$hotel_images item=hotel_image}
|
||||
<div class="col-sm-4 image-item">
|
||||
<a class="hotel-images-fancybox" href="{$hotel_image.link|escape:'html':'UTF-8'}">
|
||||
<img class="img img-responsive" src="{$hotel_image.link|escape:'html':'UTF-8'}">
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -17,174 +17,190 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="form-group dropdown">
|
||||
<button class="form-control booking_guest_occupancy input-occupancy{if isset($error) && $error == 1} error_border{/if}" type="button">
|
||||
<span class="">
|
||||
{if isset($occupancies) && $occupancies}
|
||||
{if (isset($occupancy_adults) && $occupancy_adults)}{$occupancy_adults} {if $occupancy_adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if isset($occupancy_children) && $occupancy_children}{$occupancy_children} {if $occupancy_children > 1} {l s='Children'}{else}{l s='Child'}{/if}, {/if}{$occupancies|count} {if $occupancies|count > 1}{l s='Rooms'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room'}{/if}
|
||||
{else}
|
||||
{l s='Select Occupancy'}
|
||||
{/if}
|
||||
</span>
|
||||
</button>
|
||||
{block name='occupancy_fields_content'}
|
||||
<div class="form-group dropdown">
|
||||
{block name='booking_occupancy'}
|
||||
<button class="form-control booking_guest_occupancy input-occupancy{if isset($error) && $error == 1} error_border{/if}" type="button">
|
||||
<span class="">
|
||||
{if isset($occupancies) && $occupancies}
|
||||
{if (isset($occupancy_adults) && $occupancy_adults)}{$occupancy_adults} {if $occupancy_adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if isset($occupancy_children) && $occupancy_children}{$occupancy_children} {if $occupancy_children > 1} {l s='Children'}{else}{l s='Child'}{/if}, {/if}{$occupancies|count} {if $occupancies|count > 1}{l s='Rooms'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room'}{/if}
|
||||
{else}
|
||||
{l s='Select Occupancy'}
|
||||
{/if}
|
||||
</span>
|
||||
</button>
|
||||
{/block}
|
||||
|
||||
<div class="dropdown-menu booking_occupancy_wrapper">
|
||||
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)}{$total_available_rooms|escape:'html':'UTF-8'}{/if}">
|
||||
<input type="hidden" class="max_adults" value="{$room_type_info['max_adults']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="max_children" value="{$room_type_info['max_children']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="max_guests" value="{$room_type_info['max_guests']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="base_adult" value="{$room_type_info['adults']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="base_children" value="{$room_type_info['children']|escape:'html':'UTF-8'}">
|
||||
<div class="booking_occupancy_inner">
|
||||
{if isset($occupancies) && $occupancies}
|
||||
{assign var=countRoom value=1}
|
||||
{foreach from=$occupancies key=key item=$occupancy name=occupancyInfo}
|
||||
<div class="occupancy_info_block selected" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove'}</a>{/if}</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-5 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Adults'}</label>
|
||||
<div class="col-sm-12">
|
||||
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-7 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Children'}</label>
|
||||
<div class="col-sm-12 clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" max="{}" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<span class="label-desc-txt">({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'})</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
<div class="form-group row children_age_info_block" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
|
||||
<label class="col-sm-12">{l s='All Children'}</label>
|
||||
<div class="col-sm-12">
|
||||
<div class="children_ages">
|
||||
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
|
||||
{foreach $occupancy['child_ages'] as $childAge}
|
||||
<div>
|
||||
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
|
||||
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1'}</option>
|
||||
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1'}</option>
|
||||
{for $age=1 to ($max_child_age-1)}
|
||||
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
|
||||
{/for}
|
||||
</select>
|
||||
{block name='booking_occupancy_fields'}
|
||||
<div class="dropdown-menu booking_occupancy_wrapper">
|
||||
{block name='booking_occupancy_hidden_fields'}
|
||||
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)}{$total_available_rooms|escape:'html':'UTF-8'}{/if}">
|
||||
<input type="hidden" class="max_adults" value="{$room_type_info['max_adults']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="max_children" value="{$room_type_info['max_children']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="max_guests" value="{$room_type_info['max_guests']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="base_adult" value="{$room_type_info['adults']|escape:'html':'UTF-8'}">
|
||||
<input type="hidden" class="base_children" value="{$room_type_info['children']|escape:'html':'UTF-8'}">
|
||||
{/block}
|
||||
{block name='occupancy_fields_booking_occupancy_inner'}
|
||||
<div class="booking_occupancy_inner">
|
||||
{if isset($occupancies) && $occupancies}
|
||||
{assign var=countRoom value=1}
|
||||
{foreach from=$occupancies key=key item=$occupancy name=occupancyInfo}
|
||||
{block name='occupancy_info_block'}
|
||||
<div class="occupancy_info_block selected" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove'}</a>{/if}</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-5 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Adults'}</label>
|
||||
<div class="col-sm-12">
|
||||
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<div class="form-group col-sm-7 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Children'}</label>
|
||||
<div class="col-sm-12 clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" max="{}" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<span class="label-desc-txt">({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'})</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
<div class="form-group row children_age_info_block" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
|
||||
<label class="col-sm-12">{l s='All Children'}</label>
|
||||
<div class="col-sm-12">
|
||||
<div class="children_ages">
|
||||
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
|
||||
{foreach $occupancy['child_ages'] as $childAge}
|
||||
<div>
|
||||
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
|
||||
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1'}</option>
|
||||
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1'}</option>
|
||||
{for $age=1 to ($max_child_age-1)}
|
||||
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
|
||||
{/for}
|
||||
</select>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
</div>
|
||||
{assign var=countRoom value=$countRoom+1}
|
||||
{/block}
|
||||
{/foreach}
|
||||
{else}
|
||||
{block name='occupancy_info_block'}
|
||||
<div class="occupancy_info_block" occ_block_index="0">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1'}</span></div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-5 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Adults'}</label>
|
||||
<div class="col-sm-12">
|
||||
<input type="hidden" class="num_occupancy num_adults" name="num_adults[]" value="{$room_type_info['adults']}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$room_type_info['adults']}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-7 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Children'}</label>
|
||||
<div class="col-sm-12 clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children" name="num_children[]" value="0">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>0</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<span class="label-desc-txt">({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'})</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
<div class="form-group row children_age_info_block">
|
||||
<label class="col-sm-12">{l s='All Children'}</label>
|
||||
<div class="col-sm-12">
|
||||
<div class="children_ages">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
{assign var=countRoom value=$countRoom+1}
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="occupancy_info_block" occ_block_index="0">
|
||||
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1'}</span></div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-5 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Adults'}</label>
|
||||
<div class="col-sm-12">
|
||||
<input type="hidden" class="num_occupancy num_adults" name="num_adults[]" value="{$room_type_info['adults']}">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>{$room_type_info['adults']}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-7 col-xs-6 occupancy_count_block">
|
||||
<div class="row">
|
||||
<label class="col-sm-12">{l s='Children'}</label>
|
||||
<div class="col-sm-12 clearfix">
|
||||
<input type="hidden" class="num_occupancy num_children" name="num_children[]" value="0">
|
||||
<div class="occupancy_count pull-left">
|
||||
<span>0</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
|
||||
<span>
|
||||
<i class="icon-plus"></i>
|
||||
</span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
|
||||
<span>
|
||||
<i class="icon-minus"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<span class="label-desc-txt">({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'})</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='booking_occupancy_actions'}
|
||||
<div class="occupancy_block_actions">
|
||||
<span class="add_occupancy_block">
|
||||
<a class="add_new_occupancy_btn{if isset($occupancies) && $occupancies && isset($total_available_rooms) && $total_available_rooms <= count($occupancies)} disabled{/if}" data-title-available="{l s='Click to add more rooms.'}" data-title-unavailable="{l s='No more rooms available.'}" href="#">
|
||||
<i class="icon-plus"></i>
|
||||
<span>{l s='Add Room'}</span>
|
||||
</a>
|
||||
</span>
|
||||
<span>
|
||||
<button type="submit" class="submit_occupancy_btn btn btn-primary">{l s='Done'}</button>
|
||||
</span>
|
||||
</div>
|
||||
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
|
||||
<div class="form-group row children_age_info_block">
|
||||
<label class="col-sm-12">{l s='All Children'}</label>
|
||||
<div class="col-sm-12">
|
||||
<div class="children_ages">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="occupancy-info-separator">
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="occupancy_block_actions">
|
||||
<span class="add_occupancy_block">
|
||||
<a class="add_new_occupancy_btn{if isset($occupancies) && $occupancies && isset($total_available_rooms) && $total_available_rooms <= count($occupancies)} disabled{/if}" data-title-available="{l s='Click to add more rooms.'}" data-title-unavailable="{l s='No more rooms available.'}" href="#">
|
||||
<i class="icon-plus"></i>
|
||||
<span>{l s='Add Room'}</span>
|
||||
</a>
|
||||
</span>
|
||||
<span>
|
||||
<button type="submit" class="submit_occupancy_btn btn btn-primary">{l s='Done'}</button>
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -17,90 +17,102 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
{l s='Extra Services'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{if (isset($extraDemands) && $extraDemands) || (isset($additionalServices) && $additionalServices)}
|
||||
<ul class="nav nav-tabs">
|
||||
{if isset($additionalServices) && $additionalServices}
|
||||
<li class="active"><a href="#room_type_service_product_desc" data-toggle="tab">{l s='Services'}</a></li>
|
||||
{/if}
|
||||
{if isset($extraDemands) && $extraDemands}
|
||||
<li {if !isset($additionalServices) || !$additionalServices} class="active" {/if}><a href="#room_type_demands_desc" data-toggle="tab">{l s='Facilities'}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{if isset($additionalServices) && $additionalServices}
|
||||
<div id="room_type_service_product_desc" class="tab-pane {if isset($additionalServices) && $additionalServices}active{/if}">
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $additionalServices as $key => $roomAdditionalService}
|
||||
<div class="room_demands">
|
||||
<div class="demand_header">
|
||||
{l s='Room'} {$roomCount|string_format:'%02d'}
|
||||
<span>({if {$roomAdditionalService['adults']} <= 9}0{$roomAdditionalService['adults']}{else}{$roomAdditionalService['adults']}{/if} {if $roomAdditionalService['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $roomAdditionalService['children'] > 0}, {if {$roomAdditionalService['children']} <= 9}0{$roomAdditionalService['children']}{else}{$roomAdditionalService['children']}{/if} {if $roomAdditionalService['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if})</span>
|
||||
</div>
|
||||
<div class="room_demand_detail">
|
||||
{foreach $roomAdditionalService['additional_services'] as $additionalService}
|
||||
<div class="room_demand_block">
|
||||
<div class="">
|
||||
<div class="">
|
||||
{$additionalService['name']|escape:'html':'UTF-8'}
|
||||
{if $additionalService['allow_multiple_quantity']}
|
||||
<span class="quantity">{l s='(Quantity: %s)' sprintf=[$additionalService['quantity']|string_format:'%02d']}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<span>
|
||||
{if $useTax}
|
||||
{displayPrice price=$additionalService['total_price_tax_incl']|escape:'html':'UTF-8' currency=$objOrder->id_currency}
|
||||
{else}
|
||||
{displayPrice price=$additionalService['total_price_tax_excl']|escape:'html':'UTF-8' currency=$objOrder->id_currency}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($extraDemands) && $extraDemands}
|
||||
<div id="room_type_demands_desc" class="tab-pane {if !isset($additionalServices) || !$additionalServices}active{/if}">
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $extraDemands as $roomDemand}
|
||||
<div class="room_demands">
|
||||
<div class="demand_header">
|
||||
{l s='Room'} {$roomCount|string_format:'%02d'}
|
||||
<span>({if {$roomDemand['adults']} <= 9}0{$roomDemand['adults']}{else}{$roomDemand['adults']}{/if} {if $roomDemand['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $roomDemand['children'] > 0}, {if {$roomDemand['children']} <= 9}0{$roomDemand['children']}{else}{$roomDemand['children']}{/if} {if $roomDemand['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if})</span>
|
||||
</div>
|
||||
<div class="room_demand_detail">
|
||||
{foreach $roomDemand['extra_demands'] as $demand}
|
||||
<div class="room_demand_block">
|
||||
<div class="">{$demand['name']|escape:'html':'UTF-8'}</div>
|
||||
<div class="">
|
||||
<span>
|
||||
{if $useTax}
|
||||
{displayPrice price="{$demand['total_price_tax_incl']|escape:'html':'UTF-8'}" currency=$objOrder->id_currency}
|
||||
{else}
|
||||
{displayPrice price="{$demand['total_price_tax_excl']|escape:'html':'UTF-8'}" currency=$objOrder->id_currency}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{block name='ordered_extra_services_content'}
|
||||
<div class="card">
|
||||
{block name='ordered_extra_services_header'}
|
||||
<div class="card-header">
|
||||
{l s='Extra Services'}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
<div class="card-body">
|
||||
{if (isset($extraDemands) && $extraDemands) || (isset($additionalServices) && $additionalServices)}
|
||||
{block name='ordered_extra_services_tabs'}
|
||||
<ul class="nav nav-tabs">
|
||||
{if isset($additionalServices) && $additionalServices}
|
||||
<li class="active"><a href="#room_type_service_product_desc" data-toggle="tab">{l s='Services'}</a></li>
|
||||
{/if}
|
||||
{if isset($extraDemands) && $extraDemands}
|
||||
<li {if !isset($additionalServices) || !$additionalServices} class="active" {/if}><a href="#room_type_demands_desc" data-toggle="tab">{l s='Facilities'}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
{/block}
|
||||
{block name='ordered_extra_servies_tab_content'}
|
||||
<div class="tab-content">
|
||||
{block name='ordered_extra_services'}
|
||||
{if isset($additionalServices) && $additionalServices}
|
||||
<div id="room_type_service_product_desc" class="tab-pane {if isset($additionalServices) && $additionalServices}active{/if}">
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $additionalServices as $key => $roomAdditionalService}
|
||||
<div class="room_demands">
|
||||
<div class="demand_header">
|
||||
{l s='Room'} {$roomCount|string_format:'%02d'}
|
||||
<span>({if {$roomAdditionalService['adults']} <= 9}0{$roomAdditionalService['adults']}{else}{$roomAdditionalService['adults']}{/if} {if $roomAdditionalService['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $roomAdditionalService['children'] > 0}, {if {$roomAdditionalService['children']} <= 9}0{$roomAdditionalService['children']}{else}{$roomAdditionalService['children']}{/if} {if $roomAdditionalService['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if})</span>
|
||||
</div>
|
||||
<div class="room_demand_detail">
|
||||
{foreach $roomAdditionalService['additional_services'] as $additionalService}
|
||||
<div class="room_demand_block">
|
||||
<div class="">
|
||||
<div class="">
|
||||
{$additionalService['name']|escape:'html':'UTF-8'}
|
||||
{if $additionalService['allow_multiple_quantity']}
|
||||
<span class="quantity">{l s='(Quantity: %s)' sprintf=[$additionalService['quantity']|string_format:'%02d']}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<span>
|
||||
{if $useTax}
|
||||
{displayPrice price=$additionalService['total_price_tax_incl']|escape:'html':'UTF-8' currency=$objOrder->id_currency}
|
||||
{else}
|
||||
{displayPrice price=$additionalService['total_price_tax_excl']|escape:'html':'UTF-8' currency=$objOrder->id_currency}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='ordered_extra_demands'}
|
||||
{if isset($extraDemands) && $extraDemands}
|
||||
<div id="room_type_demands_desc" class="tab-pane {if !isset($additionalServices) || !$additionalServices}active{/if}">
|
||||
{assign var=roomCount value=1}
|
||||
{foreach $extraDemands as $roomDemand}
|
||||
<div class="room_demands">
|
||||
<div class="demand_header">
|
||||
{l s='Room'} {$roomCount|string_format:'%02d'}
|
||||
<span>({if {$roomDemand['adults']} <= 9}0{$roomDemand['adults']}{else}{$roomDemand['adults']}{/if} {if $roomDemand['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $roomDemand['children'] > 0}, {if {$roomDemand['children']} <= 9}0{$roomDemand['children']}{else}{$roomDemand['children']}{/if} {if $roomDemand['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if})</span>
|
||||
</div>
|
||||
<div class="room_demand_detail">
|
||||
{foreach $roomDemand['extra_demands'] as $demand}
|
||||
<div class="room_demand_block">
|
||||
<div class="">{$demand['name']|escape:'html':'UTF-8'}</div>
|
||||
<div class="">
|
||||
<span>
|
||||
{if $useTax}
|
||||
{displayPrice price="{$demand['total_price_tax_incl']|escape:'html':'UTF-8'}" currency=$objOrder->id_currency}
|
||||
{else}
|
||||
{displayPrice price="{$demand['total_price_tax_excl']|escape:'html':'UTF-8'}" currency=$objOrder->id_currency}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{assign var=roomCount value=$roomCount+1}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="message {if isset($message.id_employee) && $message.id_employee}management{else}customer{/if}">
|
||||
{block name='order_message_content'}
|
||||
<div class="message {if isset($message.id_employee) && $message.id_employee}management{else}customer{/if}">
|
||||
<div class="profile">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
@@ -38,3 +39,4 @@
|
||||
{$message.message|escape:'html':'UTF-8'|nl2br}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
@@ -17,151 +17,157 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="booking-room-detail" data-id-product="{$data_v.id_product}" data-date-diff="{$rm_k}">
|
||||
<div class="row">
|
||||
<div class="col-xs-3 col-sm-2">
|
||||
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank">
|
||||
<img class="img img-responsive img-room-type" src="{$data_v.cover_img|escape:'html':'UTF-8'}" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-xs-9 col-sm-10 info-wrap">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank" class="room-type-name">
|
||||
<h3>{$data_v.name|escape:'html':'UTF-8'}</h3>
|
||||
{block name='order_room_detail_content'}
|
||||
<div class="booking-room-detail" data-id-product="{$data_v.id_product}" data-date-diff="{$rm_k}">
|
||||
<div class="row">
|
||||
{block name='order_room_image'}
|
||||
<div class="col-xs-3 col-sm-2">
|
||||
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank">
|
||||
<img class="img img-responsive img-room-type" src="{$data_v.cover_img|escape:'html':'UTF-8'}" />
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='order_room_info'}
|
||||
<div class="col-xs-9 col-sm-10 info-wrap">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank" class="room-type-name">
|
||||
<h3>{$data_v.name|escape:'html':'UTF-8'}</h3>
|
||||
</a>
|
||||
|
||||
{if $rm_v['count_refunded'] > 0 || $rm_v['count_cancelled'] > 0}
|
||||
<div class="num-refunded-rooms">
|
||||
{if $rm_v['count_cancelled'] > 0}
|
||||
<span class="badge badge-danger">
|
||||
{if $rm_v['count_cancelled'] > 1}
|
||||
{$rm_v['count_cancelled']} {l s='Rooms Cancelled'}
|
||||
{else}
|
||||
{$rm_v['count_cancelled']} {l s='Room Cancelled'}
|
||||
{if $rm_v['count_refunded'] > 0 || $rm_v['count_cancelled'] > 0}
|
||||
<div class="num-refunded-rooms">
|
||||
{if $rm_v['count_cancelled'] > 0}
|
||||
<span class="badge badge-danger">
|
||||
{if $rm_v['count_cancelled'] > 1}
|
||||
{$rm_v['count_cancelled']} {l s='Rooms Cancelled'}
|
||||
{else}
|
||||
{$rm_v['count_cancelled']} {l s='Room Cancelled'}
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
{if $rm_v['count_refunded'] > 0}
|
||||
<span class="badge badge-danger">
|
||||
{if $rm_v['count_refunded'] > 1}
|
||||
{$rm_v['count_refunded']} {l s='Rooms Refunded'}
|
||||
{else}
|
||||
{$rm_v['count_refunded']} {l s='Room Refunded'}
|
||||
{if $rm_v['count_refunded'] > 0}
|
||||
<span class="badge badge-danger">
|
||||
{if $rm_v['count_refunded'] > 1}
|
||||
{$rm_v['count_refunded']} {l s='Rooms Refunded'}
|
||||
{else}
|
||||
{$rm_v['count_refunded']} {l s='Room Refunded'}
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<div class="description-list">
|
||||
<dl class="">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="col-xs-12">
|
||||
<div class="description-list">
|
||||
<dl class="">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Check-in'}</dt>
|
||||
<dd class="col-xs-7">{$rm_v.data_form|date_format:'D'}, {dateFormat date=$rm_v.data_form}</dd>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Check-in'}</dt>
|
||||
<dd class="col-xs-7">{$rm_v.data_form|date_format:'D'}, {dateFormat date=$rm_v.data_form}</dd>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Check-out'}</dt>
|
||||
<dd class="col-xs-7">{$rm_v.data_to|date_format:'D'}, {dateFormat date=$rm_v.data_to}</dd>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Check-out'}</dt>
|
||||
<dd class="col-xs-7">{$rm_v.data_to|date_format:'D'}, {dateFormat date=$rm_v.data_to}</dd>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Rooms'}</dt>
|
||||
<dd class="col-xs-7">{$rm_v.num_rm|string_format:'%02d'}</dd>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Rooms'}</dt>
|
||||
<dd class="col-xs-7">{$rm_v.num_rm|string_format:'%02d'}</dd>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Guests'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Guests'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Extra Services'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
|
||||
<a data-date_from="{$rm_v.data_form}" data-date_to="{$rm_v.data_to}" data-id_product="{$data_v.id_product}" data-id_order="{$order->id}" data-action="{$link->getPageLink({$page_name})}" class="btn-view-extra-services" href="#rooms_type_extra_services_form">
|
||||
{/if}
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_te + $rm_v.additional_services_price_te) currency=$currency}
|
||||
{/if}
|
||||
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
|
||||
</a>
|
||||
{/if}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Total Price'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti + $rm_v.additional_services_price_auto_add_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.extra_demands_price_te + $rm_v.additional_services_price_te + $rm_v.additional_services_price_auto_add_te) currency=$currency}
|
||||
{/if}
|
||||
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
|
||||
<span class="order-price-info">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
<div class="price-info-container" style="display: none;">
|
||||
<div class="price-info-tooltip-cont">
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Room(s) cost:'}</p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.additional_services_price_auto_add_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.additional_services_price_auto_add_te) currency=$currency}
|
||||
{/if}
|
||||
</p>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Extra Services'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
|
||||
<a data-date_from="{$rm_v.data_form}" data-date_to="{$rm_v.data_to}" data-id_product="{$data_v.id_product}" data-id_order="{$order->id}" data-action="{$link->getPageLink({$page_name})}" class="btn-view-extra-services" href="#rooms_type_extra_services_form">
|
||||
{/if}
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_te + $rm_v.additional_services_price_te) currency=$currency}
|
||||
{/if}
|
||||
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
|
||||
</a>
|
||||
{/if}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row">
|
||||
<dt class="col-xs-5">{l s='Total Price'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti + $rm_v.additional_services_price_auto_add_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.extra_demands_price_te + $rm_v.additional_services_price_te + $rm_v.additional_services_price_auto_add_te) currency=$currency}
|
||||
{/if}
|
||||
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
|
||||
<span class="order-price-info">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
<div class="price-info-container" style="display: none;">
|
||||
<div class="price-info-tooltip-cont">
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Room(s) cost:'}</p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.additional_services_price_auto_add_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.additional_services_price_auto_add_te) currency=$currency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Service(s) cost:'}</p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_te + $rm_v.additional_services_price_te) currency=$currency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Service(s) cost:'}</p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti) currency=$currency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_te + $rm_v.additional_services_price_te) currency=$currency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</dd>
|
||||
{/if}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
@@ -17,18 +17,20 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div class="rm_qty_cont form-group clearfix">
|
||||
<input type="hidden" class="text-center form-control quantity_wanted" min="1" name="qty" value="{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}">
|
||||
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)} {$total_available_rooms|escape:'html':'UTF-8'}{/if}">
|
||||
<div class="qty_count pull-left">
|
||||
<span>{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}</span>
|
||||
{block name='quantity_fields_content'}
|
||||
<div class="rm_qty_cont form-group clearfix">
|
||||
<input type="hidden" class="text-center form-control quantity_wanted" min="1" name="qty" value="{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}">
|
||||
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)} {$total_available_rooms|escape:'html':'UTF-8'}{/if}">
|
||||
<div class="qty_count pull-left">
|
||||
<span>{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default quantity_up rm_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default quantity_down rm_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default quantity_up rm_quantity_up">
|
||||
<span><i class="icon-plus"></i></span>
|
||||
</a>
|
||||
<a href="#" data-field-qty="qty" class="btn btn-default quantity_down rm_quantity_down">
|
||||
<span><i class="icon-minus"></i></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -17,91 +17,107 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{hook h='displayRoomTypeListBefore'}
|
||||
{if isset($booking_data['rm_data']) && $booking_data['rm_data']}
|
||||
{foreach from=$booking_data['rm_data'] key=room_k item=room_v}
|
||||
<div class="col-sm-12 room_cont" data-id-product="{$room_v['id_product']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<a href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">
|
||||
<img src="{$room_v['image']|escape:'htmlall':'UTF-8'}" class="img-responsive room-type-image">
|
||||
{hook h='displayRoomTypeListImageAfter' product=$room_v}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-8 room_info_cont">
|
||||
{block name='room_types_list_content'}
|
||||
{block name='hook_display_room_type_list_before'}
|
||||
{hook h='displayRoomTypeListBefore'}
|
||||
{/block}
|
||||
{if isset($booking_data['rm_data']) && $booking_data['rm_data']}
|
||||
{foreach from=$booking_data['rm_data'] key=room_k item=room_v}
|
||||
{block name='room_type_info'}
|
||||
<div class="col-sm-12 room_cont" data-id-product="{$room_v['id_product']|escape:'htmlall':'UTF-8'}">
|
||||
<div class="row">
|
||||
<p class="rm_heading col-sm-12 col-md-7">{$room_v['name']|escape:'htmlall':'UTF-8'}</p>
|
||||
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
|
||||
<p class="rm_left col-sm-12 col-md-5" {if $room_v['room_left']>$warning_num} style="display:none"{/if}>
|
||||
{l s='Hurry!'} <span class="remain_rm_qty">{$room_v['room_left']|escape:'htmlall':'UTF-8'}</span> {l s='rooms left'}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="rm_desc">{$room_v['description']|truncate:190:"":true} <a class="view_more" href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">{l s='View More'}....</a></div>
|
||||
<div class="room_features_cont">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-5 col-lg-6">
|
||||
{if !empty($room_v['feature'])}
|
||||
<p class="rm_amenities_cont">
|
||||
{foreach from=$room_v['feature'] key=feat_k item=feat_v}
|
||||
<img title="{$feat_v.name|escape:'htmlall':'UTF-8'}" src="{$link->getMediaLink("`$feat_img_dir`{$feat_v.value}")|escape:'htmlall':'UTF-8'}" class="rm_amen">
|
||||
{/foreach}
|
||||
</p>
|
||||
{/if}
|
||||
{block name='room_type_image'}
|
||||
<div class="col-sm-4">
|
||||
<a href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">
|
||||
<img src="{$room_v['image']|escape:'htmlall':'UTF-8'}" class="img-responsive room-type-image">
|
||||
{block name='hook_display_room_type_list_image_after'}
|
||||
{hook h='displayRoomTypeListImageAfter' product=$room_v}
|
||||
{/block}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 hidden-md hidden-lg">
|
||||
<p class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></p>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-7 col-lg-6">
|
||||
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
|
||||
|
||||
<p class="rm_price_cont">
|
||||
{if $room_v['feature_price_diff'] >= 0}
|
||||
<span class="rm_price_val {if $room_v['feature_price_diff']>0}room_type_old_price{/if}">
|
||||
{displayPrice price = $room_v['price_without_reduction_with_auto_add']|round:2|floatVal}
|
||||
</span>
|
||||
{/if}
|
||||
{if $room_v['feature_price_diff']}
|
||||
<span class="rm_price_val">
|
||||
{displayPrice price = $room_v['feature_price']|round:2|floatVal}
|
||||
</span>
|
||||
{/if}
|
||||
<span class="rm_price_txt">/{l s='Per Night'}</span>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 col-lg-4 visible-md visible-lg">
|
||||
<div class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><br><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 col-lg-8">
|
||||
<div class="booking_room_fields">
|
||||
{/block}
|
||||
{block name='room_type_content'}
|
||||
<div class="col-sm-8 room_info_cont">
|
||||
<div class="row">
|
||||
<p class="rm_heading col-sm-12 col-md-7">{$room_v['name']|escape:'htmlall':'UTF-8'}</p>
|
||||
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
|
||||
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
|
||||
<div class="booking_guest_occupancy_conatiner">
|
||||
{include file="./occupancy_field.tpl" room_type_info=$room_v total_available_rooms=$room_v['room_left']}
|
||||
</div>
|
||||
{else}
|
||||
<div>
|
||||
<label>{l s='Qty:'}</label>
|
||||
{include file="./quantity_field.tpl" total_available_rooms=$room_v['room_left']}
|
||||
</div>
|
||||
{/if}
|
||||
<div>
|
||||
<a cat_rm_check_in="{$booking_date_from|escape:'htmlall':'UTF-8'}" cat_rm_check_out="{$booking_date_to|escape:'htmlall':'UTF-8'}" href="" rm_product_id="{$room_v['id_product']}" cat_rm_book_nm_days="{$num_days|escape:'htmlall':'UTF-8'}" data-id-product-attribute="0" data-id-product="{$room_v['id_product']|intval}" class="btn btn-default button button-medium ajax_add_to_cart_button"><span>{l s='Book Now'}</span></a>
|
||||
</div>
|
||||
<p class="rm_left col-sm-12 col-md-5" {if $room_v['room_left']>$warning_num} style="display:none"{/if}>
|
||||
{l s='Hurry!'} <span class="remain_rm_qty">{$room_v['room_left']|escape:'htmlall':'UTF-8'}</span> {l s='rooms left'}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="rm_desc">{$room_v['description']|truncate:190:"":true} <a class="view_more" href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">{l s='View More'}....</a></div>
|
||||
<div class="room_features_cont">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-5 col-lg-6">
|
||||
{if !empty($room_v['feature'])}
|
||||
<p class="rm_amenities_cont">
|
||||
{foreach from=$room_v['feature'] key=feat_k item=feat_v}
|
||||
<img title="{$feat_v.name|escape:'htmlall':'UTF-8'}" src="{$link->getMediaLink("`$feat_img_dir`{$feat_v.value}")|escape:'htmlall':'UTF-8'}" class="rm_amen">
|
||||
{/foreach}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-sm-12 hidden-md hidden-lg">
|
||||
<p class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></p>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-7 col-lg-6">
|
||||
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
|
||||
|
||||
<p class="rm_price_cont">
|
||||
{if $room_v['feature_price_diff'] >= 0}
|
||||
<span class="rm_price_val {if $room_v['feature_price_diff']>0}room_type_old_price{/if}">
|
||||
{displayPrice price = $room_v['price_without_reduction_with_auto_add']|round:2|floatVal}
|
||||
</span>
|
||||
{/if}
|
||||
{if $room_v['feature_price_diff']}
|
||||
<span class="rm_price_val">
|
||||
{displayPrice price = $room_v['feature_price']|round:2|floatVal}
|
||||
</span>
|
||||
{/if}
|
||||
<span class="rm_price_txt">/{l s='Per Night'}</span>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 col-lg-4 visible-md visible-lg">
|
||||
<div class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><br><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 col-lg-8">
|
||||
<div class="booking_room_fields">
|
||||
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
|
||||
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
|
||||
{block name='room_type_occupancy_field_container'}
|
||||
<div class="booking_guest_occupancy_conatiner">
|
||||
{include file="./occupancy_field.tpl" room_type_info=$room_v total_available_rooms=$room_v['room_left']}
|
||||
</div>
|
||||
{/block}
|
||||
{else}
|
||||
{block name='room_type_quantity_field_container'}
|
||||
<div>
|
||||
<label>{l s='Qty:'}</label>
|
||||
{include file="./quantity_field.tpl" total_available_rooms=$room_v['room_left']}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
<div>
|
||||
<a cat_rm_check_in="{$booking_date_from|escape:'htmlall':'UTF-8'}" cat_rm_check_out="{$booking_date_to|escape:'htmlall':'UTF-8'}" href="" rm_product_id="{$room_v['id_product']}" cat_rm_book_nm_days="{$num_days|escape:'htmlall':'UTF-8'}" data-id-product-attribute="0" data-id-product="{$room_v['id_product']|intval}" class="btn btn-default button button-medium ajax_add_to_cart_button"><span>{l s='Book Now'}</span></a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="noRoomsAvailAlert">
|
||||
<span>{l s='No room available for this hotel!'}</span>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="noRoomsAvailAlert">
|
||||
<span>{l s='No room available for this hotel!'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -17,63 +17,69 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{if isset($product) && $product}
|
||||
<li class="row service-product-element">
|
||||
<div class="col-xs-4 col-sm-3 col-md-2">
|
||||
<a href="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$product['id_product']}" class="fancybox" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}">
|
||||
<img class="img-responsive service-product-img" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}">
|
||||
</a>
|
||||
{foreach $product.images as $image}
|
||||
{if $image['cover'] == 0}
|
||||
<a href="{$link->getImageLink($product.link_rewrite, $image.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$product['id_product']}" class="fancybox hidden" title="{if !empty($image.legend)}{$image.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}">
|
||||
{block name='service_product_list_row_content'}
|
||||
{if isset($product) && $product}
|
||||
<li class="row service-product-element">
|
||||
{block name='service_product_images'}
|
||||
<div class="col-xs-4 col-sm-3 col-md-2">
|
||||
<a href="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$product['id_product']}" class="fancybox" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}">
|
||||
<img class="img-responsive service-product-img" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}">
|
||||
</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="col-xs-8 col-sm-9 col-md-10">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 clearfix service-product-block">
|
||||
<span class="service-product-name">{$product['name']}</span>
|
||||
{foreach $product.images as $image}
|
||||
{if $image['cover'] == 0}
|
||||
<a href="{$link->getImageLink($product.link_rewrite, $image.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$product['id_product']}" class="fancybox hidden" title="{if !empty($image.legend)}{$image.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}">
|
||||
</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{if $product['description_short']}
|
||||
<div class="col-sm-12 clearfix service-product-short-desc service-product-block">
|
||||
{$product['description_short']}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="col-sm-12 service_product_action_block">
|
||||
{if !$PS_CATALOG_MODE && !$order_date_restrict && ($product.show_price && !isset($restricted_country_mode))}
|
||||
<div class="service-product-price">
|
||||
{if !$priceDisplay}{convertPrice price=$product.price_tax_incl}{else}{convertPrice price=$product.price_tax_exc}{/if}{if $product.price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_DAY}<span class="price-label">{l s='/Night'}</span>{/if}
|
||||
{if $product.allow_multiple_quantity && $product.available_for_order && $product.max_quantity > 0}
|
||||
<div class="service-max-quantity-info">
|
||||
{l s='Maximum'} {$product.max_quantity} {l s='quantity can be added'}.
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='service_product_info'}
|
||||
<div class="col-xs-8 col-sm-9 col-md-10">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 clearfix service-product-block">
|
||||
<span class="service-product-name">{$product['name']}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if ($product.show_price && !isset($restricted_country_mode))}
|
||||
{if $product.available_for_order && !$PS_CATALOG_MODE && !$order_date_restrict && !((isset($restricted_country_mode) && $restricted_country_mode))}
|
||||
<div class="service-product-actions">
|
||||
{if $product.allow_multiple_quantity && $product.available_for_order}
|
||||
<div class="qty_container">
|
||||
<input type="hidden" class="service_product_qty" id="service_product_qty_{$product.id_product}" name="service_product_qty_{$product.id_product}" data-id-product="{$product.id_product}" data-max_quantity="{$product.max_quantity}" value="{if isset($product.quantity_added) && $product.quantity_added}{$product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}">
|
||||
<div class="qty_count pull-left">
|
||||
<span>{if isset($product.quantity_added) && $product.quantity_added}{$product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" class="btn btn-default quantity_up service_product_qty_up"><span><i class="icon-plus"></i></span></a>
|
||||
<a href="#" class="btn btn-default quantity_down service_product_qty_down"><span><i class="icon-minus"></i></span></a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<button class="btn btn-service-product {if isset($product.selected) && $product.selected} btn-danger remove_roomtype_product{else} btn-success add_roomtype_product{/if} select_room_service select_room_service_{$product.id_product} pull-right" data-id-product="{$product.id_product}">{if isset($product.selected) && $product.selected}{l s='Remove'}{else}{l s='Select'}{/if}</button>
|
||||
{if $product['description_short']}
|
||||
<div class="col-sm-12 clearfix service-product-short-desc service-product-block">
|
||||
{$product['description_short']}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<div class="col-sm-12 service_product_action_block">
|
||||
{if !$PS_CATALOG_MODE && !$order_date_restrict && ($product.show_price && !isset($restricted_country_mode))}
|
||||
<div class="service-product-price">
|
||||
{if !$priceDisplay}{convertPrice price=$product.price_tax_incl}{else}{convertPrice price=$product.price_tax_exc}{/if}{if $product.price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_DAY}<span class="price-label">{l s='/Night'}</span>{/if}
|
||||
{if $product.allow_multiple_quantity && $product.available_for_order && $product.max_quantity > 0}
|
||||
<div class="service-max-quantity-info">
|
||||
{l s='Maximum'} {$product.max_quantity} {l s='quantity can be added'}.
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if ($product.show_price && !isset($restricted_country_mode))}
|
||||
{if $product.available_for_order && !$PS_CATALOG_MODE && !$order_date_restrict && !((isset($restricted_country_mode) && $restricted_country_mode))}
|
||||
<div class="service-product-actions">
|
||||
{if $product.allow_multiple_quantity && $product.available_for_order}
|
||||
<div class="qty_container">
|
||||
<input type="hidden" class="service_product_qty" id="service_product_qty_{$product.id_product}" name="service_product_qty_{$product.id_product}" data-id-product="{$product.id_product}" data-max_quantity="{$product.max_quantity}" value="{if isset($product.quantity_added) && $product.quantity_added}{$product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}">
|
||||
<div class="qty_count pull-left">
|
||||
<span>{if isset($product.quantity_added) && $product.quantity_added}{$product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}</span>
|
||||
</div>
|
||||
<div class="qty_direction pull-left">
|
||||
<a href="#" class="btn btn-default quantity_up service_product_qty_up"><span><i class="icon-plus"></i></span></a>
|
||||
<a href="#" class="btn btn-default quantity_down service_product_qty_down"><span><i class="icon-minus"></i></span></a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<button class="btn btn-service-product {if isset($product.selected) && $product.selected} btn-danger remove_roomtype_product{else} btn-success add_roomtype_product{/if} select_room_service select_room_service_{$product.id_product} pull-right" data-id-product="{$product.id_product}">{if isset($product.selected) && $product.selected}{l s='Remove'}{else}{l s='Select'}{/if}</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{/if}
|
||||
{/block}
|
||||
</li>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -17,9 +17,13 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{foreach $service_products as $product}
|
||||
{if !($product@first && isset($init) && $init == true)}
|
||||
<hr>
|
||||
{/if}
|
||||
{include file="{$tpl_dir}_partials/service-products-list-row.tpl" product=$product}
|
||||
{/foreach}
|
||||
{block name='service_product_list_content'}
|
||||
{foreach $service_products as $product}
|
||||
{if !($product@first && isset($init) && $init == true)}
|
||||
<hr>
|
||||
{/if}
|
||||
{block name='service_product_list_row_container'}
|
||||
{include file="{$tpl_dir}_partials/service-products-list-row.tpl" product=$product}
|
||||
{/block}
|
||||
{/foreach}
|
||||
{/block}
|
||||
|
||||
@@ -17,43 +17,55 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{if isset($service_products_exists) && $service_products_exists}
|
||||
<ul class="nav nav-tabs product_description_tabs">
|
||||
{if !$PS_SERVICE_PRODUCT_CATEGORY_FILTER}
|
||||
<li class="active"><a href="#all_products" class="idTabHrefShort" data-toggle="tab">{l s='Services'}</a></li>
|
||||
{else}
|
||||
{foreach $service_products_by_category as $category}
|
||||
<li {if $category@iteration == 1}class="active"{/if}><a class="idTabHrefShort" href="#category_{$category['id_category']}" data-toggle="tab">{$category['name']}</a></li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
<div class="card">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 tab-content">
|
||||
{if $PS_SERVICE_PRODUCT_CATEGORY_FILTER}
|
||||
{foreach $service_products_by_category as $service_product_category}
|
||||
<div class="tab-pane {if $service_product_category@iteration == 1}active{/if}" id="category_{$service_product_category['id_category']}">
|
||||
<ul class="product-list">
|
||||
{include file="{$tpl_dir}_partials/service-products-list.tpl" service_products=$service_product_category['products'] group=$service_product_category['id_category'] init=true}
|
||||
</ul>
|
||||
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $service_product_category['num_products']}
|
||||
{block name='service_products_content'}
|
||||
{if isset($service_products_exists) && $service_products_exists}
|
||||
{block name='service_products_tabs'}
|
||||
<ul class="nav nav-tabs product_description_tabs">
|
||||
{if !$PS_SERVICE_PRODUCT_CATEGORY_FILTER}
|
||||
<li class="active"><a href="#all_products" class="idTabHrefShort" data-toggle="tab">{l s='Services'}</a></li>
|
||||
{else}
|
||||
{foreach $service_products_by_category as $category}
|
||||
<li {if $category@iteration == 1}class="active"{/if}><a class="idTabHrefShort" href="#category_{$category['id_category']}" data-toggle="tab">{$category['name']}</a></li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
{/block}
|
||||
{block name='service_products_tab_content'}
|
||||
<div class="card">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 tab-content">
|
||||
{if $PS_SERVICE_PRODUCT_CATEGORY_FILTER}
|
||||
{block name='service_products_cat_list'}
|
||||
{foreach $service_products_by_category as $service_product_category}
|
||||
<div class="tab-pane {if $service_product_category@iteration == 1}active{/if}" id="category_{$service_product_category['id_category']}">
|
||||
{block name='service_products_list_container'}
|
||||
<ul class="product-list">
|
||||
{include file="{$tpl_dir}_partials/service-products-list.tpl" service_products=$service_product_category['products'] group=$service_product_category['id_category'] init=true}
|
||||
</ul>
|
||||
{/block}
|
||||
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $service_product_category['num_products']}
|
||||
<div class="show_more_btn_container">
|
||||
<button class="btn btn-default get-service-products" data-id_category="{$service_product_category['id_category']}" data-page="2" data-num_total="{$service_product_category['num_products']}">{l s='Show More'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
{/block}
|
||||
{else}
|
||||
{block name='service_products_list_container'}
|
||||
<ul class="product-list">
|
||||
{include file="{$tpl_dir}_partials/service-products-list.tpl" service_products=$service_products group='all' init=true}
|
||||
</ul>
|
||||
{/block}
|
||||
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $num_total_service_products}
|
||||
<div class="show_more_btn_container">
|
||||
<button class="btn btn-default get-service-products" data-id_category="{$service_product_category['id_category']}" data-page="2" data-num_total="{$service_product_category['num_products']}">{l s='Show More'}</button>
|
||||
<button class="btn btn-default get-service-products" data-page="2" data-num_total="{$num_total_service_products}">{l s='Show More'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<ul class="product-list">
|
||||
{include file="{$tpl_dir}_partials/service-products-list.tpl" service_products=$service_products group='all' init=true}
|
||||
</ul>
|
||||
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $num_total_service_products}
|
||||
<div class="show_more_btn_container">
|
||||
<button class="btn btn-default get-service-products" data-page="2" data-num_total="{$num_total_service_products}">{l s='Show More'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -22,229 +22,253 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Address'}
|
||||
</span>
|
||||
{/capture}
|
||||
{if isset($smarty.get.updated) && $smarty.get.updated}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your address has been successfully updated.'}
|
||||
</p>
|
||||
{/if}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">{l s='Address'}</h1>
|
||||
<p class="info-title">
|
||||
{if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))}
|
||||
{l s='Modify address'}
|
||||
{if isset($smarty.post.alias)}
|
||||
"{$smarty.post.alias}"
|
||||
{else}
|
||||
{if isset($address->alias)}"{$address->alias|escape:'html':'UTF-8'}"{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='To add an address, please fill out the form below.'}
|
||||
{/if}
|
||||
</p>
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
<p class="required"><sup>*</sup>{l s='Required field'}</p>
|
||||
<form action="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" method="post" class="std" id="add_address">
|
||||
<!--h3 class="page-subheading">{if isset($id_address)}{l s='Your address'}{else}{l s='New address'}{/if}</h3-->
|
||||
{assign var="stateExist" value=false}
|
||||
{assign var="postCodeExist" value=false}
|
||||
{assign var="dniExist" value=false}
|
||||
{assign var="homePhoneExist" value=false}
|
||||
{assign var="mobilePhoneExist" value=false}
|
||||
{assign var="atLeastOneExists" value=false}
|
||||
{foreach from=$ordered_adr_fields item=field_name}
|
||||
{if $field_name eq 'company'}
|
||||
<div class="form-group">
|
||||
<label for="company">{l s='Company'}{if isset($required_fields) && in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input class="form-control validate" data-validate="{$address_validation.$field_name.validate}" type="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{else}{if isset($address->company)}{$address->company|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'vat_number'}
|
||||
<div id="vat_area">
|
||||
<div id="vat_number">
|
||||
<div class="form-group">
|
||||
<label for="vat-number">{l s='VAT number'}{if isset($required_fields) && in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control validate" data-validate="{$address_validation.$field_name.validate}" id="vat-number" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{else}{if isset($address->vat_number)}{$address->vat_number|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'dni'}
|
||||
{assign var="dniExist" value=true}
|
||||
<div class="required form-group dni">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input class="form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{else}{if isset($address->dni)}{$address->dni|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'firstname'}
|
||||
<div class="required form-group">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="firstname" id="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{else}{if isset($address->firstname)}{$address->firstname|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'lastname'}
|
||||
<div class="required form-group">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{else}{if isset($address->lastname)}{$address->lastname|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'address1'}
|
||||
<div class="required form-group">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="address1" name="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{else}{if isset($address->address1)}{$address->address1|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'address2'}
|
||||
<div class="required form-group">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if isset($required_fields) && in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input class="validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="address2" name="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{else}{if isset($address->address2)}{$address->address2|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'postcode'}
|
||||
{assign var="postCodeExist" value=true}
|
||||
<div class="required postcode form-group unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{if isset($address->postcode)}{$address->postcode|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'city'}
|
||||
<div class="required form-group">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'html':'UTF-8'}{/if}{/if}" maxlength="64" />
|
||||
</div>
|
||||
{* if customer hasn't update his layout address, country has to be verified but it's deprecated *}
|
||||
{/if}
|
||||
{if $field_name eq 'Country:name' || $field_name eq 'country' || $field_name eq 'Country:iso_code'}
|
||||
<div class="required form-group">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select id="id_country" class="form-control" name="id_country">{$countries_list}</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'State:name'}
|
||||
{assign var="stateExist" value=true}
|
||||
<div class="required id_state form-group">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'phone'}
|
||||
{assign var="homePhoneExist" value=true}
|
||||
<div class="form-group phone-number">
|
||||
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input class="{if isset($one_phone_at_least) && $one_phone_at_least}is_required{/if} validate form-control" data-validate="{$address_validation.phone.validate}" type="tel" id="phone" name="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{else}{if isset($address->phone)}{$address->phone|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
{assign var="atLeastOneExists" value=true}
|
||||
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="clearfix"></div>
|
||||
{/if}
|
||||
{if $field_name eq 'phone_mobile'}
|
||||
{assign var="mobilePhoneExist" value=true}
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input class="validate form-control" data-validate="{$address_validation.phone_mobile.validate}" type="tel" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{else}{if isset($address->phone_mobile)}{$address->phone_mobile|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode form-group unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.postcode.validate}" type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{if isset($address->postcode)}{$address->postcode|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state form-group unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required dni form-group unvisible">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input class="is_required form-control" data-validate="{$address_validation.dni.validate}" type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{else}{if isset($address->dni)}{$address->dni|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="validate form-control" data-validate="{$address_validation.other.validate}" id="other" name="other" cols="26" rows="3" >{if isset($smarty.post.other)}{$smarty.post.other}{else}{if isset($address->other)}{$address->other|escape:'html':'UTF-8'}{/if}{/if}</textarea>
|
||||
</div>
|
||||
{if !$homePhoneExist}
|
||||
<div class="form-group phone-number">
|
||||
<label for="phone">{l s='Home phone'}</label>
|
||||
<input class="{if isset($one_phone_at_least) && $one_phone_at_least}is_required{/if} validate form-control" data-validate="{$address_validation.phone.validate}" type="tel" id="phone" name="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{else}{if isset($address->phone)}{$address->phone|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least && !$atLeastOneExists}
|
||||
<p class="inline-infos required">{l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="clearfix"></div>
|
||||
{if !$mobilePhoneExist}
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input class="validate form-control" data-validate="{$address_validation.phone_mobile.validate}" type="tel" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{else}{if isset($address->phone_mobile)}{$address->phone_mobile|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="required form-group" id="adress_alias">
|
||||
<label for="alias">{l s='Please assign an address title for future reference.'} <sup>*</sup></label>
|
||||
<input type="text" id="alias" class="is_required validate form-control" data-validate="{$address_validation.alias.validate}" name="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{elseif isset($address->alias)}{$address->alias|escape:'html':'UTF-8'}{elseif !$select_address}{l s='My address'}{/if}" />
|
||||
|
||||
{hook h='displayGDPRConsent' moduleName='addressform'}
|
||||
</div>
|
||||
<p class="submit2">
|
||||
{if isset($id_address)}<input type="hidden" name="id_address" value="{$id_address|intval}" />{/if}
|
||||
{if isset($back)}<input type="hidden" name="back" value="{$back}" />{/if}
|
||||
{if isset($mod)}<input type="hidden" name="mod" value="{$mod}" />{/if}
|
||||
{if isset($select_address)}<input type="hidden" name="select_address" value="{$select_address|intval}" />{/if}
|
||||
<input type="hidden" name="token" value="{$token}" />
|
||||
<button type="submit" name="submitAddress" id="submitAddress" class="btn btn-default button button-medium">
|
||||
<span>
|
||||
{l s='Save'}
|
||||
<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-defaul button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span><i class="icon-chevron-left"></i> {l s='Back to My account'}</span>
|
||||
{block name='address_content'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{strip}
|
||||
{if isset($smarty.post.id_state) && $smarty.post.id_state}
|
||||
{addJsDef idSelectedState=$smarty.post.id_state|intval}
|
||||
{elseif isset($address->id_state) && $address->id_state}
|
||||
{addJsDef idSelectedState=$address->id_state|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedState=false}
|
||||
{/if}
|
||||
{if isset($smarty.post.id_country) && $smarty.post.id_country}
|
||||
{addJsDef idSelectedCountry=$smarty.post.id_country|intval}
|
||||
{elseif isset($address->id_country) && $address->id_country}
|
||||
{addJsDef idSelectedCountry=$address->id_country|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountry=false}
|
||||
{/if}
|
||||
{if isset($countries)}
|
||||
{addJsDef countries=$countries}
|
||||
{/if}
|
||||
{/strip}
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Address'}
|
||||
</span>
|
||||
{/capture}
|
||||
{block name='address_page_update_message'}
|
||||
{if isset($smarty.get.updated) && $smarty.get.updated}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your address has been successfully updated.'}
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='address_page_content'}
|
||||
<div class="box">
|
||||
{block name='address_page_subheading'}
|
||||
<h1 class="page-subheading">{l s='Address'}</h1>
|
||||
{/block}
|
||||
{block name='address_page_subheading_description'}
|
||||
<p class="info-title">
|
||||
{if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))}
|
||||
{l s='Modify address'}
|
||||
{if isset($smarty.post.alias)}
|
||||
"{$smarty.post.alias}"
|
||||
{else}
|
||||
{if isset($address->alias)}"{$address->alias|escape:'html':'UTF-8'}"{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='To add an address, please fill out the form below.'}
|
||||
{/if}
|
||||
</p>
|
||||
{/block}
|
||||
{block name='address_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
{block name='address_form'}
|
||||
<p class="required"><sup>*</sup>{l s='Required field'}</p>
|
||||
<form action="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" method="post" class="std" id="add_address">
|
||||
{block name='address_form_heading'}
|
||||
<!--h3 class="page-subheading">{if isset($id_address)}{l s='Your address'}{else}{l s='New address'}{/if}</h3-->
|
||||
{/block}
|
||||
{block name='address_form_fields'}
|
||||
{assign var="stateExist" value=false}
|
||||
{assign var="postCodeExist" value=false}
|
||||
{assign var="dniExist" value=false}
|
||||
{assign var="homePhoneExist" value=false}
|
||||
{assign var="mobilePhoneExist" value=false}
|
||||
{assign var="atLeastOneExists" value=false}
|
||||
{foreach from=$ordered_adr_fields item=field_name}
|
||||
{if $field_name eq 'company'}
|
||||
<div class="form-group">
|
||||
<label for="company">{l s='Company'}{if isset($required_fields) && in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input class="form-control validate" data-validate="{$address_validation.$field_name.validate}" type="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{else}{if isset($address->company)}{$address->company|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'vat_number'}
|
||||
<div id="vat_area">
|
||||
<div id="vat_number">
|
||||
<div class="form-group">
|
||||
<label for="vat-number">{l s='VAT number'}{if isset($required_fields) && in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control validate" data-validate="{$address_validation.$field_name.validate}" id="vat-number" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{else}{if isset($address->vat_number)}{$address->vat_number|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'dni'}
|
||||
{assign var="dniExist" value=true}
|
||||
<div class="required form-group dni">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input class="form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{else}{if isset($address->dni)}{$address->dni|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'firstname'}
|
||||
<div class="required form-group">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="firstname" id="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{else}{if isset($address->firstname)}{$address->firstname|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'lastname'}
|
||||
<div class="required form-group">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{else}{if isset($address->lastname)}{$address->lastname|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'address1'}
|
||||
<div class="required form-group">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="address1" name="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{else}{if isset($address->address1)}{$address->address1|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'address2'}
|
||||
<div class="required form-group">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if isset($required_fields) && in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input class="validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="address2" name="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{else}{if isset($address->address2)}{$address->address2|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'postcode'}
|
||||
{assign var="postCodeExist" value=true}
|
||||
<div class="required postcode form-group unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{if isset($address->postcode)}{$address->postcode|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'city'}
|
||||
<div class="required form-group">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'html':'UTF-8'}{/if}{/if}" maxlength="64" />
|
||||
</div>
|
||||
{* if customer hasn't update his layout address, country has to be verified but it's deprecated *}
|
||||
{/if}
|
||||
{if $field_name eq 'Country:name' || $field_name eq 'country' || $field_name eq 'Country:iso_code'}
|
||||
<div class="required form-group">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select id="id_country" class="form-control" name="id_country">{$countries_list}</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'State:name'}
|
||||
{assign var="stateExist" value=true}
|
||||
<div class="required id_state form-group">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if $field_name eq 'phone'}
|
||||
{assign var="homePhoneExist" value=true}
|
||||
<div class="form-group phone-number">
|
||||
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input class="{if isset($one_phone_at_least) && $one_phone_at_least}is_required{/if} validate form-control" data-validate="{$address_validation.phone.validate}" type="tel" id="phone" name="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{else}{if isset($address->phone)}{$address->phone|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
{assign var="atLeastOneExists" value=true}
|
||||
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="clearfix"></div>
|
||||
{/if}
|
||||
{if $field_name eq 'phone_mobile'}
|
||||
{assign var="mobilePhoneExist" value=true}
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input class="validate form-control" data-validate="{$address_validation.phone_mobile.validate}" type="tel" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{else}{if isset($address->phone_mobile)}{$address->phone_mobile|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode form-group unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input class="is_required validate form-control" data-validate="{$address_validation.postcode.validate}" type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{if isset($address->postcode)}{$address->postcode|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state form-group unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required dni form-group unvisible">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input class="is_required form-control" data-validate="{$address_validation.dni.validate}" type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{else}{if isset($address->dni)}{$address->dni|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="validate form-control" data-validate="{$address_validation.other.validate}" id="other" name="other" cols="26" rows="3" >{if isset($smarty.post.other)}{$smarty.post.other}{else}{if isset($address->other)}{$address->other|escape:'html':'UTF-8'}{/if}{/if}</textarea>
|
||||
</div>
|
||||
{if !$homePhoneExist}
|
||||
<div class="form-group phone-number">
|
||||
<label for="phone">{l s='Home phone'}</label>
|
||||
<input class="{if isset($one_phone_at_least) && $one_phone_at_least}is_required{/if} validate form-control" data-validate="{$address_validation.phone.validate}" type="tel" id="phone" name="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{else}{if isset($address->phone)}{$address->phone|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least && !$atLeastOneExists}
|
||||
<p class="inline-infos required">{l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="clearfix"></div>
|
||||
{if !$mobilePhoneExist}
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input class="validate form-control" data-validate="{$address_validation.phone_mobile.validate}" type="tel" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{else}{if isset($address->phone_mobile)}{$address->phone_mobile|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="required form-group" id="adress_alias">
|
||||
<label for="alias">{l s='Please assign an address title for future reference.'} <sup>*</sup></label>
|
||||
<input type="text" id="alias" class="is_required validate form-control" data-validate="{$address_validation.alias.validate}" name="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{elseif isset($address->alias)}{$address->alias|escape:'html':'UTF-8'}{elseif !$select_address}{l s='My address'}{/if}" />
|
||||
|
||||
{block name='display_gdpr_consent'}
|
||||
{hook h='displayGDPRConsent' moduleName='addressform'}
|
||||
{/block}
|
||||
</div>
|
||||
<p class="submit2">
|
||||
{if isset($id_address)}<input type="hidden" name="id_address" value="{$id_address|intval}" />{/if}
|
||||
{if isset($back)}<input type="hidden" name="back" value="{$back}" />{/if}
|
||||
{if isset($mod)}<input type="hidden" name="mod" value="{$mod}" />{/if}
|
||||
{if isset($select_address)}<input type="hidden" name="select_address" value="{$select_address|intval}" />{/if}
|
||||
<input type="hidden" name="token" value="{$token}" />
|
||||
<button type="submit" name="submitAddress" id="submitAddress" class="btn btn-default button button-medium">
|
||||
<span>
|
||||
{l s='Save'}
|
||||
<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</button>
|
||||
</p>
|
||||
{/block}
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='address_footer_links'}
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-defaul button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span><i class="icon-chevron-left"></i> {l s='Back to My account'}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/block}
|
||||
{/block}
|
||||
{block name='address_js_vars'}
|
||||
{strip}
|
||||
{if isset($smarty.post.id_state) && $smarty.post.id_state}
|
||||
{addJsDef idSelectedState=$smarty.post.id_state|intval}
|
||||
{elseif isset($address->id_state) && $address->id_state}
|
||||
{addJsDef idSelectedState=$address->id_state|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedState=false}
|
||||
{/if}
|
||||
{if isset($smarty.post.id_country) && $smarty.post.id_country}
|
||||
{addJsDef idSelectedCountry=$smarty.post.id_country|intval}
|
||||
{elseif isset($address->id_country) && $address->id_country}
|
||||
{addJsDef idSelectedCountry=$address->id_country|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountry=false}
|
||||
{/if}
|
||||
{if isset($countries)}
|
||||
{addJsDef countries=$countries}
|
||||
{/if}
|
||||
{/strip}
|
||||
{/block}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -23,40 +23,46 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="row cat_cont">
|
||||
<div class="col-sm-12">
|
||||
<div class="row margin-lr-0 catSortBlock">
|
||||
<div class="col-sm-2 sortBlockHeading">
|
||||
<p>{l s='Sort By:'}</p>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="filter_dw_cont">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" id="price_ftr" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="pull-left sort_btn_span" data-sort-by="0" data-sort-value="0" data-sort-for="{l s='Recommended'}">{l s='Recommended'}</span>
|
||||
<span class="caret pull-right margin-top-7"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="price_ftr">
|
||||
<li><a href="#" class="sort_result" data-sort-by="0" data-value="0">{l s='Recommended'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="1">{l s='Price : Lowest First'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="2">{l s='Price : Highest first '}</a></li>
|
||||
</ul>
|
||||
{block name='category_content'}
|
||||
<div class="row cat_cont">
|
||||
<div class="col-sm-12">
|
||||
<div class="row margin-lr-0 catSortBlock">
|
||||
<div class="col-sm-2 sortBlockHeading">
|
||||
<p>{l s='Sort By:'}</p>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="filter_dw_cont">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" id="price_ftr" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="pull-left sort_btn_span" data-sort-by="0" data-sort-value="0" data-sort-for="{l s='Recommended'}">{l s='Recommended'}</span>
|
||||
<span class="caret pull-right margin-top-7"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="price_ftr">
|
||||
<li><a href="#" class="sort_result" data-sort-by="0" data-value="0">{l s='Recommended'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="1">{l s='Price : Lowest First'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="2">{l s='Price : Highest first '}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="max_order_date" name="max_order_date" value="{$max_order_date}">
|
||||
<div class="row margin-lr-0" id="category_data_cont">
|
||||
{include file="./_partials/room_type_list.tpl"}
|
||||
<input type="hidden" id="max_order_date" name="max_order_date" value="{$max_order_date}">
|
||||
<div class="row margin-lr-0" id="category_data_cont">
|
||||
{block name='room_type_list_container'}
|
||||
{include file="./_partials/room_type_list.tpl"}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{strip}
|
||||
{addJsDef product_controller_url=$link->getPageLink('product')}
|
||||
{* {addJsDef feat_img_dir=$feat_img_dir} *}
|
||||
{* {addJsDef ratting_img=$ratting_img} *}
|
||||
{addJsDef currency_prefix = $currency->prefix}
|
||||
{addJsDef currency_suffix = $currency->suffix}
|
||||
{if isset($max_order_date)}
|
||||
{addJsDef max_order_date = $max_order_date}
|
||||
{/if}
|
||||
{/strip}
|
||||
{block name='category_js_vars'}
|
||||
{strip}
|
||||
{addJsDef product_controller_url=$link->getPageLink('product')}
|
||||
{* {addJsDef feat_img_dir=$feat_img_dir} *}
|
||||
{* {addJsDef ratting_img=$ratting_img} *}
|
||||
{addJsDef currency_prefix = $currency->prefix}
|
||||
{addJsDef currency_suffix = $currency->suffix}
|
||||
{if isset($max_order_date)}
|
||||
{addJsDef max_order_date = $max_order_date}
|
||||
{/if}
|
||||
{/strip}
|
||||
{/block}
|
||||
@@ -22,61 +22,74 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{if isset($cms) && !isset($cms_category)}
|
||||
{if !$cms->active}
|
||||
<br />
|
||||
<div id="admin-action-cms">
|
||||
<p>
|
||||
<span>{l s='This CMS page is not visible to your customers.'}</span>
|
||||
<input type="hidden" id="admin-action-cms-id" value="{$cms->id}" />
|
||||
<input type="submit" value="{l s='Publish'}" name="publish_button" class="button btn btn-default"/>
|
||||
<input type="submit" value="{l s='Back'}" name="lnk_view" class="button btn btn-default"/>
|
||||
</p>
|
||||
<div class="clear" ></div>
|
||||
<p id="admin-action-result"></p>
|
||||
</div>
|
||||
|
||||
{block name='cms_content'}
|
||||
{if isset($cms) && !isset($cms_category)}
|
||||
{block name='cms_inactive_alert'}
|
||||
{if !$cms->active}
|
||||
<br />
|
||||
<div id="admin-action-cms">
|
||||
<p>
|
||||
<span>{l s='This CMS page is not visible to your customers.'}</span>
|
||||
<input type="hidden" id="admin-action-cms-id" value="{$cms->id}" />
|
||||
<input type="submit" value="{l s='Publish'}" name="publish_button" class="button btn btn-default"/>
|
||||
<input type="submit" value="{l s='Back'}" name="lnk_view" class="button btn btn-default"/>
|
||||
</p>
|
||||
<div class="clear" ></div>
|
||||
<p id="admin-action-result"></p>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='cms_page_content'}
|
||||
<div class="rte{if $content_only} content_only{/if}">
|
||||
{$cms->content}
|
||||
</div>
|
||||
{/block}
|
||||
{elseif isset($cms_category)}
|
||||
{block name='cms_category'}
|
||||
<div class="block-cms">
|
||||
<h1><a href="{if $cms_category->id eq 1}{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}{else}{$link->getCMSCategoryLink($cms_category->id, $cms_category->link_rewrite)}{/if}">{$cms_category->name|escape:'html':'UTF-8'}</a></h1>
|
||||
{if $cms_category->description}
|
||||
<p>{$cms_category->description|escape:'html':'UTF-8'}</p>
|
||||
{/if}
|
||||
{if isset($sub_category) && !empty($sub_category)}
|
||||
<p class="title_block">{l s='List of sub categories in %s:' sprintf=$cms_category->name}</p>
|
||||
<ul class="bullet list-group">
|
||||
{foreach from=$sub_category item=subcategory}
|
||||
<li>
|
||||
<a class="list-group-item" href="{$link->getCMSCategoryLink($subcategory.id_cms_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|escape:'html':'UTF-8'}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{if isset($cms_pages) && !empty($cms_pages)}
|
||||
<p class="title_block">{l s='List of pages in %s:' sprintf=$cms_category->name}</p>
|
||||
<ul class="bullet list-group">
|
||||
{foreach from=$cms_pages item=cmspages}
|
||||
<li>
|
||||
<a class="list-group-item" href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'html':'UTF-8'}">{$cmspages.meta_title|escape:'html':'UTF-8'}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
{else}
|
||||
{block name='cms_not_found_alert'}
|
||||
<div class="alert alert-danger">
|
||||
{l s='This page does not exist.'}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
<div class="rte{if $content_only} content_only{/if}">
|
||||
{$cms->content}
|
||||
</div>
|
||||
{elseif isset($cms_category)}
|
||||
<div class="block-cms">
|
||||
<h1><a href="{if $cms_category->id eq 1}{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}{else}{$link->getCMSCategoryLink($cms_category->id, $cms_category->link_rewrite)}{/if}">{$cms_category->name|escape:'html':'UTF-8'}</a></h1>
|
||||
{if $cms_category->description}
|
||||
<p>{$cms_category->description|escape:'html':'UTF-8'}</p>
|
||||
<br />
|
||||
{/block}
|
||||
{block name='cms_js_vars'}
|
||||
{strip}
|
||||
{if isset($smarty.get.ad) && $smarty.get.ad}
|
||||
{addJsDefL name=ad}{$base_dir|cat:$smarty.get.ad|escape:'html':'UTF-8'}{/addJsDefL}
|
||||
{/if}
|
||||
{if isset($sub_category) && !empty($sub_category)}
|
||||
<p class="title_block">{l s='List of sub categories in %s:' sprintf=$cms_category->name}</p>
|
||||
<ul class="bullet list-group">
|
||||
{foreach from=$sub_category item=subcategory}
|
||||
<li>
|
||||
<a class="list-group-item" href="{$link->getCMSCategoryLink($subcategory.id_cms_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|escape:'html':'UTF-8'}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if isset($smarty.get.adtoken) && $smarty.get.adtoken}
|
||||
{addJsDefL name=adtoken}{$smarty.get.adtoken|escape:'html':'UTF-8'}{/addJsDefL}
|
||||
{/if}
|
||||
{if isset($cms_pages) && !empty($cms_pages)}
|
||||
<p class="title_block">{l s='List of pages in %s:' sprintf=$cms_category->name}</p>
|
||||
<ul class="bullet list-group">
|
||||
{foreach from=$cms_pages item=cmspages}
|
||||
<li>
|
||||
<a class="list-group-item" href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'html':'UTF-8'}">{$cmspages.meta_title|escape:'html':'UTF-8'}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-danger">
|
||||
{l s='This page does not exist.'}
|
||||
</div>
|
||||
{/if}
|
||||
<br />
|
||||
{strip}
|
||||
{if isset($smarty.get.ad) && $smarty.get.ad}
|
||||
{addJsDefL name=ad}{$base_dir|cat:$smarty.get.ad|escape:'html':'UTF-8'}{/addJsDefL}
|
||||
{/if}
|
||||
{if isset($smarty.get.adtoken) && $smarty.get.adtoken}
|
||||
{addJsDefL name=adtoken}{$smarty.get.adtoken|escape:'html':'UTF-8'}{/addJsDefL}
|
||||
{/if}
|
||||
{/strip}
|
||||
{/strip}
|
||||
{/block}
|
||||
@@ -23,188 +23,210 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if isset($smarty.get.confirm)}
|
||||
<p class="alert alert-success">{l s='Your message has been successfully sent to our team.'}</p>
|
||||
{/if}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
<div class="margin-top-50 htl-contact-page">
|
||||
<div class="row">
|
||||
<p class="contact-header col-sm-offset-2 col-sm-8">{l s='Contact Us'}</p>
|
||||
<p class="contact-desc col-sm-offset-2 col-sm-8">{l s='Reach out to us for any inquiries or assistance. We\'re here to help make your experience with us exceptional.'}</p>
|
||||
</div>
|
||||
<div class="row margin-top-50">
|
||||
{if (isset($gblHtlAddress) && $gblHtlAddress) && (isset($gblHtlPhone) && $gblHtlPhone) && (isset($gblHtlEmail) && $gblHtlEmail)}
|
||||
<div class="col-sm-6">
|
||||
<div class="htl-global-address-div col-md-8 col-sm-12">
|
||||
{if isset($gblHtlPhone) && $gblHtlPhone }
|
||||
<div>
|
||||
<p class="global-address-header">{l s='Main Branch'}</p>
|
||||
<p class="global-address-value">
|
||||
{$gblHtlAddress}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($gblHtlPhone) && $gblHtlPhone}
|
||||
<div>
|
||||
<p class="global-address-header">{l s='Phone'}</p>
|
||||
<p class="global-address-value">
|
||||
{$gblHtlPhone}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($gblHtlEmail) && $gblHtlEmail}
|
||||
<div>
|
||||
<p class="global-address-header">{l s='Mail Us'}</p>
|
||||
<p class="global-address-value">
|
||||
{$gblHtlEmail}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{block name='contact_content'}
|
||||
{block name='contact_success_message'}
|
||||
{if isset($smarty.get.confirm)}
|
||||
<p class="alert alert-success">{l s='Your message has been successfully sent to our team.'}</p>
|
||||
{/if}
|
||||
<div class="col-sm-6 {if !(isset($gblHtlAddress) && $gblHtlAddress) && !(isset($gblHtlPhone) && $gblHtlPhone) && !(isset($gblHtlEmail) && $gblHtlEmail)} col-sm-offset-3 {/if}">
|
||||
<form action="{$link->getPageLink('contact')}" method="post" class="contact-form-box" enctype="multipart/form-data">
|
||||
{if isset($customerThread.id_contact) && $customerThread.id_contact && $contacts|count}
|
||||
{assign var=flag value=true}
|
||||
{foreach from=$contacts item=contact}
|
||||
{if $contact.id_contact == $customerThread.id_contact}
|
||||
<input type="text" class="form-control" id="contact_name" name="contact_name" value="{$contact.name|escape:'html':'UTF-8'}" readonly="readonly" />
|
||||
<input type="hidden" name="id_contact" value="{$contact.id_contact|intval}" />
|
||||
{$flag=false}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $flag && isset($contacts.0.id_contact)}
|
||||
<input type="text" class="form-control" id="contact_name" name="contact_name" value="{$contacts.0.name|escape:'html':'UTF-8'}" readonly="readonly" />
|
||||
<input type="hidden" name="id_contact" value="{$contacts.0.id_contact|intval}" />
|
||||
{/if}
|
||||
{else}
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="message" class="control-label">
|
||||
{l s='Subject'}
|
||||
</label>
|
||||
<div class="dropdown">
|
||||
<button class="form-control contact_type_input" type="button" data-toggle="dropdown">
|
||||
<span id="contact_type" class="pull-left">{l s='Choose'}</span>
|
||||
<input type="hidden" id="id_contact" name="id_contact" value="0">
|
||||
<span class="arrow_span">
|
||||
<i class="icon icon-angle-down"></i>
|
||||
</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu contact_type_ul">
|
||||
{foreach from=$contacts item=contact}
|
||||
<li value="{$contact.id_contact|intval}"{if isset($smarty.request.id_contact) && $smarty.request.id_contact == $contact.id_contact} selected="selected"{/if}>{$contact.name|escape:'html':'UTF-8'}
|
||||
</li>
|
||||
{/foreach}
|
||||
{/block}
|
||||
{block name='contact_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
<div class="margin-top-50 htl-contact-page">
|
||||
{block name='contact_page_heading'}
|
||||
<div class="row">
|
||||
<p class="contact-header col-sm-offset-2 col-sm-8">{l s='Contact Us'}</p>
|
||||
<p class="contact-desc col-sm-offset-2 col-sm-8">{l s='Reach out to us for any inquiries or assistance. We\'re here to help make your experience with us exceptional.'}</p>
|
||||
</div>
|
||||
{/block}
|
||||
<div class="row margin-top-50">
|
||||
{block name='global_hotel_information'}
|
||||
{if (isset($gblHtlAddress) && $gblHtlAddress) && (isset($gblHtlPhone) && $gblHtlPhone) && (isset($gblHtlEmail) && $gblHtlEmail)}
|
||||
<div class="col-sm-6">
|
||||
<div class="htl-global-address-div col-md-8 col-sm-12">
|
||||
{if isset($gblHtlPhone) && $gblHtlPhone }
|
||||
<div>
|
||||
<p class="global-address-header">{l s='Main Branch'}</p>
|
||||
<p class="global-address-value">
|
||||
{$gblHtlAddress}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($gblHtlPhone) && $gblHtlPhone}
|
||||
<div>
|
||||
<p class="global-address-header">{l s='Phone'}</p>
|
||||
<p class="global-address-value">
|
||||
{$gblHtlPhone}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($gblHtlEmail) && $gblHtlEmail}
|
||||
<div>
|
||||
<p class="global-address-header">{l s='Mail Us'}</p>
|
||||
<p class="global-address-value">
|
||||
{$gblHtlEmail}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='contact_form'}
|
||||
<div class="col-sm-6 {if !(isset($gblHtlAddress) && $gblHtlAddress) && !(isset($gblHtlPhone) && $gblHtlPhone) && !(isset($gblHtlEmail) && $gblHtlEmail)} col-sm-offset-3 {/if}">
|
||||
<form action="{$link->getPageLink('contact')}" method="post" class="contact-form-box" enctype="multipart/form-data">
|
||||
{if isset($customerThread.id_contact) && $customerThread.id_contact && $contacts|count}
|
||||
{assign var=flag value=true}
|
||||
{foreach from=$contacts item=contact}
|
||||
{if $contact.id_contact == $customerThread.id_contact}
|
||||
<input type="text" class="form-control" id="contact_name" name="contact_name" value="{$contact.name|escape:'html':'UTF-8'}" readonly="readonly" />
|
||||
<input type="hidden" name="id_contact" value="{$contact.id_contact|intval}" />
|
||||
{$flag=false}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $flag && isset($contacts.0.id_contact)}
|
||||
<input type="text" class="form-control" id="contact_name" name="contact_name" value="{$contacts.0.name|escape:'html':'UTF-8'}" readonly="readonly" />
|
||||
<input type="hidden" name="id_contact" value="{$contacts.0.id_contact|intval}" />
|
||||
{/if}
|
||||
{else}
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="message" class="control-label">
|
||||
{l s='Subject'}
|
||||
</label>
|
||||
<div class="dropdown">
|
||||
<button class="form-control contact_type_input" type="button" data-toggle="dropdown">
|
||||
<span id="contact_type" class="pull-left">{l s='Choose'}</span>
|
||||
<input type="hidden" id="id_contact" name="id_contact" value="0">
|
||||
<span class="arrow_span">
|
||||
<i class="icon icon-angle-down"></i>
|
||||
</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu contact_type_ul">
|
||||
{foreach from=$contacts item=contact}
|
||||
<li value="{$contact.id_contact|intval}"{if isset($smarty.request.id_contact) && $smarty.request.id_contact == $contact.id_contact} selected="selected"{/if}>{$contact.name|escape:'html':'UTF-8'}
|
||||
</li>
|
||||
{/foreach}
|
||||
|
||||
{if isset($all_hotels_info) && $all_hotels_info}
|
||||
{foreach from=$all_hotels_info key=htl_k item=htl_v}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
{if isset($all_hotels_info) && $all_hotels_info}
|
||||
{foreach from=$all_hotels_info key=htl_k item=htl_v}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="price" class="control-label">
|
||||
{l s='Email'}
|
||||
</label>
|
||||
{if isset($customerThread.email)}
|
||||
<input class="form-control contact_input" type="email" id="email" name="from" value="{$customerThread.email|escape:'html':'UTF-8'}" readonly="readonly" />
|
||||
{else}
|
||||
<input class="form-control contact_input validate" type="email" id="email" name="from" data-validate="isEmail" value="{$email|escape:'html':'UTF-8'}" />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="price" class="control-label">
|
||||
{l s='Email'}
|
||||
</label>
|
||||
{if isset($customerThread.email)}
|
||||
<input class="form-control contact_input" type="email" id="email" name="from" value="{$customerThread.email|escape:'html':'UTF-8'}" readonly="readonly" />
|
||||
{else}
|
||||
<input class="form-control contact_input validate" type="email" id="email" name="from" data-validate="isEmail" value="{$email|escape:'html':'UTF-8'}" />
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="message" class="control-label">
|
||||
{l s='Message/Query'}
|
||||
</label>
|
||||
<textarea class="form-control contact_textarea" id="message" name="message">{if isset($message)}{$message|escape:'html':'UTF-8'|stripslashes}{/if}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
{if $fileupload == 1}
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="fileUpload" class="control-label">
|
||||
{l s='Attach File'}
|
||||
</label>
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="{if isset($max_upload_size) && $max_upload_size}{$max_upload_size|intval}{else}2000000{/if}" />
|
||||
<input type="file" name="fileUpload" id="fileUpload" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="message" class="control-label">
|
||||
{l s='Message/Query'}
|
||||
</label>
|
||||
<textarea class="form-control contact_textarea" id="message" name="message">{if isset($message)}{$message|escape:'html':'UTF-8'|stripslashes}{/if}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
{if $fileupload == 1}
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12">
|
||||
<label for="fileUpload" class="control-label">
|
||||
{l s='Attach File'}
|
||||
</label>
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="{if isset($max_upload_size) && $max_upload_size}{$max_upload_size|intval}{else}2000000{/if}" />
|
||||
<input type="file" name="fileUpload" id="fileUpload" class="form-control" />
|
||||
{block name='hook_display_gdpr_consent'}
|
||||
{hook h='displayGDPRConsent' moduleName='contactform'}
|
||||
{/block}
|
||||
{block name='hook_display_contact_form_fields_after'}
|
||||
{hook h='displayContactFormFieldsAfter'}
|
||||
{/block}
|
||||
<div class="form-group">
|
||||
<input type="text" name="url" value="" class="hidden" />
|
||||
<input type="hidden" name="contactKey" value="{$contactKey}" />
|
||||
<button class="btn button button-medium contact_btn" type="submit" name="submitMessage" id="submitMessage" ><span>{l s='Send Message'}</span></button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{hook h='displayGDPRConsent' moduleName='contactform'}
|
||||
{hook h='displayContactFormFieldsAfter'}
|
||||
<div class="form-group">
|
||||
<input type="text" name="url" value="" class="hidden" />
|
||||
<input type="hidden" name="contactKey" value="{$contactKey}" />
|
||||
<button class="btn button button-medium contact_btn" type="submit" name="submitMessage" id="submitMessage" ><span>{l s='Send Message'}</span></button>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
{if isset($hotelsInfo) && $hotelsInfo}
|
||||
{block name='contact_hotel_block'}
|
||||
<div class="row hotels-container">
|
||||
<div class="col-sm-12 hotel-header">
|
||||
<span>{l s='Our Hotels'}</span>
|
||||
</div>
|
||||
{foreach $hotelsInfo as $hotel}
|
||||
<div class="col-sm-6 margin-bottom-50">
|
||||
<div class="hotel-city-container">
|
||||
<span class="htl-map-icon"></span><span>{$hotel['city']}</span>
|
||||
</div>
|
||||
<div class="hotel-address-container">
|
||||
<div class="col-xs-4">
|
||||
<img class="htl-img" style="width:100%" src="{$hotel['image_url']}">
|
||||
</div>
|
||||
<div class="col-xs-8">
|
||||
<p class="hotel-name"><span>{$hotel['hotel_name']}</span></p>
|
||||
<p class="hotel-branch-info-value">{$hotel['address']}, {$hotel['city']}, {if {$hotel['state_name']}}{$hotel['state_name']},{/if} {$hotel['country_name']}, {$hotel['postcode']}</p>
|
||||
{if ($hotel['latitude'] != 0 || $hotel['longitude'] != 0) && $viewOnMap}
|
||||
<p class="hotel-branch-info-value">
|
||||
<a class="btn htl-map-direction-btn" href="http://maps.google.com/maps?daddr=({$hotel['latitude']},{$hotel['longitude']})" target="_blank">
|
||||
<span class="">{l s='View on map'}</span>
|
||||
</a>
|
||||
</p>
|
||||
{/if}
|
||||
<p class="hotel-branch-info-value">
|
||||
<span class="htl-address-icon htl-phone-icon"></span>{$hotel['phone']}
|
||||
</p>
|
||||
<p class="hotel-branch-info-value">
|
||||
<span class="htl-address-icon htl-email-icon"></span>{$hotel['email']}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{if isset($hotelLocationArray)}
|
||||
{block name='hotel_locations_google_map_wrapper'}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12" id="googleMapWrapper">
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
{if isset($hotelsInfo) && $hotelsInfo}
|
||||
<div class="row hotels-container">
|
||||
<div class="col-sm-12 hotel-header">
|
||||
<span>{l s='Our Hotels'}</span>
|
||||
</div>
|
||||
{foreach $hotelsInfo as $hotel}
|
||||
<div class="col-sm-6 margin-bottom-50">
|
||||
<div class="hotel-city-container">
|
||||
<span class="htl-map-icon"></span><span>{$hotel['city']}</span>
|
||||
</div>
|
||||
<div class="hotel-address-container">
|
||||
<div class="col-xs-4">
|
||||
<img class="htl-img" style="width:100%" src="{$hotel['image_url']}">
|
||||
</div>
|
||||
<div class="col-xs-8">
|
||||
<p class="hotel-name"><span>{$hotel['hotel_name']}</span></p>
|
||||
<p class="hotel-branch-info-value">{$hotel['address']}, {$hotel['city']}, {if {$hotel['state_name']}}{$hotel['state_name']},{/if} {$hotel['country_name']}, {$hotel['postcode']}</p>
|
||||
{if ($hotel['latitude'] != 0 || $hotel['longitude'] != 0) && $viewOnMap}
|
||||
<p class="hotel-branch-info-value">
|
||||
<a class="btn htl-map-direction-btn" href="http://maps.google.com/maps?daddr=({$hotel['latitude']},{$hotel['longitude']})" target="_blank">
|
||||
<span class="">{l s='View on map'}</span>
|
||||
</a>
|
||||
</p>
|
||||
{/if}
|
||||
<p class="hotel-branch-info-value">
|
||||
<span class="htl-address-icon htl-phone-icon"></span>{$hotel['phone']}
|
||||
</p>
|
||||
<p class="hotel-branch-info-value">
|
||||
<span class="htl-address-icon htl-email-icon"></span>{$hotel['email']}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($hotelLocationArray)}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12" id="googleMapWrapper">
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{strip}
|
||||
{addJsDefL name='contact_fileDefaultHtml'}{l s='No file selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name='contact_fileButtonHtml'}{l s='Choose File' js=1}{/addJsDefL}
|
||||
{addJsDefL name='contact_map_get_dirs'}{l s='Get Directions' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{if isset($hotelLocationArray)}
|
||||
{block name='contact_js_vars'}
|
||||
{strip}
|
||||
{addJsDef hotelLocationArray = $hotelLocationArray}
|
||||
{addJsDefL name='contact_fileDefaultHtml'}{l s='No file selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name='contact_fileButtonHtml'}{l s='Choose File' js=1}{/addJsDefL}
|
||||
{addJsDefL name='contact_map_get_dirs'}{l s='Get Directions' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{else}
|
||||
{strip}
|
||||
{addJsDef hotelLocationArray = 0}
|
||||
{/strip}
|
||||
{/if}
|
||||
{if isset($hotelLocationArray)}
|
||||
{strip}
|
||||
{addJsDef hotelLocationArray = $hotelLocationArray}
|
||||
{/strip}
|
||||
{else}
|
||||
{strip}
|
||||
{addJsDef hotelLocationArray = 0}
|
||||
{/strip}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -22,91 +22,110 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{capture name=path}<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span><span class="navigation_page">{l s='Vouchers'}</span>{/capture}
|
||||
|
||||
<h1 class="page-heading">
|
||||
{l s='Vouchers'}
|
||||
</h1>
|
||||
{block name='discount_content'}
|
||||
{capture name=path}<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span><span class="navigation_page">{l s='Vouchers'}</span>{/capture}
|
||||
|
||||
{if isset($cart_rules) && $nb_cart_rules}
|
||||
<table class="discount table table-bordered footab">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sort-ignore="true" class="discount_code first_item">{l s='Code'}</th>
|
||||
<th data-sort-ignore="true" class="discount_description item">{l s='Name'}</th>
|
||||
<th class="discount_quantity item">{l s='Quantity'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone,tablet" class="discount_value item">{l s='Value'}</th>
|
||||
<th data-hide="phone,tablet" class="discount_minimum item">{l s='Minimum'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone,tablet" class="discount_cumulative item">{l s='Cumulative'}</th>
|
||||
<th data-hide="phone" class="discount_expiration_date last_item">{l s='Expiration date'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$cart_rules item=discountDetail name=myLoop}
|
||||
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
|
||||
<td class="discount_code">{$discountDetail.code}</td>
|
||||
<td class="discount_description">{$discountDetail.name}</td>
|
||||
<td data-value="{$discountDetail.quantity_for_user}" class="discount_quantity">{$discountDetail.quantity_for_user}</td>
|
||||
<td class="discount_value">
|
||||
{if $discountDetail.reduction_percent > 0}
|
||||
{$discountDetail.reduction_percent|escape:'html':'UTF-8'}%
|
||||
{/if}
|
||||
{if $discountDetail.reduction_amount > 0}
|
||||
{if $discountDetail.reduction_percent > 0} + {/if}
|
||||
{displayPrice price=$discountDetail.reduction_amount currency=$discountDetail.reduction_currency} ({if $discountDetail.reduction_tax == 1}{l s='Tax included'}{else}{l s='Tax excluded'}{/if})
|
||||
{/if}
|
||||
{if $discountDetail.free_shipping}
|
||||
{if $discountDetail.reduction_percent > 0 || $discountDetail.reduction_amount > 0} + {/if}
|
||||
{l s='Free shipping'}
|
||||
{/if}
|
||||
{if $discountDetail.gift_product > 0}
|
||||
{if $discountDetail.reduction_percent > 0 || $discountDetail.reduction_amount > 0} + {/if}
|
||||
<a href="{$discountDetail.gift_product_link|escape:'html':'UTF-8'}">
|
||||
{$discountDetail.gift_product_name|escape:'html':'UTF-8'}
|
||||
{if isset($discountDetail.gift_product_attributes) && $discountDetail.gift_product_attributes|count_characters}
|
||||
({$discountDetail.gift_product_attributes|escape:'html':'UTF-8'})
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="discount_minimum" data-value="{if $discountDetail.minimal == 0}0{else}{$discountDetail.minimal}{/if}">
|
||||
{if $discountDetail.minimal == 0}
|
||||
{l s='None'}
|
||||
{else}
|
||||
{displayPrice price=$discountDetail.minimal currency=$discountDetail.reduction_currency} ({if $discountDetail.minimum_amount_tax == 1}{l s='Tax included'}{else}{l s='Tax excluded'}{/if})
|
||||
{/if}
|
||||
</td>
|
||||
<td class="discount_cumulative">
|
||||
{if $discountDetail.cumulable == 1}
|
||||
<i class="icon-ok icon"></i> {l s='Yes'}
|
||||
{else}
|
||||
<i class="icon-remove icon"></i> {l s='No'}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="discount_expiration_date" data-value="{$discountDetail.date_to|regex_replace:"/[\-\:\ ]/":""}">
|
||||
{dateFormat date=$discountDetail.date_to}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='You do not have any vouchers.'}</p>
|
||||
{/if}
|
||||
{block name='discount_page_heading'}
|
||||
<h1 class="page-heading">
|
||||
{l s='Vouchers'}
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Back to My account'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Home'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{block name='discount_page_content'}
|
||||
{if isset($cart_rules) && $nb_cart_rules}
|
||||
{block name='discounts_detail_table'}
|
||||
<table class="discount table table-bordered footab">
|
||||
{block name='discounts_detail_table_head'}
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sort-ignore="true" class="discount_code first_item">{l s='Code'}</th>
|
||||
<th data-sort-ignore="true" class="discount_description item">{l s='Name'}</th>
|
||||
<th class="discount_quantity item">{l s='Quantity'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone,tablet" class="discount_value item">{l s='Value'}</th>
|
||||
<th data-hide="phone,tablet" class="discount_minimum item">{l s='Minimum'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone,tablet" class="discount_cumulative item">{l s='Cumulative'}</th>
|
||||
<th data-hide="phone" class="discount_expiration_date last_item">{l s='Expiration date'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{/block}
|
||||
{block name='discounts_detail_table_body'}
|
||||
<tbody>
|
||||
{foreach from=$cart_rules item=discountDetail name=myLoop}
|
||||
{block name='discounts_detail_table_row'}
|
||||
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
|
||||
<td class="discount_code">{$discountDetail.code}</td>
|
||||
<td class="discount_description">{$discountDetail.name}</td>
|
||||
<td data-value="{$discountDetail.quantity_for_user}" class="discount_quantity">{$discountDetail.quantity_for_user}</td>
|
||||
<td class="discount_value">
|
||||
{if $discountDetail.reduction_percent > 0}
|
||||
{$discountDetail.reduction_percent|escape:'html':'UTF-8'}%
|
||||
{/if}
|
||||
{if $discountDetail.reduction_amount > 0}
|
||||
{if $discountDetail.reduction_percent > 0} + {/if}
|
||||
{displayPrice price=$discountDetail.reduction_amount currency=$discountDetail.reduction_currency} ({if $discountDetail.reduction_tax == 1}{l s='Tax included'}{else}{l s='Tax excluded'}{/if})
|
||||
{/if}
|
||||
{if $discountDetail.free_shipping}
|
||||
{if $discountDetail.reduction_percent > 0 || $discountDetail.reduction_amount > 0} + {/if}
|
||||
{l s='Free shipping'}
|
||||
{/if}
|
||||
{if $discountDetail.gift_product > 0}
|
||||
{if $discountDetail.reduction_percent > 0 || $discountDetail.reduction_amount > 0} + {/if}
|
||||
<a href="{$discountDetail.gift_product_link|escape:'html':'UTF-8'}">
|
||||
{$discountDetail.gift_product_name|escape:'html':'UTF-8'}
|
||||
{if isset($discountDetail.gift_product_attributes) && $discountDetail.gift_product_attributes|count_characters}
|
||||
({$discountDetail.gift_product_attributes|escape:'html':'UTF-8'})
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="discount_minimum" data-value="{if $discountDetail.minimal == 0}0{else}{$discountDetail.minimal}{/if}">
|
||||
{if $discountDetail.minimal == 0}
|
||||
{l s='None'}
|
||||
{else}
|
||||
{displayPrice price=$discountDetail.minimal currency=$discountDetail.reduction_currency} ({if $discountDetail.minimum_amount_tax == 1}{l s='Tax included'}{else}{l s='Tax excluded'}{/if})
|
||||
{/if}
|
||||
</td>
|
||||
<td class="discount_cumulative">
|
||||
{if $discountDetail.cumulable == 1}
|
||||
<i class="icon-ok icon"></i> {l s='Yes'}
|
||||
{else}
|
||||
<i class="icon-remove icon"></i> {l s='No'}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="discount_expiration_date" data-value="{$discountDetail.date_to|regex_replace:"/[\-\:\ ]/":""}">
|
||||
{dateFormat date=$discountDetail.date_to}
|
||||
</td>
|
||||
</tr>
|
||||
{/block}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/block}
|
||||
</table>
|
||||
{/block}
|
||||
{else}
|
||||
{block name='discount_page_error'}
|
||||
<p class="alert alert-warning">{l s='You do not have any vouchers.'}</p>
|
||||
{/block}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name='discount_page_footer_links'}
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Back to My account'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Home'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
@@ -23,16 +23,18 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if isset($errors) && $errors}
|
||||
<div class="alert alert-danger">
|
||||
<p>{if $errors|@count > 1}{l s='There are %d errors' sprintf=$errors|@count}{else}{l s='There is %d error' sprintf=$errors|@count}{/if}</p>
|
||||
<ol>
|
||||
{foreach from=$errors key=k item=error}
|
||||
<li>{$error}</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{if isset($smarty.server.HTTP_REFERER) && !strstr($request_uri, 'authentication') && preg_replace('#^https?://[^/]+/#', '/', $smarty.server.HTTP_REFERER) != $request_uri}
|
||||
<p class="lnk"><a class="alert-link" href="{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}" title="{l s='Back'}">« {l s='Back'}</a></p>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{block name='errors_content'}
|
||||
{if isset($errors) && $errors}
|
||||
<div class="alert alert-danger">
|
||||
<p>{if $errors|@count > 1}{l s='There are %d errors' sprintf=$errors|@count}{else}{l s='There is %d error' sprintf=$errors|@count}{/if}</p>
|
||||
<ol>
|
||||
{foreach from=$errors key=k item=error}
|
||||
<li>{$error}</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{if isset($smarty.server.HTTP_REFERER) && !strstr($request_uri, 'authentication') && preg_replace('#^https?://[^/]+/#', '/', $smarty.server.HTTP_REFERER) != $request_uri}
|
||||
<p class="lnk"><a class="alert-link" href="{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}" title="{l s='Back'}">« {l s='Back'}</a></p>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -28,21 +28,31 @@
|
||||
<div id="right_column" class="col-xs-12 col-sm-{$right_column_size|intval} column">{$HOOK_RIGHT_COLUMN}</div>
|
||||
{/if}
|
||||
</div><!-- .row -->
|
||||
{hook h='displayColumnsBottom'}
|
||||
{block name='display_columns_bottom'}
|
||||
{hook h='displayColumnsBottom'}
|
||||
{/block}
|
||||
</div><!-- #columns -->
|
||||
</div><!-- .columns-container -->
|
||||
{if isset($HOOK_FOOTER)}
|
||||
{hook h='displayFooterBefore'}
|
||||
<!-- Footer -->
|
||||
<div class="footer-container">
|
||||
<footer id="footer" class="container">
|
||||
<div class="row margin-btm-50">{$HOOK_FOOTER}</div>
|
||||
</footer>
|
||||
{hook h="displayAfterDefautlFooterHook"}
|
||||
</div><!-- #footer -->
|
||||
{/if}
|
||||
{block name='hook_footer'}
|
||||
{if isset($HOOK_FOOTER)}
|
||||
{block name='display_footer_before'}
|
||||
{hook h='displayFooterBefore'}
|
||||
{/block}
|
||||
<!-- Footer -->
|
||||
<div class="footer-container">
|
||||
<footer id="footer" class="container">
|
||||
<div class="row margin-btm-50">{$HOOK_FOOTER}</div>
|
||||
</footer>
|
||||
{block name='display_after_defautl_footer_hook'}
|
||||
{hook h="displayAfterDefautlFooterHook"}
|
||||
{/block}
|
||||
</div><!-- #footer -->
|
||||
{/if}
|
||||
{/block}
|
||||
</div><!-- #page -->
|
||||
{/if}
|
||||
{include file="$tpl_dir./global.tpl"}
|
||||
{block name='global_container'}
|
||||
{include file="$tpl_dir./global.tpl"}
|
||||
{/block}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -22,62 +22,65 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{strip}
|
||||
{addJsDef isMobile=$mobile_device}
|
||||
{addJsDef baseDir=$content_dir}
|
||||
{addJsDef baseUri=$base_uri}
|
||||
{addJsDef static_token=$static_token}
|
||||
{addJsDef token=$token|htmlentities:$smarty.const.ENT_QUOTES}
|
||||
{addJsDef priceDisplayPrecision=$priceDisplayPrecision*$currency->decimals}
|
||||
{addJsDef priceDisplayMethod=$priceDisplay}
|
||||
{addJsDef roundMode=$roundMode}
|
||||
{addJsDef currency=$currency}
|
||||
{addJsDef currencyRate=$currencyRate|floatval}
|
||||
{addJsDef currencySign=$currency->sign|html_entity_decode:2:"UTF-8"}
|
||||
{addJsDef currencyFormat=$currency->format|intval}
|
||||
{addJsDef currencyBlank=$currency->blank|intval}
|
||||
{addJsDef isLogged=$is_logged|intval}
|
||||
{addJsDef isGuest=$is_guest|intval}
|
||||
{addJsDef page_name=$page_name|escape:'html':'UTF-8'}
|
||||
{addJsDef contentOnly=$content_only|boolval}
|
||||
{if isset($cookie->id_lang)}
|
||||
{addJsDef id_lang=$cookie->id_lang|intval}
|
||||
{/if}
|
||||
{addJsDef lang_iso=$lang_iso}
|
||||
{addJsDef language_is_rtl=$language_is_rtl|boolval}
|
||||
{addJsDefL name=FancyboxI18nClose}{l s='Close'}{/addJsDefL}
|
||||
{addJsDefL name=FancyboxI18nNext}{l s='Next'}{/addJsDefL}
|
||||
{addJsDefL name=FancyboxI18nPrev}{l s='Previous'}{/addJsDefL}
|
||||
{addJsDefL name=RangePickerCheckin}{l s='Check-in'}{/addJsDefL}
|
||||
{addJsDefL name=RangePickerCheckout}{l s='Check-out'}{/addJsDefL}
|
||||
{addJsDef usingSecureMode=Tools::usingSecureMode()|boolval}
|
||||
{addJsDef ajaxsearch=Configuration::get('PS_SEARCH_AJAX')|boolval}
|
||||
{addJsDef instantsearch=Configuration::get('PS_INSTANT_SEARCH')|boolval}
|
||||
{addJsDef quickView=$quick_view|boolval}
|
||||
{addJsDef displayList=Configuration::get('PS_GRID_PRODUCT')|boolval}
|
||||
{addJsDef highDPI=Configuration::get('PS_HIGHT_DPI')|boolval}
|
||||
{* occupancy text *}
|
||||
{addJsDef is_occupancy_wise_search=$is_occupancy_wise_search|boolval}
|
||||
{addJsDef occupancy_required_for_booking=$occupancy_required_for_booking|boolval}
|
||||
{addJsDef max_child_age=$max_child_age}
|
||||
{addJsDef max_child_in_room=$max_child_in_room}
|
||||
|
||||
{addJsDefL name='max_occupancy_reached_txt'}{l s='Maximum room occupancy reached' js=1}{/addJsDefL}
|
||||
{addJsDefL name='max_adults_txt'}{l s='Maximum adult occupancy reached' js=1}{/addJsDefL}
|
||||
{addJsDefL name='max_children_txt'}{l s='Maximum children occupancy reached' js=1}{/addJsDefL}
|
||||
{addJsDefL name='no_children_allowed_txt'}{l s='Only adults can be accommodated' js=1}{/addJsDefL}
|
||||
{addJsDefL name='select_occupancy_txt'}{l s='Select Occupancy' js=1}{/addJsDefL}
|
||||
{addJsDefL name='select_age_txt'}{l s='Select age' js=1}{/addJsDefL}
|
||||
{addJsDefL name='under_1_age'}{l s='Under 1' js=1}{/addJsDefL}
|
||||
{addJsDefL name='room_txt'}{l s='Room' js=1}{/addJsDefL}
|
||||
{addJsDefL name='rooms_txt'}{l s='Rooms' js=1}{/addJsDefL}
|
||||
{addJsDefL name='remove_txt'}{l s='Remove' js=1}{/addJsDefL}
|
||||
{addJsDefL name='adult_txt'}{l s='Adult' js=1}{/addJsDefL}
|
||||
{addJsDefL name='adults_txt'}{l s='Adults' js=1}{/addJsDefL}
|
||||
{addJsDefL name='child_txt'}{l s='Child' js=1}{/addJsDefL}
|
||||
{addJsDefL name='children_txt'}{l s='Children' js=1}{/addJsDefL}
|
||||
{addJsDefL name='below_txt'}{l s='Below' js=1}{/addJsDefL}
|
||||
{addJsDefL name='years_txt'}{l s='years' js=1}{/addJsDefL}
|
||||
{addJsDefL name='all_children_txt'}{l s='All Children' js=1}{/addJsDefL}
|
||||
{addJsDefL name='invalid_occupancy_txt'}{l s='Invalid occupancy(adults/children) found.' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{block name='global_js_vars'}
|
||||
{strip}
|
||||
{addJsDef isMobile=$mobile_device}
|
||||
{addJsDef baseDir=$content_dir}
|
||||
{addJsDef baseUri=$base_uri}
|
||||
{addJsDef static_token=$static_token}
|
||||
{addJsDef token=$token|htmlentities:$smarty.const.ENT_QUOTES}
|
||||
{addJsDef priceDisplayPrecision=$priceDisplayPrecision*$currency->decimals}
|
||||
{addJsDef priceDisplayMethod=$priceDisplay}
|
||||
{addJsDef roundMode=$roundMode}
|
||||
{addJsDef currency=$currency}
|
||||
{addJsDef currencyRate=$currencyRate|floatval}
|
||||
{addJsDef currencySign=$currency->sign|html_entity_decode:2:"UTF-8"}
|
||||
{addJsDef currencyFormat=$currency->format|intval}
|
||||
{addJsDef currencyBlank=$currency->blank|intval}
|
||||
{addJsDef isLogged=$is_logged|intval}
|
||||
{addJsDef isGuest=$is_guest|intval}
|
||||
{addJsDef page_name=$page_name|escape:'html':'UTF-8'}
|
||||
{addJsDef contentOnly=$content_only|boolval}
|
||||
{if isset($cookie->id_lang)}
|
||||
{addJsDef id_lang=$cookie->id_lang|intval}
|
||||
{/if}
|
||||
{addJsDef lang_iso=$lang_iso}
|
||||
{addJsDef language_is_rtl=$language_is_rtl|boolval}
|
||||
{addJsDefL name=FancyboxI18nClose}{l s='Close'}{/addJsDefL}
|
||||
{addJsDefL name=FancyboxI18nNext}{l s='Next'}{/addJsDefL}
|
||||
{addJsDefL name=FancyboxI18nPrev}{l s='Previous'}{/addJsDefL}
|
||||
{addJsDefL name=RangePickerCheckin}{l s='Check-in'}{/addJsDefL}
|
||||
{addJsDefL name=RangePickerCheckout}{l s='Check-out'}{/addJsDefL}
|
||||
{addJsDef usingSecureMode=Tools::usingSecureMode()|boolval}
|
||||
{addJsDef ajaxsearch=Configuration::get('PS_SEARCH_AJAX')|boolval}
|
||||
{addJsDef instantsearch=Configuration::get('PS_INSTANT_SEARCH')|boolval}
|
||||
{addJsDef quickView=$quick_view|boolval}
|
||||
{addJsDef displayList=Configuration::get('PS_GRID_PRODUCT')|boolval}
|
||||
{addJsDef highDPI=Configuration::get('PS_HIGHT_DPI')|boolval}
|
||||
{* occupancy text *}
|
||||
{addJsDef is_occupancy_wise_search=$is_occupancy_wise_search|boolval}
|
||||
{addJsDef occupancy_required_for_booking=$occupancy_required_for_booking|boolval}
|
||||
{addJsDef max_child_age=$max_child_age}
|
||||
{addJsDef max_child_in_room=$max_child_in_room}
|
||||
|
||||
{addJsDefL name='max_occupancy_reached_txt'}{l s='Maximum room occupancy reached' js=1}{/addJsDefL}
|
||||
{addJsDefL name='max_adults_txt'}{l s='Maximum adult occupancy reached' js=1}{/addJsDefL}
|
||||
{addJsDefL name='max_children_txt'}{l s='Maximum children occupancy reached' js=1}{/addJsDefL}
|
||||
{addJsDefL name='no_children_allowed_txt'}{l s='Only adults can be accommodated' js=1}{/addJsDefL}
|
||||
{addJsDefL name='select_occupancy_txt'}{l s='Select Occupancy' js=1}{/addJsDefL}
|
||||
{addJsDefL name='select_age_txt'}{l s='Select age' js=1}{/addJsDefL}
|
||||
{addJsDefL name='under_1_age'}{l s='Under 1' js=1}{/addJsDefL}
|
||||
{addJsDefL name='room_txt'}{l s='Room' js=1}{/addJsDefL}
|
||||
{addJsDefL name='rooms_txt'}{l s='Rooms' js=1}{/addJsDefL}
|
||||
{addJsDefL name='remove_txt'}{l s='Remove' js=1}{/addJsDefL}
|
||||
{addJsDefL name='adult_txt'}{l s='Adult' js=1}{/addJsDefL}
|
||||
{addJsDefL name='adults_txt'}{l s='Adults' js=1}{/addJsDefL}
|
||||
{addJsDefL name='child_txt'}{l s='Child' js=1}{/addJsDefL}
|
||||
{addJsDefL name='children_txt'}{l s='Children' js=1}{/addJsDefL}
|
||||
{addJsDefL name='below_txt'}{l s='Below' js=1}{/addJsDefL}
|
||||
{addJsDefL name='years_txt'}{l s='years' js=1}{/addJsDefL}
|
||||
{addJsDefL name='all_children_txt'}{l s='All Children' js=1}{/addJsDefL}
|
||||
{addJsDefL name='invalid_occupancy_txt'}{l s='Invalid occupancy(adults/children) found.' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{/block}
|
||||
|
||||
@@ -23,119 +23,133 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}{l s='Guest Tracking'}{/capture}
|
||||
{block name='guest_tracking_content'}
|
||||
{capture name=path}{l s='Guest Tracking'}{/capture}
|
||||
|
||||
<h1 class="page-heading">{l s='Guest Tracking'}</h1>
|
||||
<h1 class="page-heading">{l s='Guest Tracking'}</h1>
|
||||
|
||||
{if isset($order_collection)}
|
||||
{foreach $order_collection as $order}
|
||||
{assign var=order_state value=$order->getCurrentState()}
|
||||
{assign var=invoice value=$order->invoice}
|
||||
{assign var=order_history value=$order->order_history}
|
||||
{assign var=overbooking_order_states value=$order->overbooking_order_states}
|
||||
{assign var=carrier value=$order->carrier}
|
||||
{assign var=address_invoice value=$order->address_invoice}
|
||||
{assign var=address_delivery value=$order->address_delivery}
|
||||
{assign var=inv_adr_fields value=$order->inv_adr_fields}
|
||||
{assign var=dlv_adr_fields value=$order->dlv_adr_fields}
|
||||
{assign var=invoiceAddressFormatedValues value=$order->invoiceAddressFormatedValues}
|
||||
{assign var=deliveryAddressFormatedValues value=$order->deliveryAddressFormatedValues}
|
||||
{assign var=currency value=$order->currency}
|
||||
{assign var=discounts value=$order->discounts}
|
||||
{assign var=invoiceState value=$order->invoiceState}
|
||||
{assign var=deliveryState value=$order->deliveryState}
|
||||
{assign var=products value=$order->products}
|
||||
{assign var=customizedDatas value=$order->customizedDatas}
|
||||
{assign var=HOOK_ORDERDETAILDISPLAYED value=$order->hook_orderdetaildisplayed}
|
||||
{assign var=total_convenience_fee_ti value=$order->total_convenience_fee_ti}
|
||||
{assign var=total_convenience_fee_te value=$order->total_convenience_fee_te}
|
||||
{assign var=total_demands_price_ti value=$order->total_demands_price_ti}
|
||||
{assign var=total_demands_price_te value=$order->total_demands_price_te}
|
||||
{assign var=any_back_order value=$order->any_back_order}
|
||||
{assign var=shw_bo_msg value=$order->shw_bo_msg}
|
||||
{assign var=back_ord_msg value=$order->back_ord_msg}
|
||||
{assign var=order_has_invoice value=$order->order_has_invoice}
|
||||
{assign var=cart_htl_data value=$order->cart_htl_data}
|
||||
{assign var=customerGuestDetail value=$order->customerGuestDetail}
|
||||
{assign var=obj_hotel_branch_information value=$order->obj_hotel_branch_information}
|
||||
{assign var=hotel_address_info value=$order->hotel_address_info}
|
||||
{assign var=hotel_refund_rules value=$order->hotel_refund_rules}
|
||||
{if isset($order_collection)}
|
||||
{foreach $order_collection as $order}
|
||||
{assign var=order_state value=$order->getCurrentState()}
|
||||
{assign var=invoice value=$order->invoice}
|
||||
{assign var=order_history value=$order->order_history}
|
||||
{assign var=overbooking_order_states value=$order->overbooking_order_states}
|
||||
{assign var=carrier value=$order->carrier}
|
||||
{assign var=address_invoice value=$order->address_invoice}
|
||||
{assign var=address_delivery value=$order->address_delivery}
|
||||
{assign var=inv_adr_fields value=$order->inv_adr_fields}
|
||||
{assign var=dlv_adr_fields value=$order->dlv_adr_fields}
|
||||
{assign var=invoiceAddressFormatedValues value=$order->invoiceAddressFormatedValues}
|
||||
{assign var=deliveryAddressFormatedValues value=$order->deliveryAddressFormatedValues}
|
||||
{assign var=currency value=$order->currency}
|
||||
{assign var=discounts value=$order->discounts}
|
||||
{assign var=invoiceState value=$order->invoiceState}
|
||||
{assign var=deliveryState value=$order->deliveryState}
|
||||
{assign var=products value=$order->products}
|
||||
{assign var=customizedDatas value=$order->customizedDatas}
|
||||
{assign var=HOOK_ORDERDETAILDISPLAYED value=$order->hook_orderdetaildisplayed}
|
||||
{assign var=total_convenience_fee_ti value=$order->total_convenience_fee_ti}
|
||||
{assign var=total_convenience_fee_te value=$order->total_convenience_fee_te}
|
||||
{assign var=total_demands_price_ti value=$order->total_demands_price_ti}
|
||||
{assign var=total_demands_price_te value=$order->total_demands_price_te}
|
||||
{assign var=any_back_order value=$order->any_back_order}
|
||||
{assign var=shw_bo_msg value=$order->shw_bo_msg}
|
||||
{assign var=back_ord_msg value=$order->back_ord_msg}
|
||||
{assign var=order_has_invoice value=$order->order_has_invoice}
|
||||
{assign var=cart_htl_data value=$order->cart_htl_data}
|
||||
{assign var=customerGuestDetail value=$order->customerGuestDetail}
|
||||
{assign var=obj_hotel_branch_information value=$order->obj_hotel_branch_information}
|
||||
{assign var=hotel_address_info value=$order->hotel_address_info}
|
||||
{assign var=hotel_refund_rules value=$order->hotel_refund_rules}
|
||||
|
||||
{if isset($order->total_old)}
|
||||
{assign var=total_old value=$order->total_old}
|
||||
{/if}
|
||||
{if isset($order->followup)}
|
||||
{assign var=followup value=$order->followup}
|
||||
{/if}
|
||||
{if isset($order->total_old)}
|
||||
{assign var=total_old value=$order->total_old}
|
||||
{/if}
|
||||
{if isset($order->followup)}
|
||||
{assign var=followup value=$order->followup}
|
||||
{/if}
|
||||
|
||||
<div id="block-history">
|
||||
<div id="block-order-detail" class="std">
|
||||
{include file="./order-detail.tpl"}
|
||||
{block name='order_detail_container'}
|
||||
<div id="block-history">
|
||||
<div id="block-order-detail" class="std">
|
||||
{include file="./order-detail.tpl"}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/foreach}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{if isset($transformSuccess)}
|
||||
<p class="alert alert-success alert-transformed">{l s='Your guest account has been successfully transformed into a customer account. You can now log in as a registered user. '} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}">{l s='Log in now.'}</a></p>
|
||||
{else}
|
||||
{block name='guest_tracking_transform_account_container'}
|
||||
<div class="card transform-account">
|
||||
<div class="card-header">
|
||||
{l s='For More Advantages'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{block name='guest_tracking_transform_account_form'}
|
||||
<form method="post" action="{$action|escape:'html':'UTF-8'}#guestToCustomer" class="std">
|
||||
{block name='guest_tracking_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
|
||||
<p class="card-subtitle">
|
||||
{l s='Transform your guest account into a customer account and enjoy:'}
|
||||
</p>
|
||||
|
||||
<div class="card-text">
|
||||
<p>{l s='- Personalized and secure access.'}</p>
|
||||
<p>{l s='- Fast and easy checkout'}</p>
|
||||
<p>{l s='- Easier refund process'}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group password">
|
||||
<label>{l s='Set your password:'}</label>
|
||||
<input type="password" name="password" class="form-control" />
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id_order" value="{if isset($order->id)}{$order->id}{else}{if isset($smarty.get.id_order)}{$smarty.get.id_order|escape:'html':'UTF-8'}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|escape:'html':'UTF-8'}{/if}{/if}{/if}" />
|
||||
<input type="hidden" name="order_reference" value="{if isset($smarty.get.order_reference)}{$smarty.get.order_reference|escape:'html':'UTF-8'}{else}{if isset($smarty.post.order_reference)}{$smarty.post.order_reference|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
<input type="hidden" name="email" value="{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{else}{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
|
||||
<button type="submit" name="submitTransformGuestToCustomer" class="button button-medium btn btn-submit">
|
||||
<span>{l s='Send'}</span>
|
||||
</button>
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{if isset($transformSuccess)}
|
||||
<p class="alert alert-success alert-transformed">{l s='Your guest account has been successfully transformed into a customer account. You can now log in as a registered user. '} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}">{l s='Log in now.'}</a></p>
|
||||
{else}
|
||||
<div class="card transform-account">
|
||||
<div class="card-header">
|
||||
{l s='For More Advantages'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="post" action="{$action|escape:'html':'UTF-8'}#guestToCustomer" class="std">
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
|
||||
<p class="card-subtitle">
|
||||
{l s='Transform your guest account into a customer account and enjoy:'}
|
||||
</p>
|
||||
|
||||
<div class="card-text">
|
||||
<p>{l s='- Personalized and secure access.'}</p>
|
||||
<p>{l s='- Fast and easy checkout'}</p>
|
||||
<p>{l s='- Easier refund process'}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group password">
|
||||
<label>{l s='Set your password:'}</label>
|
||||
<input type="password" name="password" class="form-control" />
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id_order" value="{if isset($order->id)}{$order->id}{else}{if isset($smarty.get.id_order)}{$smarty.get.id_order|escape:'html':'UTF-8'}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|escape:'html':'UTF-8'}{/if}{/if}{/if}" />
|
||||
<input type="hidden" name="order_reference" value="{if isset($smarty.get.order_reference)}{$smarty.get.order_reference|escape:'html':'UTF-8'}{else}{if isset($smarty.post.order_reference)}{$smarty.post.order_reference|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
<input type="hidden" name="email" value="{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{else}{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
|
||||
<button type="submit" name="submitTransformGuestToCustomer" class="button button-medium btn btn-submit">
|
||||
<span>{l s='Send'}</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{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>
|
||||
{else}
|
||||
{block name='guest_tracking_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
{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}
|
||||
{block name='guest_tracking_order_detail_form'}
|
||||
<form method="post" action="{$action|escape:'html':'UTF-8'}" class="std" id="guestTracking">
|
||||
<fieldset class="description_box box">
|
||||
<h2 class="page-subheading">{l s='To track your order, please enter the following information:'}</h2>
|
||||
<div class="text form-group">
|
||||
<label>{l s='Order Reference:'} </label>
|
||||
<input class="form-control" type="text" name="order_reference" value="{if isset($smarty.get.id_order)}{$smarty.get.id_order|escape:'html':'UTF-8'}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|escape:'html':'UTF-8'}{/if}{/if}" size="8" />
|
||||
<i>{l s='For example: QIIXJXNUI'}</i>
|
||||
</div>
|
||||
<div class="text form-group">
|
||||
<label>{l s='Email:'}</label>
|
||||
<input class="form-control" type="email" name="email" value="{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{else}{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
<p>
|
||||
<button type="submit" name="submitGuestTracking" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/block}
|
||||
{/if}
|
||||
<form method="post" action="{$action|escape:'html':'UTF-8'}" class="std" id="guestTracking">
|
||||
<fieldset class="description_box box">
|
||||
<h2 class="page-subheading">{l s='To track your order, please enter the following information:'}</h2>
|
||||
<div class="text form-group">
|
||||
<label>{l s='Order Reference:'} </label>
|
||||
<input class="form-control" type="text" name="order_reference" value="{if isset($smarty.get.id_order)}{$smarty.get.id_order|escape:'html':'UTF-8'}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|escape:'html':'UTF-8'}{/if}{/if}" size="8" />
|
||||
<i>{l s='For example: QIIXJXNUI'}</i>
|
||||
</div>
|
||||
<div class="text form-group">
|
||||
<label>{l s='Email:'}</label>
|
||||
<input class="form-control" type="email" name="email" value="{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{else}{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{/if}" />
|
||||
</div>
|
||||
<p>
|
||||
<button type="submit" name="submitGuestTracking" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -62,7 +62,9 @@
|
||||
<script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{$HOOK_HEADER}
|
||||
{block name='hook_header'}
|
||||
{$HOOK_HEADER}
|
||||
{/block}
|
||||
<!-- <link rel="stylesheet" href="http{if Tools::usingSecureMode()}s{/if}://fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext" type="text/css" media="all" /> -->
|
||||
|
||||
<!--[if IE 8]>
|
||||
@@ -88,14 +90,18 @@
|
||||
<div class="banner">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{hook h="displayBanner"}
|
||||
{block name='display_banner'}
|
||||
{hook h="displayBanner"}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="nav-main">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<nav>{hook h="displayNav"}</nav>
|
||||
{block name='display_nav'}
|
||||
<nav>{hook h="displayNav"}</nav>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,14 +115,20 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="header-top-menu">
|
||||
{if isset($HOOK_TOP)}{$HOOK_TOP}{/if}
|
||||
{block name='hook_top'}
|
||||
{if isset($HOOK_TOP)}{$HOOK_TOP}{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displaySearchHotelPanel'}
|
||||
{block name='display_search_hotel_panel'}
|
||||
{hook h='displaySearchHotelPanel'}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displayAfterHookTop'}
|
||||
{block name='display_after_hook_top'}
|
||||
{hook h='displayAfterHookTop'}
|
||||
{/block}
|
||||
</header>
|
||||
</div>
|
||||
<div class="columns-container">
|
||||
|
||||
@@ -23,206 +23,210 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Personal information'}
|
||||
</span>
|
||||
{/capture}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">
|
||||
{l s='Personal information'}
|
||||
</h1>
|
||||
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
|
||||
{if isset($confirmation) && $confirmation}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your personal information has been successfully updated.'}
|
||||
{if isset($pwd_changed)}<br />{l s='Your password has been sent to your email:'} {$email}{/if}
|
||||
</p>
|
||||
{else}
|
||||
<p class="info-title">
|
||||
{l s='Please be sure to update your personal information if it has changed.'}
|
||||
</p>
|
||||
<p class="required">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
</p>
|
||||
<form action="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" method="post" class="std">
|
||||
<fieldset>
|
||||
<div class="clearfix">
|
||||
<label>{l s='Social title'}</label>
|
||||
<br />
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<div class="radio-inline">
|
||||
<label for="id_gender{$gender->id}" class="top">
|
||||
<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id|intval}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />
|
||||
{$gender->name}</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="firstname" class="required">
|
||||
{l s='First name'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" data-validate="isName" type="text" id="firstname" name="firstname" value="{$smarty.post.firstname}" />
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="lastname" class="required">
|
||||
{l s='Last name'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" data-validate="isName" type="text" name="lastname" id="lastname" value="{$smarty.post.lastname}" />
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="email" class="required">
|
||||
{l s='E-mail address'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" />
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="phone" class="required">
|
||||
{l s='Phone'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" data-validate="isPhoneNumber" type="phone" name="phone" id="phone" value="{$smarty.post.phone}" />
|
||||
</div>
|
||||
{if isset($birthday) && $birthday}
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{l s='Date of Birth'}
|
||||
</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select name="days" id="days" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=v}
|
||||
<option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{*
|
||||
{l s='January'}
|
||||
{l s='February'}
|
||||
{l s='March'}
|
||||
{l s='April'}
|
||||
{l s='May'}
|
||||
{l s='June'}
|
||||
{l s='July'}
|
||||
{l s='August'}
|
||||
{l s='September'}
|
||||
{l s='October'}
|
||||
{l s='November'}
|
||||
{l s='December'}
|
||||
*}
|
||||
<select id="months" name="months" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=v}
|
||||
<option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=v}
|
||||
<option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="required form-group">
|
||||
<label for="old_passwd" class="required">
|
||||
{l s='Current Password'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="old_passwd" id="old_passwd" />
|
||||
</div>
|
||||
<div class="password form-group">
|
||||
<label for="passwd">
|
||||
{l s='New Password'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="passwd" id="passwd" />
|
||||
</div>
|
||||
<div class="password form-group">
|
||||
<label for="confirmation">
|
||||
{l s='Confirmation'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="confirmation" id="confirmation" />
|
||||
</div>
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" id="newsletter" name="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1} checked="checked"{/if}/>
|
||||
{l s='Sign up for our newsletter!'}
|
||||
{if isset($required_fields) && array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if}/>
|
||||
{l s='Receive special offers from our partners!'}
|
||||
{if isset($required_fields) && array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
{if $b2b_enable}
|
||||
<h1 class="page-subheading">
|
||||
{l s='Your company information'}
|
||||
</h1>
|
||||
<div class="form-group">
|
||||
<label for="">{l s='Company'}</label>
|
||||
<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="siret">{l s='SIRET'}</label>
|
||||
<input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="ape">{l s='APE'}</label>
|
||||
<input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="website">{l s='Website'}</label>
|
||||
<input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($HOOK_CUSTOMER_IDENTITY_FORM)}
|
||||
{$HOOK_CUSTOMER_IDENTITY_FORM}
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<button type="submit" name="submitIdentity" class="btn btn-default button button-medium">
|
||||
<span>{l s='Save'}<i class="icon-chevron-right right"></i></span>
|
||||
</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form> <!-- .std -->
|
||||
{/if}
|
||||
</div>
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i>{l s='Back to My account'}
|
||||
</span>
|
||||
{block name='identity_content'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i>{l s='Home'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Personal information'}
|
||||
</span>
|
||||
{/capture}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">
|
||||
{l s='Personal information'}
|
||||
</h1>
|
||||
|
||||
{block name='identity_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
|
||||
{if isset($confirmation) && $confirmation}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your personal information has been successfully updated.'}
|
||||
{if isset($pwd_changed)}<br />{l s='Your password has been sent to your email:'} {$email}{/if}
|
||||
</p>
|
||||
{else}
|
||||
<p class="info-title">
|
||||
{l s='Please be sure to update your personal information if it has changed.'}
|
||||
</p>
|
||||
<p class="required">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
</p>
|
||||
{block name='identity_form_container'}
|
||||
<form action="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" method="post" class="std">
|
||||
<fieldset>
|
||||
<div class="clearfix">
|
||||
<label>{l s='Social title'}</label>
|
||||
<br />
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<div class="radio-inline">
|
||||
<label for="id_gender{$gender->id}" class="top">
|
||||
<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id|intval}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />
|
||||
{$gender->name}</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="firstname" class="required">
|
||||
{l s='First name'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" data-validate="isName" type="text" id="firstname" name="firstname" value="{$smarty.post.firstname}" />
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="lastname" class="required">
|
||||
{l s='Last name'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" data-validate="isName" type="text" name="lastname" id="lastname" value="{$smarty.post.lastname}" />
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="email" class="required">
|
||||
{l s='E-mail address'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" />
|
||||
</div>
|
||||
{if isset($birthday) && $birthday}
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{l s='Date of Birth'}
|
||||
</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select name="days" id="days" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=v}
|
||||
<option value="{$v}" {if ($sl_day == $v)}selected="selected"{/if}>{$v} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
{*
|
||||
{l s='January'}
|
||||
{l s='February'}
|
||||
{l s='March'}
|
||||
{l s='April'}
|
||||
{l s='May'}
|
||||
{l s='June'}
|
||||
{l s='July'}
|
||||
{l s='August'}
|
||||
{l s='September'}
|
||||
{l s='October'}
|
||||
{l s='November'}
|
||||
{l s='December'}
|
||||
*}
|
||||
<select id="months" name="months" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=v}
|
||||
<option value="{$k}" {if ($sl_month == $k)}selected="selected"{/if}>{l s=$v} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=v}
|
||||
<option value="{$v}" {if ($sl_year == $v)}selected="selected"{/if}>{$v} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="required form-group">
|
||||
<label for="old_passwd" class="required">
|
||||
{l s='Current Password'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="old_passwd" id="old_passwd" />
|
||||
</div>
|
||||
<div class="password form-group">
|
||||
<label for="passwd">
|
||||
{l s='New Password'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="passwd" id="passwd" />
|
||||
</div>
|
||||
<div class="password form-group">
|
||||
<label for="confirmation">
|
||||
{l s='Confirmation'}
|
||||
</label>
|
||||
<input class="is_required validate form-control" type="password" data-validate="isPasswd" name="confirmation" id="confirmation" />
|
||||
</div>
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" id="newsletter" name="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == 1} checked="checked"{/if}/>
|
||||
{l s='Sign up for our newsletter!'}
|
||||
{if isset($required_fields) && array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == 1} checked="checked"{/if}/>
|
||||
{l s='Receive special offers from our partners!'}
|
||||
{if isset($required_fields) && array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</label>
|
||||
</div>
|
||||
{/if}
|
||||
{if $b2b_enable}
|
||||
<h1 class="page-subheading">
|
||||
{l s='Your company information'}
|
||||
</h1>
|
||||
<div class="form-group">
|
||||
<label for="">{l s='Company'}</label>
|
||||
<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="siret">{l s='SIRET'}</label>
|
||||
<input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="ape">{l s='APE'}</label>
|
||||
<input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="website">{l s='Website'}</label>
|
||||
<input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{block name='hook_customer_identity_form'}
|
||||
{if isset($HOOK_CUSTOMER_IDENTITY_FORM)}
|
||||
{$HOOK_CUSTOMER_IDENTITY_FORM}
|
||||
{/if}
|
||||
{/block}
|
||||
<div class="form-group">
|
||||
<button type="submit" name="submitIdentity" class="btn btn-default button button-medium">
|
||||
<span>{l s='Save'}<i class="icon-chevron-right right"></i></span>
|
||||
</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form> <!-- .std -->
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
{block name='identity_footer_links'}
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i>{l s='Back to My account'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i>{l s='Home'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
@@ -22,14 +22,21 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if isset($HOOK_HOME_TAB_CONTENT) && $HOOK_HOME_TAB_CONTENT|trim}
|
||||
{if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim}
|
||||
<ul id="home-page-tabs" class="nav nav-tabs clearfix">
|
||||
{$HOOK_HOME_TAB}
|
||||
</ul>
|
||||
{if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim}
|
||||
{block name='hook_home_tab'}
|
||||
<ul id="home-page-tabs" class="nav nav-tabs clearfix">
|
||||
{$HOOK_HOME_TAB}
|
||||
</ul>
|
||||
{/block}
|
||||
{/if}
|
||||
<div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div>
|
||||
{block name='hook_home_tab_content'}
|
||||
<div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{if isset($HOOK_HOME) && $HOOK_HOME|trim}
|
||||
<div class="clearfix">{$HOOK_HOME}</div>
|
||||
{block name='hook_home'}
|
||||
<div class="clearfix">{$HOOK_HOME}</div>
|
||||
{/block}
|
||||
{/if}
|
||||
@@ -22,427 +22,442 @@
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<!-- MODULE Block cart -->
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
<div class="header-top-item {if $PS_CATALOG_MODE}header_user_catalog{/if}">
|
||||
{/if}
|
||||
<div class="shopping_cart">
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
|
||||
{block name='block_cart_content'}
|
||||
<!-- MODULE Block cart -->
|
||||
{block name='block_cart_shopping_cart'}
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
<div class="header-top-item {if $PS_CATALOG_MODE}header_user_catalog{/if}">
|
||||
{/if}
|
||||
<div class="shopping_cart">
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
</a>
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
|
||||
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
</a>
|
||||
{block name='block_cart_cart_block'}
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
{/if}
|
||||
</span>
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- .cart_block -->
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='block_cart_layer_cart'}
|
||||
{counter name=active_overlay assign=active_overlay}
|
||||
{if !$PS_CATALOG_MODE && $active_overlay == 1}
|
||||
<div id="layer_cart">
|
||||
<div class="clearfix">
|
||||
{block name='block_cart_layer_cart_product'}
|
||||
<div class="layer_cart_product col-xs-12 col-md-6">
|
||||
<span class="cross" title="{l s='Close window' mod='blockcart'}"></span>
|
||||
<h2 class="layer_cart_room_txt">
|
||||
<i class="icon-check"></i>{l s='Room successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<h2 class="layer_cart_product_txt">
|
||||
<i class="icon-check"></i>{l s='Item successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<div class="product-image-container layer_cart_img">
|
||||
</div>
|
||||
<div class="layer_cart_product_info">
|
||||
<span id="layer_cart_product_title" class="product-name"></span>
|
||||
<span id="layer_cart_product_attributes"></span>
|
||||
<div class="layer_cart_room_txt">
|
||||
<strong class="dark">{l s='Time Duration' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_time_duration"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}{l s='Room occupancy' mod='blockcart'}{else}{l s='Rooms quantity added' mod='blockcart'}{/if} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Quantity' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_quantity"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{l s='Room type cost' mod='blockcart'} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Total' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_price"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='block_cart_layer_cart_cart'}
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div> -->
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
</p>
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div><!-- .cart_block -->
|
||||
<div class="crossseling"></div>
|
||||
</div> <!-- #layer_cart -->
|
||||
<div class="layer_cart_overlay"></div>
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
</div>
|
||||
{/if}
|
||||
{counter name=active_overlay assign=active_overlay}
|
||||
{if !$PS_CATALOG_MODE && $active_overlay == 1}
|
||||
<div id="layer_cart">
|
||||
<div class="clearfix">
|
||||
<div class="layer_cart_product col-xs-12 col-md-6">
|
||||
<span class="cross" title="{l s='Close window' mod='blockcart'}"></span>
|
||||
<h2 class="layer_cart_room_txt">
|
||||
<i class="icon-check"></i>{l s='Room successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<h2 class="layer_cart_product_txt">
|
||||
<i class="icon-check"></i>{l s='Item successfully added to your cart' mod='blockcart'}
|
||||
</h2>
|
||||
<div class="product-image-container layer_cart_img">
|
||||
</div>
|
||||
<div class="layer_cart_product_info">
|
||||
<span id="layer_cart_product_title" class="product-name"></span>
|
||||
<span id="layer_cart_product_attributes"></span>
|
||||
<div class="layer_cart_room_txt">
|
||||
<strong class="dark">{l s='Time Duration' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_time_duration"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}{l s='Room occupancy' mod='blockcart'}{else}{l s='Rooms quantity added' mod='blockcart'}{/if} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Quantity' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_quantity"></span>
|
||||
</div>
|
||||
<div>
|
||||
<strong class="dark layer_cart_room_txt">{l s='Room type cost' mod='blockcart'} - </strong>
|
||||
<strong class="dark layer_cart_product_txt">{l s='Total' mod='blockcart'} - </strong>
|
||||
<span id="layer_cart_product_price"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
{/block}
|
||||
{/block}
|
||||
{block name='block_cart_js_vars'}
|
||||
{strip}
|
||||
{addJsDefL name=someErrorCondition}{l s='Some Error occured.Please try again.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDef CUSTOMIZE_TEXTFIELD=$CUSTOMIZE_TEXTFIELD}
|
||||
{addJsDef img_dir=$img_dir|escape:'quotes':'UTF-8'}
|
||||
{addJsDef generated_date=$smarty.now|intval}
|
||||
{addJsDef ajax_allowed=$ajax_allowed|boolval}
|
||||
{addJsDef hasDeliveryAddress=(isset($cart->id_address_delivery) && $cart->id_address_delivery)}
|
||||
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
{addJsDefL name=customizationIdMessage}{l s='Customization #' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=removingLinkText}{l s='remove this product from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeShippingTranslation}{l s='Free shipping!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeProductTranslation}{l s='Free!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=delete_txt}{l s='Delete' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=toBeDetermined}{l s='To be determined' mod='blockcart' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{* MODULE Block cart
|
||||
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
###################################################################
|
||||
By webkul to send needed variable in ajax-cart.js
|
||||
################################################################### *}
|
||||
{addJsDef module_dir=$module_dir}
|
||||
{addJsDef currency_sign = $currency->sign}
|
||||
{addJsDef room_warning_num = $warning_num}
|
||||
{addJsDef currency_format = $currency->format}
|
||||
{addJsDef currency_blank = $currency->blank}
|
||||
{addJsDefL name=adults_txt}{l s='Adults' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=children_txt}{l s='Children' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=price_txt}{l s='Price' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=total_qty_txt}{l s='Total Qty.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=qty_txt}{l s='Qty' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=duration_txt}{l s='Duration' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=capacity_txt}{l s='Capacity' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=remove_rm_title}{l s='Remove this room from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=no_internet_txt}{l s='No internet. Please check your internet connection.' mod='blockcart' js=1}{/addJsDefL}
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
</div> -->
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="crossseling"></div>
|
||||
</div> <!-- #layer_cart -->
|
||||
<div class="layer_cart_overlay"></div>
|
||||
{/if}
|
||||
{strip}
|
||||
{addJsDefL name=someErrorCondition}{l s='Some Error occured.Please try again.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDef CUSTOMIZE_TEXTFIELD=$CUSTOMIZE_TEXTFIELD}
|
||||
{addJsDef img_dir=$img_dir|escape:'quotes':'UTF-8'}
|
||||
{addJsDef generated_date=$smarty.now|intval}
|
||||
{addJsDef ajax_allowed=$ajax_allowed|boolval}
|
||||
{addJsDef hasDeliveryAddress=(isset($cart->id_address_delivery) && $cart->id_address_delivery)}
|
||||
|
||||
{addJsDefL name=customizationIdMessage}{l s='Customization #' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=removingLinkText}{l s='remove this product from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeShippingTranslation}{l s='Free shipping!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=freeProductTranslation}{l s='Free!' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=delete_txt}{l s='Delete' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=toBeDetermined}{l s='To be determined' mod='blockcart' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{* MODULE Block cart
|
||||
|
||||
###################################################################
|
||||
By webkul to send needed variable in ajax-cart.js
|
||||
################################################################### *}
|
||||
{addJsDef module_dir=$module_dir}
|
||||
{addJsDef currency_sign = $currency->sign}
|
||||
{addJsDef room_warning_num = $warning_num}
|
||||
{addJsDef currency_format = $currency->format}
|
||||
{addJsDef currency_blank = $currency->blank}
|
||||
{addJsDefL name=adults_txt}{l s='Adults' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=children_txt}{l s='Children' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=price_txt}{l s='Price' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=total_qty_txt}{l s='Total Qty.' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=qty_txt}{l s='Qty' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=duration_txt}{l s='Duration' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=capacity_txt}{l s='Capacity' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=remove_rm_title}{l s='Remove this room from my cart' mod='blockcart' js=1}{/addJsDefL}
|
||||
{addJsDefL name=no_internet_txt}{l s='No internet. Please check your internet connection.' mod='blockcart' js=1}{/addJsDefL}
|
||||
|
||||
{addJsDef rm_avail_process_lnk = $link->getModuleLink('blockcart', 'checkroomavailabilityajaxprocess')}
|
||||
{addJsDef pagename = $current_page}
|
||||
{/strip}
|
||||
{* ###################################################################
|
||||
End
|
||||
################################################################### *}
|
||||
{addJsDef rm_avail_process_lnk = $link->getModuleLink('blockcart', 'checkroomavailabilityajaxprocess')}
|
||||
{addJsDef pagename = $current_page}
|
||||
{/strip}
|
||||
{* ###################################################################
|
||||
End
|
||||
################################################################### *}
|
||||
{/block}
|
||||
@@ -23,41 +23,47 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}{l s='My account'}{/capture}
|
||||
{block name='my_account_content'}
|
||||
{capture name=path}{l s='My account'}{/capture}
|
||||
|
||||
<h1 class="page-heading">{l s='My account'}</h1>
|
||||
{if isset($account_created)}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your account has been created.'}
|
||||
</p>
|
||||
{/if}
|
||||
<p class="info-account">{l s='Welcome to your account. Here you can manage all of your personal information and orders.'}</p>
|
||||
<div class="row addresses-lists">
|
||||
<div class="col-xs-12 col-sm-6 col-lg-4">
|
||||
<ul class="myaccount-link-list">
|
||||
<li><a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" title="{l s='Address'}"><i class="icon-building"></i><span>{l s='Address'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Bookings'}"><i class="icon-list-ol"></i><span>{l s='Bookings'}</span></a></li>
|
||||
{if $refundAllowed}
|
||||
<li><a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='Booking refund requests'}"><i class="icon-refresh"></i><span>{l s='Booking refund requests'}</span></a></li>
|
||||
{/if}
|
||||
<li><a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='Credit slips'}"><i class="icon-file-o"></i><span>{l s='Credit slips'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='Personal information'}"><i class="icon-user"></i><span>{l s='Personal information'}</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{if $voucherAllowed || isset($HOOK_CUSTOMER_ACCOUNT) && $HOOK_CUSTOMER_ACCOUNT !=''}
|
||||
<div class="col-xs-12 col-sm-6 col-lg-4">
|
||||
<ul class="myaccount-link-list">
|
||||
{if $voucherAllowed}
|
||||
<li><a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" title="{l s='Vouchers'}"><i class="icon-barcode"></i><span>{l s='Vouchers'}</span></a></li>
|
||||
{/if}
|
||||
{$HOOK_CUSTOMER_ACCOUNT}
|
||||
</ul>
|
||||
<h1 class="page-heading">{l s='My account'}</h1>
|
||||
{if isset($account_created)}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your account has been created.'}
|
||||
</p>
|
||||
{/if}
|
||||
<p class="info-account">{l s='Welcome to your account. Here you can manage all of your personal information and orders.'}</p>
|
||||
<div class="row addresses-lists">
|
||||
<div class="col-xs-12 col-sm-6 col-lg-4">
|
||||
<ul class="myaccount-link-list">
|
||||
<li><a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" title="{l s='Address'}"><i class="icon-building"></i><span>{l s='Address'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Bookings'}"><i class="icon-list-ol"></i><span>{l s='Bookings'}</span></a></li>
|
||||
{if $refundAllowed}
|
||||
<li><a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='Booking refund requests'}"><i class="icon-refresh"></i><span>{l s='Booking refund requests'}</span></a></li>
|
||||
{/if}
|
||||
<li><a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='Credit slips'}"><i class="icon-file-o"></i><span>{l s='Credit slips'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='Personal information'}"><i class="icon-user"></i><span>{l s='Personal information'}</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{if $voucherAllowed || isset($HOOK_CUSTOMER_ACCOUNT) && $HOOK_CUSTOMER_ACCOUNT !=''}
|
||||
<div class="col-xs-12 col-sm-6 col-lg-4">
|
||||
<ul class="myaccount-link-list">
|
||||
{if $voucherAllowed}
|
||||
<li><a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" title="{l s='Vouchers'}"><i class="icon-barcode"></i><span>{l s='Vouchers'}</span></a></li>
|
||||
{/if}
|
||||
{block name='hook_customer_account'}
|
||||
{$HOOK_CUSTOMER_ACCOUNT}
|
||||
{/block}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{hook h='displayCustomerAccountAfterTabs'}
|
||||
{block name='display_customer_account_after_tabs'}
|
||||
{hook h='displayCustomerAccountAfterTabs'}
|
||||
{/block}
|
||||
|
||||
<ul class="footer_links clearfix">
|
||||
<li><a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Home'}"><span><i class="icon-chevron-left"></i> {l s='Home'}</span></a></li>
|
||||
</ul>
|
||||
<ul class="footer_links clearfix">
|
||||
<li><a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Home'}"><span><i class="icon-chevron-left"></i> {l s='Home'}</span></a></li>
|
||||
</ul>
|
||||
{/block}
|
||||
|
||||
@@ -23,395 +23,422 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}{l s='Order confirmation'}{/capture}
|
||||
|
||||
<h1 class="page-heading">{l s='Order confirmation'}</h1>
|
||||
{block name='order_confirmation_content'}
|
||||
{capture name=path}{l s='Order confirmation'}{/capture}
|
||||
|
||||
{assign var='current_step' value='payment'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
<h1 class="page-heading">{l s='Order confirmation'}</h1>
|
||||
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{assign var='current_step' value='payment'}
|
||||
{block name='order_steps_container'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
{/block}
|
||||
|
||||
{$HOOK_ORDER_CONFIRMATION}
|
||||
<div class="box">
|
||||
{$HOOK_PAYMENT_RETURN}
|
||||
{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 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 />
|
||||
{/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>
|
||||
{if $any_back_order}
|
||||
{if $shw_bo_msg}
|
||||
<br>
|
||||
<p class="back_o_msg"><strong><sup>*</sup>{l s='Some of your rooms are on back order. Please read the following message for rooms with status on backorder'}</strong></p>
|
||||
<p>
|
||||
- {$back_ord_msg}
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
<hr>
|
||||
<p><strong>{l s='Order Details -'}</strong></p>
|
||||
<div id="order-detail-content" class="">
|
||||
<table class="table table-bordered">
|
||||
{if isset($cart_htl_data)}
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product">{l s='Room Image'}</th>
|
||||
<th class="cart_description">{l s='Room Description'}</th>
|
||||
<th>{l s='Hotel Name'}</th>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Check-in Date'}</th>
|
||||
<th>{l s='Check-out Date'}</th>
|
||||
<th>{l s='Extra Services'}</th>
|
||||
<th class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<tr class="table_body">
|
||||
<td class="cart_product">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart_description">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['name']}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>{$data_v['hotel_name']}
|
||||
{hook h="displayOrderConfirmationHotelNameAfter" id_product=$data_v['id_product']}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{if $rm_v['adults'] <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else} {$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}<br>{if $rm_v['num_rm'] <= 9}0{/if}{$rm_v['num_rm']} {if $rm_v['num_rm'] > 1}{l s='Rooms'}{else}{l s='Room'}{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{$rm_v['data_form']|date_format:"%d-%m-%Y"}
|
||||
</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{$rm_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-center">
|
||||
{block name='order_confirmation_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
<a data-date_from="{$rm_v['data_form']}" data-date_to="{$rm_v['data_to']}" data-id_product="{$data_v['id_product']}" data-id_order="{$data_v['id_order']}" data-action="{$link->getPageLink('order-detail')}" class="open_rooms_extra_services_panel" href="#rooms_type_extra_services_form">
|
||||
{/if}
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
</a>
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td class="cart_total text-left">
|
||||
<p class="text-left">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_incl'] + $rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti'] + $rm_v['additional_services_price_auto_add_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_excl'] + $rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te'] + $rm_v['additional_services_price_auto_add_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
<span class="order-price-info">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
<div class="price-info-container" style="display:none">
|
||||
<div class="price-info-tooltip-cont">
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Room cost'} : </p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_incl'] + $rm_v['additional_services_price_auto_add_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_excl'] + $rm_v['additional_services_price_auto_add_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Service cost'} : </p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
{if isset($orders_has_invoice) && $orders_has_invoice && $order->payment != 'Free order'}
|
||||
{/if}
|
||||
{* <td class="text-center">
|
||||
{if isset($rm_v['is_backorder']) && $rm_v['is_backorder']}
|
||||
{l s='On Backorder'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td> *}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{block name='hook_order_confirmation'}
|
||||
{$HOOK_ORDER_CONFIRMATION}
|
||||
{/block}
|
||||
<div class="box">
|
||||
{block name='hook_payment_return'}
|
||||
{$HOOK_PAYMENT_RETURN}
|
||||
{/block}
|
||||
{block name='order_confirmation_details'}
|
||||
{if isset($order->id) && $order->id}
|
||||
{if $is_guest}
|
||||
{block name='order_confirmation_guest_booking_details'}
|
||||
<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 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>
|
||||
{/block}
|
||||
{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 />
|
||||
{/if}
|
||||
{if isset($cart_service_products)}
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="1">{l s='Image'}</th>
|
||||
<th colspan="2">{l s='Name'}</th>
|
||||
<th colspan="2">{l s='Unit Price'}</th>
|
||||
<th colspan="1">{l s='Quantity'}</th>
|
||||
<th colspan="2" class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$cart_service_products key=data_k item=data_v}
|
||||
<tr class="table_body">
|
||||
<td class="cart_product">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart_product" colspan="2">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['product_name']}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
<td class="cart_unit" colspan="2">
|
||||
<p class="text-center">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_incl']|floatval|round:2} *}
|
||||
{else}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_excl']|floatval|round:2} *}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-center">
|
||||
{$data_v['product_quantity']}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-left" colspan="2">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
<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>
|
||||
{if $any_back_order}
|
||||
{if $shw_bo_msg}
|
||||
<br>
|
||||
<p class="back_o_msg"><strong><sup>*</sup>{l s='Some of your rooms are on back order. Please read the following message for rooms with status on backorder'}</strong></p>
|
||||
<p>
|
||||
- {$back_ord_msg}
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
<tfoot>
|
||||
{if isset($cart_htl_data)}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_te'] + $orderTotalInfo['total_services_te'] + $orderTotalInfo['total_auto_add_services_te'] + $orderTotalInfo['total_demands_price_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_ti'] + $orderTotalInfo['total_services_ti'] + $orderTotalInfo['total_auto_add_services_ti'] + $orderTotalInfo['total_demands_price_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
{* {if isset($cart_service_products) && $cart_service_products}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_ti'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{* {if $orderTotalInfo['total_services_te'] > 0}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost'} {if $use_tax}{l s='(tax incl.)'}{/if}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_ti'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{if $order->total_wrapping > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total gift wrapping cost'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-wrapping">{displayWtPriceWithCurrency price=($orderTotalInfo['total_wrapping'] * -1) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->total_discounts > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Vouchers'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{if $priceDisplay && $use_tax}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts_te'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
{else}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
<hr>
|
||||
<p><strong>{l s='Order Details -'}</strong></p>
|
||||
<div id="order-detail-content" class="">
|
||||
{block name='order_confirmation_detail_table'}
|
||||
<table class="table table-bordered">
|
||||
{if isset($cart_htl_data)}
|
||||
{block name='order_confirmation_detail_table_head'}
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product">{l s='Room Image'}</th>
|
||||
<th class="cart_description">{l s='Room Description'}</th>
|
||||
<th>{l s='Hotel Name'}</th>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Check-in Date'}</th>
|
||||
<th>{l s='Check-out Date'}</th>
|
||||
<th>{l s='Extra Services'}</th>
|
||||
<th class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{/block}
|
||||
{block name='order_confirmation_detail_table_body'}
|
||||
<tbody>
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<tr class="table_body">
|
||||
<td class="cart_product">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart_description">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['name']}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>{$data_v['hotel_name']}
|
||||
{hook h="displayOrderConfirmationHotelNameAfter" id_product=$data_v['id_product']}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{if $rm_v['adults'] <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else} {$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}<br>{if $rm_v['num_rm'] <= 9}0{/if}{$rm_v['num_rm']} {if $rm_v['num_rm'] > 1}{l s='Rooms'}{else}{l s='Room'}{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{$rm_v['data_form']|date_format:"%d-%m-%Y"}
|
||||
</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{$rm_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-center">
|
||||
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
<a data-date_from="{$rm_v['data_form']}" data-date_to="{$rm_v['data_to']}" data-id_product="{$data_v['id_product']}" data-id_order="{$data_v['id_order']}" data-action="{$link->getPageLink('order-detail')}" class="open_rooms_extra_services_panel" href="#rooms_type_extra_services_form">
|
||||
{/if}
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
</a>
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td class="cart_total text-left">
|
||||
<p class="text-left">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_incl'] + $rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti'] + $rm_v['additional_services_price_auto_add_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_excl'] + $rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te'] + $rm_v['additional_services_price_auto_add_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
<span class="order-price-info">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
<div class="price-info-container" style="display:none">
|
||||
<div class="price-info-tooltip-cont">
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Room cost'} : </p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_incl'] + $rm_v['additional_services_price_auto_add_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_excl'] + $rm_v['additional_services_price_auto_add_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Service cost'} : </p>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p>
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti']) currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
{if isset($orders_has_invoice) && $orders_has_invoice && $order->payment != 'Free order'}
|
||||
{/if}
|
||||
{* <td class="text-center">
|
||||
{if isset($rm_v['is_backorder']) && $rm_v['is_backorder']}
|
||||
{l s='On Backorder'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td> *}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/block}
|
||||
{/if}
|
||||
{block name='order_confirmation_service_detail_table'}
|
||||
{if isset($cart_service_products)}
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="1">{l s='Image'}</th>
|
||||
<th colspan="2">{l s='Name'}</th>
|
||||
<th colspan="2">{l s='Unit Price'}</th>
|
||||
<th colspan="1">{l s='Quantity'}</th>
|
||||
<th colspan="2" class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$cart_service_products key=data_k item=data_v}
|
||||
<tr class="table_body">
|
||||
<td class="cart_product">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart_product" colspan="2">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['product_name']}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
<td class="cart_unit" colspan="2">
|
||||
<p class="text-center">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_incl']|floatval|round:2} *}
|
||||
{else}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_excl']|floatval|round:2} *}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-center">
|
||||
{$data_v['product_quantity']}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-left" colspan="2">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $priceDisplay && $use_tax && $orderTotalInfo['total_convenience_fee_te']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else if $orderTotalInfo['total_convenience_fee_ti']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Tax'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=$orderTotalInfo['total_tax'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="totalprice item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Final Booking Total'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_paid'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{if $orderTotalInfo['total_paid'] > $orderTotalInfo['total_paid_real']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Due Amount'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_paid'] - $orderTotalInfo['total_paid_real']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<p>{l s='An email has been sent with this information.'}
|
||||
<br /><strong>{l s='Your booking has been received successfully and we are looking forward to welcoming you.'}</strong>
|
||||
<br />{l s='If you have questions, comments or concerns, please contact our'} <a class="cust_serv_lnk" href="{$link->getPageLink('contact', true)|escape:'html'}">{l s='expert customer support team.'}</a>
|
||||
</p>
|
||||
</div>
|
||||
<p class="cart_navigation exclusive">
|
||||
<a class="btn" href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Go to your order history page'}"><i class="icon-chevron-left"></i>{l s='View your order history'}</a>
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='order_confirmation_price_details'}
|
||||
<tfoot>
|
||||
{if isset($cart_htl_data)}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_te'] + $orderTotalInfo['total_services_te'] + $orderTotalInfo['total_auto_add_services_te'] + $orderTotalInfo['total_demands_price_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_ti'] + $orderTotalInfo['total_services_ti'] + $orderTotalInfo['total_auto_add_services_ti'] + $orderTotalInfo['total_demands_price_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
{* {if isset($cart_service_products) && $cart_service_products}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_ti'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{* {if $orderTotalInfo['total_services_te'] > 0}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost'} {if $use_tax}{l s='(tax incl.)'}{/if}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_ti'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{if $order->total_wrapping > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total gift wrapping cost'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-wrapping">{displayWtPriceWithCurrency price=($orderTotalInfo['total_wrapping'] * -1) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->total_discounts > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Vouchers'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{if $priceDisplay && $use_tax}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts_te'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
{else}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $priceDisplay && $use_tax && $orderTotalInfo['total_convenience_fee_te']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else if $orderTotalInfo['total_convenience_fee_ti']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Tax'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=$orderTotalInfo['total_tax'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="totalprice item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Final Booking Total'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_paid'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{if $orderTotalInfo['total_paid'] > $orderTotalInfo['total_paid_real']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Due Amount'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_paid'] - $orderTotalInfo['total_paid_real']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tfoot>
|
||||
{/block}
|
||||
</table>
|
||||
{/block}
|
||||
</div>
|
||||
<p>{l s='An email has been sent with this information.'}
|
||||
<br /><strong>{l s='Your booking has been received successfully and we are looking forward to welcoming you.'}</strong>
|
||||
<br />{l s='If you have questions, comments or concerns, please contact our'} <a class="cust_serv_lnk" href="{$link->getPageLink('contact', true)|escape:'html'}">{l s='expert customer support team.'}</a>
|
||||
</p>
|
||||
</div>
|
||||
<p class="cart_navigation exclusive">
|
||||
<a class="btn" href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Go to your order history page'}"><i class="icon-chevron-left"></i>{l s='View your order history'}</a>
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* Fancybox for extra demands*}
|
||||
<div style="display:none;" id="rooms_extra_services">
|
||||
{* <div id="rooms_type_extra_demands">
|
||||
<div class="panel">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<h3>{l s='Additional Facilities'}</h3>
|
||||
<p class="rooms_extra_demands_text">{l s='Below are the additional facilities chosen by you in this booking'}</p>
|
||||
{* Fancybox for extra demands*}
|
||||
<div style="display:none;" id="rooms_extra_services">
|
||||
{* <div id="rooms_type_extra_demands">
|
||||
<div class="panel">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<h3>{l s='Additional Facilities'}</h3>
|
||||
<p class="rooms_extra_demands_text">{l s='Below are the additional facilities chosen by you in this booking'}</p>
|
||||
</div>
|
||||
<div id="room_type_demands_desc"></div>
|
||||
</div>
|
||||
<div id="room_type_demands_desc"></div>
|
||||
</div>
|
||||
</div> *}
|
||||
</div>
|
||||
{strip}
|
||||
{addJsDef historyUrl=$link->getPageLink("orderdetail", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDefL name=req_sent_msg}{l s='Request Sent..' js=1}{/addJsDefL}
|
||||
{addJsDefL name=wait_stage_msg}{l s='Waiting' js=1}{/addJsDefL}
|
||||
{addJsDefL name=pending_state_msg}{l s='Pending...' js=1}{/addJsDefL}
|
||||
{addJsDefL name=mail_sending_err}{l s='Some error occurred while sending mail to the customer' js=1}{/addJsDefL}
|
||||
{addJsDefL name=refund_request_sending_error}{l s='Some error occurred while processing request for order cancellation.' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
</div> *}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='order_confirmation_js_vars'}
|
||||
{strip}
|
||||
{addJsDef historyUrl=$link->getPageLink("orderdetail", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDefL name=req_sent_msg}{l s='Request Sent..' js=1}{/addJsDefL}
|
||||
{addJsDefL name=wait_stage_msg}{l s='Waiting' js=1}{/addJsDefL}
|
||||
{addJsDefL name=pending_state_msg}{l s='Pending...' js=1}{/addJsDefL}
|
||||
{addJsDefL name=mail_sending_err}{l s='Some error occurred while sending mail to the customer' js=1}{/addJsDefL}
|
||||
{addJsDefL name=refund_request_sending_error}{l s='Some error occurred while processing request for order cancellation.' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{/block}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -23,63 +23,75 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund requests'}
|
||||
</span>
|
||||
{/capture}
|
||||
{block name='order_follow_content'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund requests'}
|
||||
</span>
|
||||
{/capture}
|
||||
|
||||
<div class="panel">
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
{if $ordersReturns && $ordersReturns|count}
|
||||
<div class="table-responsive wk-datatable-wrapper">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='Order'}</th>
|
||||
<th>{l s='Total rooms'}</th>
|
||||
<th>{l s='Refund status'}</th>
|
||||
<th>{l s='Date requested'}</th>
|
||||
<th>{l s='Actions'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$ordersReturns item=return}
|
||||
<tr>
|
||||
<td>
|
||||
#{$return.reference|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$return.total_rooms|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge wk-badge" style="background-color:{$return.state_color|escape:'html':'UTF-8'}">{$return.state_name|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{dateFormat date=$return.date_add full=0}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-default" href="{$link->getPageLink('order-return', true)|escape:'html':'UTF-8'}&id_order_return={$return.id_order_return|escape:'html':'UTF-8'}"><i class="icon-search-plus"></i> {l s='View details'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{block name='order_follow_container'}
|
||||
<div class="panel">
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
{if $ordersReturns && $ordersReturns|count}
|
||||
<div class="table-responsive wk-datatable-wrapper">
|
||||
{block name='order_follow_table'}
|
||||
<table class="table table-bordered">
|
||||
{block name='order_follow_table_head'}
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='Order'}</th>
|
||||
<th>{l s='Total rooms'}</th>
|
||||
<th>{l s='Refund status'}</th>
|
||||
<th>{l s='Date requested'}</th>
|
||||
<th>{l s='Actions'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{/block}
|
||||
{block name='order_follow_table_body'}
|
||||
<tbody>
|
||||
{foreach from=$ordersReturns item=return}
|
||||
<tr>
|
||||
<td>
|
||||
#{$return.reference|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$return.total_rooms|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge wk-badge" style="background-color:{$return.state_color|escape:'html':'UTF-8'}">{$return.state_name|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{dateFormat date=$return.date_add full=0}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-default" href="{$link->getPageLink('order-return', true)|escape:'html':'UTF-8'}&id_order_return={$return.id_order_return|escape:'html':'UTF-8'}"><i class="icon-search-plus"></i> {l s='View details'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/block}
|
||||
</table>
|
||||
{/block}
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='You have no booking refund requests.'}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='You have no booking refund requests.'}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<ul class="footer_links clearfix">
|
||||
<li><a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"><span><i class="icon-chevron-left"></i> {l s='Back to My account'}</span></a></li>
|
||||
<li><a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}"><span><i class="icon-chevron-left"></i> {l s='Home'}</span></a></li>
|
||||
</ul>
|
||||
{block name='order_follow_footer_links'}
|
||||
<ul class="footer_links clearfix">
|
||||
<li><a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"><span><i class="icon-chevron-left"></i> {l s='Back to My account'}</span></a></li>
|
||||
<li><a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}"><span><i class="icon-chevron-left"></i> {l s='Home'}</span></a></li>
|
||||
</ul>
|
||||
{/block}
|
||||
{/block}
|
||||
@@ -1,44 +1,49 @@
|
||||
{if isset($advance_payment_active)}
|
||||
<div class="opc_advance_payment_block">
|
||||
<p class="block-small-header">{l s='PAYMENT TYPES'}</p>
|
||||
<div class="row adv_payment_type_form">
|
||||
<form method="POST" action="{$link->getPageLink('order-opc')|escape:'html':'UTF-8'}" id="advanced-payment">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<label>
|
||||
<input type="radio" value="1" name="payment_type" class="payment_type" {if !isset($is_advance_payment)}checked="checked"{/if}>
|
||||
<span>{l s='Full Payment'}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<label>
|
||||
<input type="radio" value="2" name="payment_type" class="payment_type" {if isset($is_advance_payment)}checked="checked"{/if}>
|
||||
<span>{l s='Partial Payment'}</span>
|
||||
</label>
|
||||
|
||||
<div class="row" id="partial_data">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="col-xs-12 partial_subcont">
|
||||
<span class="partial_txt">{l s='Advance Payment Amount'} - </span>
|
||||
<span class="partial_min_cost">{displayPrice price=$advPaymentAmount}</span>
|
||||
{block name='order_opc_advance_payment_content'}
|
||||
{if isset($advance_payment_active)}
|
||||
<div class="opc_advance_payment_block">
|
||||
<p class="block-small-header">{l s='PAYMENT TYPES'}</p>
|
||||
{block name='order_opc_advance_payment_form'}
|
||||
<div class="row adv_payment_type_form">
|
||||
<form method="POST" action="{$link->getPageLink('order-opc')|escape:'html':'UTF-8'}" id="advanced-payment">
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<label>
|
||||
<input type="radio" value="1" name="payment_type" class="payment_type" {if !isset($is_advance_payment)}checked="checked"{/if}>
|
||||
<span>{l s='Full Payment'}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-12 col-xs-12">
|
||||
<label>
|
||||
<input type="radio" value="2" name="payment_type" class="payment_type" {if isset($is_advance_payment)}checked="checked"{/if}>
|
||||
<span>{l s='Partial Payment'}</span>
|
||||
</label>
|
||||
|
||||
<div class="row" id="partial_data">
|
||||
<div class="row margin-lr-0">
|
||||
<div class="col-xs-12 partial_subcont">
|
||||
<span class="partial_txt">{l s='Advance Payment Amount'} - </span>
|
||||
<span class="partial_min_cost">{displayPrice price=$advPaymentAmount}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if isset($is_advance_payment)}
|
||||
<div class="row margin-lr-0">
|
||||
<div class="col-xs-12 partial_subcont">
|
||||
<span class="partial_txt">{l s='Due Amount'} - </span>
|
||||
<span class="partial_min_cost">{displayPrice price=$dueAmount}</span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if isset($is_advance_payment)}
|
||||
<div class="row margin-lr-0">
|
||||
<div class="col-xs-12 partial_subcont">
|
||||
<span class="partial_txt">{l s='Due Amount'} - </span>
|
||||
<span class="partial_min_cost">{displayPrice price=$dueAmount}</span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="col-sm-12 col-xs-12 margin-top-10">
|
||||
<button class="opc-button-small opc-btn-primary" name="submitAdvPayment" type="submit">
|
||||
<span>{l s='OK'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-12 col-xs-12 margin-top-10">
|
||||
<button class="opc-button-small opc-btn-primary" name="submitAdvPayment" type="submit">
|
||||
<span>{l s='OK'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -23,75 +23,83 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $opc}
|
||||
{assign var="back_order_page" value="order-opc.php"}
|
||||
{else}
|
||||
{assign var="back_order_page" value="order.php"}
|
||||
{/if}
|
||||
|
||||
{if $PS_CATALOG_MODE}
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
<h2 id="cart_title">{l s='Your shopping cart'}</h2>
|
||||
<p class="alert alert-warning">{l s='Your new order was not accepted.'}</p>
|
||||
{else}
|
||||
{if $productNumber}
|
||||
<!-- Payment -->
|
||||
{include file="$tpl_dir./order-payment-advanced.tpl"}
|
||||
<!-- END Payment -->
|
||||
{block name='order_opc_advanced_content'}
|
||||
{if $opc}
|
||||
{assign var="back_order_page" value="order-opc.php"}
|
||||
{else}
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
<h2 class="page-heading">{l s='Your shopping cart'}</h2>
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||||
{assign var="back_order_page" value="order.php"}
|
||||
{/if}
|
||||
{strip}
|
||||
{addJsDef imgDir=$img_dir}
|
||||
{addJsDef authenticationUrl=$link->getPageLink("authentication", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderOpcUrl=$link->getPageLink("order-opc", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef historyUrl=$link->getPageLink("history", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef guestTrackingUrl=$link->getPageLink("guest-tracking", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef addressUrl=$link->getPageLink("address", true, NULL, "back={$back_order_page}")|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderProcess='order-opc'}
|
||||
{addJsDef guestCheckoutEnabled=$PS_GUEST_CHECKOUT_ENABLED|intval}
|
||||
{addJsDef displayPrice=$priceDisplay}
|
||||
{addJsDef taxEnabled=$use_taxes}
|
||||
{addJsDef conditionEnabled=$conditions|intval}
|
||||
{addJsDef errorCarrier=$errorCarrier|@addcslashes:'\''}
|
||||
{addJsDef errorTOS=$errorTOS|@addcslashes:'\''}
|
||||
{addJsDef checkedCarrier=$checked|intval}
|
||||
{addJsDef addresses=array()}
|
||||
{addJsDef isVirtualCart=$isVirtualCart|intval}
|
||||
{addJsDef isPaymentStep=$isPaymentStep|intval}
|
||||
{addJsDefL name=txtWithTax}{l s='(tax incl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtWithoutTax}{l s='(tax excl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtHasBeenSelected}{l s='has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsSelected}{l s='No carrier has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsNeeded}{l s='No carrier is needed for this order' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtConditionsIsNotNeeded}{l s='You do not need to accept the Terms of Service for this order.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsAccepted}{l s='The service terms have been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsNotAccepted}{l s='The service terms have not been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtThereis}{l s='There is' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtErrors}{l s='Error(s)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtDeliveryAddress}{l s='Delivery address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInvoiceAddress}{l s='Invoice address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtModifyMyAddress}{l s='Modify my address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInstantCheckout}{l s='Instant checkout' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtSelectAnAddressFirst}{l s='Please start by selecting an address.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtFree}{l s='Free' js=1}{/addJsDefL}
|
||||
|
||||
{capture}{if $back}&mod={$back|urlencode}{/if}{/capture}
|
||||
{capture name=addressUrl}{$link->getPageLink('address', true, NULL, 'back='|cat:$back_order_page|cat:'?step=1'|cat:$smarty.capture.default)|escape:'quotes':'UTF-8'}{/capture}
|
||||
{addJsDef addressUrl=$smarty.capture.addressUrl}
|
||||
{capture}{'&multi-shipping=1'|urlencode}{/capture}
|
||||
{addJsDef addressMultishippingUrl=$smarty.capture.addressUrl|cat:$smarty.capture.default}
|
||||
{capture name=addressUrlAdd}{$smarty.capture.addressUrl|cat:'&id_address='}{/capture}
|
||||
{addJsDef addressUrlAdd=$smarty.capture.addressUrlAdd}
|
||||
{addJsDef opc=$opc|boolval}
|
||||
{capture}<h3 class="page-subheading">{l s='Your billing address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleInvoice}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<h3 class="page-subheading">{l s='Your delivery address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleDelivery}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<a class="button button-small btn btn-default" href="{$smarty.capture.addressUrlAdd}" title="{l s='Update' js=1}"><span>{l s='Update' js=1}<i class="icon-chevron-right right"></i></span></a>{/capture}
|
||||
{addJsDefL name=liUpdate}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{/strip}
|
||||
{/if}
|
||||
{if $PS_CATALOG_MODE}
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
<h2 id="cart_title">{l s='Your shopping cart'}</h2>
|
||||
<p class="alert alert-warning">{l s='Your new order was not accepted.'}</p>
|
||||
{else}
|
||||
{if $productNumber}
|
||||
{block name='order_payment_advanced_container'}
|
||||
<!-- Payment -->
|
||||
{include file="$tpl_dir./order-payment-advanced.tpl"}
|
||||
<!-- END Payment -->
|
||||
{/block}
|
||||
{else}
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
<h2 class="page-heading">{l s='Your shopping cart'}</h2>
|
||||
{block name='order_opc_advanced_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||||
{/if}
|
||||
{block name='order_opc_advanced_js_vars'}
|
||||
{strip}
|
||||
{addJsDef imgDir=$img_dir}
|
||||
{addJsDef authenticationUrl=$link->getPageLink("authentication", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderOpcUrl=$link->getPageLink("order-opc", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef historyUrl=$link->getPageLink("history", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef guestTrackingUrl=$link->getPageLink("guest-tracking", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef addressUrl=$link->getPageLink("address", true, NULL, "back={$back_order_page}")|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderProcess='order-opc'}
|
||||
{addJsDef guestCheckoutEnabled=$PS_GUEST_CHECKOUT_ENABLED|intval}
|
||||
{addJsDef displayPrice=$priceDisplay}
|
||||
{addJsDef taxEnabled=$use_taxes}
|
||||
{addJsDef conditionEnabled=$conditions|intval}
|
||||
{addJsDef errorCarrier=$errorCarrier|@addcslashes:'\''}
|
||||
{addJsDef errorTOS=$errorTOS|@addcslashes:'\''}
|
||||
{addJsDef checkedCarrier=$checked|intval}
|
||||
{addJsDef addresses=array()}
|
||||
{addJsDef isVirtualCart=$isVirtualCart|intval}
|
||||
{addJsDef isPaymentStep=$isPaymentStep|intval}
|
||||
{addJsDefL name=txtWithTax}{l s='(tax incl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtWithoutTax}{l s='(tax excl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtHasBeenSelected}{l s='has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsSelected}{l s='No carrier has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsNeeded}{l s='No carrier is needed for this order' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtConditionsIsNotNeeded}{l s='You do not need to accept the Terms of Service for this order.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsAccepted}{l s='The service terms have been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsNotAccepted}{l s='The service terms have not been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtThereis}{l s='There is' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtErrors}{l s='Error(s)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtDeliveryAddress}{l s='Delivery address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInvoiceAddress}{l s='Invoice address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtModifyMyAddress}{l s='Modify my address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInstantCheckout}{l s='Instant checkout' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtSelectAnAddressFirst}{l s='Please start by selecting an address.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtFree}{l s='Free' js=1}{/addJsDefL}
|
||||
|
||||
{capture}{if $back}&mod={$back|urlencode}{/if}{/capture}
|
||||
{capture name=addressUrl}{$link->getPageLink('address', true, NULL, 'back='|cat:$back_order_page|cat:'?step=1'|cat:$smarty.capture.default)|escape:'quotes':'UTF-8'}{/capture}
|
||||
{addJsDef addressUrl=$smarty.capture.addressUrl}
|
||||
{capture}{'&multi-shipping=1'|urlencode}{/capture}
|
||||
{addJsDef addressMultishippingUrl=$smarty.capture.addressUrl|cat:$smarty.capture.default}
|
||||
{capture name=addressUrlAdd}{$smarty.capture.addressUrl|cat:'&id_address='}{/capture}
|
||||
{addJsDef addressUrlAdd=$smarty.capture.addressUrlAdd}
|
||||
{addJsDef opc=$opc|boolval}
|
||||
{capture}<h3 class="page-subheading">{l s='Your billing address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleInvoice}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<h3 class="page-subheading">{l s='Your delivery address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleDelivery}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<a class="button button-small btn btn-default" href="{$smarty.capture.addressUrlAdd}" title="{l s='Update' js=1}"><span>{l s='Update' js=1}<i class="icon-chevron-right right"></i></span></a>{/capture}
|
||||
{addJsDefL name=liUpdate}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{/strip}
|
||||
{/block}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -17,301 +17,312 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
<div id="opc_new_account" class="opc-main-block">
|
||||
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
|
||||
<fieldset>
|
||||
<div id="login_form_content" style="display:none;">
|
||||
<!-- Error return block -->
|
||||
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<p class="form-group">
|
||||
<label for="login_email">{l s='Email address'}</label>
|
||||
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="login_passwd">{l s='Password'}</label>
|
||||
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
|
||||
</p>
|
||||
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
|
||||
<div style="clear:both"></div>
|
||||
<p class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
|
||||
</p>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully.'}
|
||||
</div>
|
||||
<!-- Error return block -->
|
||||
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<!-- Account -->
|
||||
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
|
||||
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<p class="required"><sup>*</sup>{l s='Required field'}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="id_gender" id="id_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone">{l s='Phone Number'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="transform-to-customer-block">
|
||||
<p class="strikethrough"><span>{l s='OR'}</span></p>
|
||||
<p class="text-secondary">{l s='Create a customer account using above details.'}</p>
|
||||
<div class="row">
|
||||
<div class="required password form-group col-sm-12">
|
||||
<label for="passwd">{l s='Password'} <sup>*</sup></label>
|
||||
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
|
||||
<span class="form_info">{l s='(five characters min.)'}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
|
||||
<div class="row">
|
||||
<div class="select form-group date-select col-sm-12">
|
||||
<label>{l s='Date of Birth'}</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select id="days" name="days">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="months" name="months">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Sign up for our newsletter!'}</label>
|
||||
{if array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Receive special offers from our partners!'}</label>
|
||||
{if array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
|
||||
{$stateExist = false}
|
||||
{$postCodeExist = false}
|
||||
{$dniExist = false}
|
||||
<div class="row">
|
||||
{foreach from=$dlv_all_fields item=field_name}
|
||||
{if $field_name eq "firstname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode text form-group col-sm-6">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "company"}
|
||||
<div class="text form-group col-sm-6">
|
||||
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "vat_number"}
|
||||
<div id="vat_number_block" style="display:none;">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control" name="vat_number" id="vat_number" value="{if isset($guestInformations) && isset($guestInformations.vat_number) && $guestInformations.vat_number}{$guestInformations.vat_number}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required select form-group col-sm-6">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country" id="id_country">
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state form-group col-sm-6" style="display:none;">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode form-group col-sm-6 unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state form-group col-sm-6 unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
|
||||
</div>
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
{assign var="atLeastOneExists" value=true}
|
||||
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
|
||||
|
||||
<p class="required opc-required">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
{block name='order_opc_edit_guest_info_content'}
|
||||
<div id="opc_new_account" class="opc-main-block">
|
||||
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
{block name='order_opc_edit_guest_login_form'}
|
||||
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
|
||||
<fieldset>
|
||||
<div id="login_form_content" style="display:none;">
|
||||
<!-- Error return block -->
|
||||
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<p class="form-group">
|
||||
<label for="login_email">{l s='Email address'}</label>
|
||||
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="login_passwd">{l s='Password'}</label>
|
||||
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
|
||||
</p>
|
||||
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
|
||||
<div style="clear:both"></div>
|
||||
<p class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
|
||||
</p>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/block}
|
||||
{block name='order_opc_edit_guest_new_account_form'}
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{block name='hook_create_account_top'}
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
{/block}
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully.'}
|
||||
</div>
|
||||
<!-- Error return block -->
|
||||
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<!-- Account -->
|
||||
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
|
||||
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<p class="required"><sup>*</sup>{l s='Required field'}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="id_gender" id="id_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone">{l s='Phone Number'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="transform-to-customer-block">
|
||||
<p class="strikethrough"><span>{l s='OR'}</span></p>
|
||||
<p class="text-secondary">{l s='Create a customer account using above details.'}</p>
|
||||
<div class="row">
|
||||
<div class="required password form-group col-sm-12">
|
||||
<label for="passwd">{l s='Password'} <sup>*</sup></label>
|
||||
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
|
||||
<span class="form_info">{l s='(five characters min.)'}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
|
||||
<div class="row">
|
||||
<div class="select form-group date-select col-sm-12">
|
||||
<label>{l s='Date of Birth'}</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select id="days" name="days">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="months" name="months">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Sign up for our newsletter!'}</label>
|
||||
{if array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Receive special offers from our partners!'}</label>
|
||||
{if array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
|
||||
{$stateExist = false}
|
||||
{$postCodeExist = false}
|
||||
{$dniExist = false}
|
||||
<div class="row">
|
||||
{foreach from=$dlv_all_fields item=field_name}
|
||||
{if $field_name eq "firstname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode text form-group col-sm-6">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "company"}
|
||||
<div class="text form-group col-sm-6">
|
||||
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "vat_number"}
|
||||
<div id="vat_number_block" style="display:none;">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control" name="vat_number" id="vat_number" value="{if isset($guestInformations) && isset($guestInformations.vat_number) && $guestInformations.vat_number}{$guestInformations.vat_number}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required select form-group col-sm-6">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country" id="id_country">
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state form-group col-sm-6" style="display:none;">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode form-group col-sm-6 unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state form-group col-sm-6 unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
|
||||
</div>
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
{assign var="atLeastOneExists" value=true}
|
||||
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
|
||||
|
||||
<p class="required opc-required">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{block name='hook_create_account_form'}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
{/block}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
|
||||
</div>
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
{/if}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
|
||||
</div>
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{strip}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
|
||||
{addJsDef idSelectedState=$guestInformations.id_state|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedState=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
|
||||
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedStateInvoice=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
|
||||
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountry=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
|
||||
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountryInvoice=false}
|
||||
{/if}
|
||||
|
||||
{/strip}
|
||||
{block name='edit_guest_order_opc_js_vars'}
|
||||
{strip}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
|
||||
{addJsDef idSelectedState=$guestInformations.id_state|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedState=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
|
||||
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedStateInvoice=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
|
||||
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountry=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
|
||||
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountryInvoice=false}
|
||||
{/if}
|
||||
{/strip}
|
||||
{/block}
|
||||
|
||||
@@ -1,409 +1,418 @@
|
||||
<div id="opc_new_account" class="opc-main-block">
|
||||
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
<h2>{l s='Account'}</h2>
|
||||
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box">
|
||||
<fieldset>
|
||||
<h3 class="page-subheading">{l s='Already registered?'}</h3>
|
||||
<p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">» {l s='Click here'}</a></p>
|
||||
<div id="login_form_content" style="display:none;">
|
||||
<!-- Error return block -->
|
||||
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<p class="form-group">
|
||||
<label for="login_email">{l s='Email address'}</label>
|
||||
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="login_passwd">{l s='Password'}</label>
|
||||
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
|
||||
</p>
|
||||
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a>
|
||||
<p class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" data-adv-api="1" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
|
||||
</p>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
|
||||
<fieldset>
|
||||
<div class="box">
|
||||
<h3 id="new_account_title" class="page-subheading">{l s='New Customer'}</h3>
|
||||
<div id="opc_account_choice" class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<p class="title_block">{l s='Instant Checkout'}</p>
|
||||
<p class="opc-button">
|
||||
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
|
||||
|
||||
{block name='order_opc_new_account_advanced_content'}
|
||||
<div id="opc_new_account" class="opc-main-block">
|
||||
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
<h2>{l s='Account'}</h2>
|
||||
{block name='order_opc_new_account_advanced_login_form'}
|
||||
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box">
|
||||
<fieldset>
|
||||
<h3 class="page-subheading">{l s='Already registered?'}</h3>
|
||||
<p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">» {l s='Click here'}</a></p>
|
||||
<div id="login_form_content" style="display:none;">
|
||||
<!-- Error return block -->
|
||||
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<p class="form-group">
|
||||
<label for="login_email">{l s='Email address'}</label>
|
||||
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
|
||||
</p>
|
||||
<p class="form-group">
|
||||
<label for="login_passwd">{l s='Password'}</label>
|
||||
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
|
||||
</p>
|
||||
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a>
|
||||
<p class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" data-adv-api="1" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<p class="title_block">{l s='Create your account today and enjoy:'}</p>
|
||||
<ul class="bullet">
|
||||
<li>- {l s='Personalized and secure access'}</li>
|
||||
<li>- {l s='A fast and easy check out process'}</li>
|
||||
<li>- {l s='Separate billing and shipping addresses'}</li>
|
||||
</ul>
|
||||
<p class="opc-button">
|
||||
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
<!-- Error return block -->
|
||||
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<!-- Account -->
|
||||
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
|
||||
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<div class="required text form-group">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
|
||||
</div>
|
||||
<div class="required password is_customer_param form-group">
|
||||
<label for="passwd">{l s='Password'} <sup>*</sup></label>
|
||||
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
|
||||
<span class="form_info">{l s='(five characters min.)'}</span>
|
||||
</div>
|
||||
<div class="required clearfix gender-line">
|
||||
<label>{l s='Social title'}</label>
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<div class="radio-inline">
|
||||
<label for="id_gender{$gender->id_gender}" class="top">
|
||||
<input type="radio" name="id_gender" id="id_gender{$gender->id_gender}" value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} checked="checked"{/if} />
|
||||
{$gender->name}</label></div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
|
||||
</div>
|
||||
<div class="select form-group date-select">
|
||||
<label>{l s='Date of Birth'}</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select id="days" name="days" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{*
|
||||
{l s='January'}
|
||||
{l s='February'}
|
||||
{l s='March'}
|
||||
{l s='April'}
|
||||
{l s='May'}
|
||||
{l s='June'}
|
||||
{l s='July'}
|
||||
{l s='August'}
|
||||
{l s='September'}
|
||||
{l s='October'}
|
||||
{l s='November'}
|
||||
{l s='December'}
|
||||
*}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="months" name="months" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/block}
|
||||
{block name='order_opc_new_account_advanced_new_account_form'}
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
|
||||
<fieldset>
|
||||
<div class="box">
|
||||
<h3 id="new_account_title" class="page-subheading">{l s='New Customer'}</h3>
|
||||
<div id="opc_account_choice" class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<p class="title_block">{l s='Instant Checkout'}</p>
|
||||
<p class="opc-button">
|
||||
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<p class="title_block">{l s='Create your account today and enjoy:'}</p>
|
||||
<ul class="bullet">
|
||||
<li>- {l s='Personalized and secure access'}</li>
|
||||
<li>- {l s='A fast and easy check out process'}</li>
|
||||
<li>- {l s='Separate billing and shipping addresses'}</li>
|
||||
</ul>
|
||||
<p class="opc-button">
|
||||
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Sign up for our newsletter!'}</label>
|
||||
{if array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
<!-- Error return block -->
|
||||
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<!-- Account -->
|
||||
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
|
||||
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<div class="required text form-group">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Receive special offers from our partners!'}</label>
|
||||
{if array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
<div class="required password is_customer_param form-group">
|
||||
<label for="passwd">{l s='Password'} <sup>*</sup></label>
|
||||
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
|
||||
<span class="form_info">{l s='(five characters min.)'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<h3 class="page-subheading top-indent">{l s='Delivery address'}</h3>
|
||||
{$stateExist = false}
|
||||
{$postCodeExist = false}
|
||||
{$dniExist = false}
|
||||
{foreach from=$dlv_all_fields item=field_name}
|
||||
{if $field_name eq "company"}
|
||||
<div class="text form-group">
|
||||
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
|
||||
<div class="required clearfix gender-line">
|
||||
<label>{l s='Social title'}</label>
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<div class="radio-inline">
|
||||
<label for="id_gender{$gender->id_gender}" class="top">
|
||||
<input type="radio" name="id_gender" id="id_gender{$gender->id_gender}" value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} checked="checked"{/if} />
|
||||
{$gender->name}</label></div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
|
||||
</div>
|
||||
<div class="required form-group">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
|
||||
</div>
|
||||
<div class="select form-group date-select">
|
||||
<label>{l s='Date of Birth'}</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select id="days" name="days" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{*
|
||||
{l s='January'}
|
||||
{l s='February'}
|
||||
{l s='March'}
|
||||
{l s='April'}
|
||||
{l s='May'}
|
||||
{l s='June'}
|
||||
{l s='July'}
|
||||
{l s='August'}
|
||||
{l s='September'}
|
||||
{l s='October'}
|
||||
{l s='November'}
|
||||
{l s='December'}
|
||||
*}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="months" name="months" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required dni form-group">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "firstname"}
|
||||
<div class="required text form-group">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required text form-group">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required text form-group">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode text form-group">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required text form-group">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required select form-group">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country" id="id_country" class="form-control">
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state form-group" style="display:none;">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Sign up for our newsletter!'}</label>
|
||||
{if array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode form-group unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state form-group unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required dni form-group">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
|
||||
</div>
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="phone">{l s='Home phone'}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
|
||||
</div>
|
||||
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
|
||||
|
||||
<div class="checkbox">
|
||||
<label for="invoice_address">
|
||||
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Please use another address for invoice'}</label>
|
||||
</div>
|
||||
|
||||
<div id="opc_invoice_address" class="is_customer_param">
|
||||
{assign var=stateExist value=false}
|
||||
{assign var=postCodeExist value=false}
|
||||
{assign var='dniExist' value=false}
|
||||
<h3 class="page-subheading top-indent">{l s='Invoice address'}</h3>
|
||||
{foreach from=$inv_all_fields item=field_name}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Receive special offers from our partners!'}</label>
|
||||
{if array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<h3 class="page-subheading top-indent">{l s='Delivery address'}</h3>
|
||||
{$stateExist = false}
|
||||
{$postCodeExist = false}
|
||||
{$dniExist = false}
|
||||
{foreach from=$dlv_all_fields item=field_name}
|
||||
{if $field_name eq "company"}
|
||||
<div class="form-group">
|
||||
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
|
||||
<div class="text form-group">
|
||||
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required form-group dni_invoice">
|
||||
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<div class="required dni form-group">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "firstname"}
|
||||
<div class="required form-group">
|
||||
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
|
||||
<div class="required text form-group">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required form-group">
|
||||
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
|
||||
<div class="required text form-group">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required form-group">
|
||||
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
|
||||
<div class="required text form-group">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
|
||||
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
|
||||
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode_invoice form-group">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
<div class="required postcode text form-group">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required form-group">
|
||||
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
|
||||
<div class="required text form-group">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required form-group">
|
||||
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
<div class="required select form-group">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country" id="id_country" class="form-control">
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state_invoice form-group" style="display:none;">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<div class="required id_state form-group" style="display:none;">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode_invoice form-group unvisible">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
<div class="required postcode form-group unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state_invoice form-group unvisible">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<div class="required id_state form-group unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required form-group dni_invoice">
|
||||
<div class="required dni form-group">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="other_invoice">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
|
||||
</div>
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="phone_invoice">{l s='Home phone'}</label>
|
||||
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
|
||||
<label for="phone">{l s='Home phone'}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
|
||||
</div>
|
||||
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
|
||||
</div>
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
<p class="required opc-required pull-right">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
</p>
|
||||
<button type="submit" name="submitAccount" id="submitAccount" data-adv-api="1" class="btn btn-default button button-medium"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
|
||||
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
|
||||
|
||||
<div class="checkbox">
|
||||
<label for="invoice_address">
|
||||
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Please use another address for invoice'}</label>
|
||||
</div>
|
||||
|
||||
<div id="opc_invoice_address" class="is_customer_param">
|
||||
{assign var=stateExist value=false}
|
||||
{assign var=postCodeExist value=false}
|
||||
{assign var='dniExist' value=false}
|
||||
<h3 class="page-subheading top-indent">{l s='Invoice address'}</h3>
|
||||
{foreach from=$inv_all_fields item=field_name}
|
||||
{if $field_name eq "company"}
|
||||
<div class="form-group">
|
||||
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required form-group dni_invoice">
|
||||
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "firstname"}
|
||||
<div class="required form-group">
|
||||
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required form-group">
|
||||
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required form-group">
|
||||
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
|
||||
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode_invoice form-group">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required form-group">
|
||||
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required form-group">
|
||||
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state_invoice form-group" style="display:none;">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode_invoice form-group unvisible">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state_invoice form-group unvisible">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required form-group dni_invoice">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="other_invoice">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
|
||||
</div>
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="phone_invoice">{l s='Home phone'}</label>
|
||||
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
|
||||
</div>
|
||||
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
|
||||
</div>
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
<p class="required opc-required pull-right">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
</p>
|
||||
<button type="submit" name="submitAccount" id="submitAccount" data-adv-api="1" class="btn btn-default button button-medium"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
|
||||
|
||||
</div>
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully'}
|
||||
</div>
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully'}
|
||||
</div>
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
{strip}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
|
||||
{addJsDef idSelectedState=$guestInformations.id_state|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedState=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
|
||||
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedStateInvoice=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
|
||||
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountry=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
|
||||
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountryInvoice=false}
|
||||
{/if}
|
||||
{if isset($countries)}
|
||||
{addJsDef countries=$countries}
|
||||
{/if}
|
||||
{/strip}
|
||||
</fieldset>
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
{block name='order_opc_new_account_advanced_js_vars'}
|
||||
{strip}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
|
||||
{addJsDef idSelectedState=$guestInformations.id_state|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedState=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
|
||||
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedStateInvoice=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
|
||||
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountry=false}
|
||||
{/if}
|
||||
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
|
||||
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
|
||||
{else}
|
||||
{addJsDef idSelectedCountryInvoice=false}
|
||||
{/if}
|
||||
{if isset($countries)}
|
||||
{addJsDef countries=$countries}
|
||||
{/if}
|
||||
{/strip}
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
@@ -1,403 +1,411 @@
|
||||
<div id="opc_new_account" class="opc-main-block">
|
||||
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
|
||||
<fieldset>
|
||||
<div class="already_registered_block">
|
||||
<p>
|
||||
{l s='Already have an account?'} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock"> {l s='Login now'}</a> {l s='to make checkout process faster and time saving.'}
|
||||
</p>
|
||||
<p>{l s='Or'}</p>
|
||||
</div>
|
||||
<div id="login_form_content" style="display:none;">
|
||||
<p class="text-secondary"><a href="#" id="idAccountChoice"> {l s='Return'}</a> {l s='to other checkout options.'}</p>
|
||||
<!-- Error return block -->
|
||||
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="login_email">{l s='Email address'}</label>
|
||||
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
|
||||
{block name='order_opc_new_account_content'}
|
||||
<div id="opc_new_account" class="opc-main-block">
|
||||
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
{block name='order_opc_new_account_login_form'}
|
||||
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
|
||||
<fieldset>
|
||||
<div class="already_registered_block">
|
||||
<p>
|
||||
{l s='Already have an account?'} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock"> {l s='Login now'}</a> {l s='to make checkout process faster and time saving.'}
|
||||
</p>
|
||||
<p>{l s='Or'}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="login_passwd">{l s='Password'}</label>
|
||||
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displayLoginFormFieldsAfter'}
|
||||
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
|
||||
<div style="clear:both"></div>
|
||||
<p class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span>{l s='Sign in'}</span></button>
|
||||
</p>
|
||||
{hook h='displayLoginFormBottom'}
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
|
||||
<div id="opc_account_choice" class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="opc-button">
|
||||
<span>
|
||||
<button type="submit" class="opc-button-small opc-btn-primary" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
|
||||
</span>
|
||||
<span>
|
||||
<button type="submit" class="opc-button-small opc-btn-default" id="opc_createAccount"><span>{l s='Create an account'}</span></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully.'}
|
||||
</div>
|
||||
<!-- Error return block -->
|
||||
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<div style="display: none; margin-top: 15px;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully.'}
|
||||
</div>
|
||||
<!-- Account -->
|
||||
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
|
||||
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<p class="required"><sup>*</sup>{l s='Required field'}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="id_gender" id="id_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="required password is_customer_param form-group col-sm-6">
|
||||
<label for="passwd">{l s='Password'} <sup>*</sup></label>
|
||||
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
|
||||
<span class="form_info">{l s='(five characters min.)'}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="customer_phone">{l s='Phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="customer_phone" id="customer_phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" onblur="$('#phone').val($(this).val());"/>
|
||||
</div>
|
||||
</div>
|
||||
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
|
||||
{if isset($birthday) && $birthday}
|
||||
<div class="row">
|
||||
<div class="select form-group date-select col-sm-12">
|
||||
<label>{l s='Date of Birth'}</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select id="days" name="days">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="months" name="months">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div id="login_form_content" style="display:none;">
|
||||
<p class="text-secondary"><a href="#" id="idAccountChoice"> {l s='Return'}</a> {l s='to other checkout options.'}</p>
|
||||
<!-- Error return block -->
|
||||
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="login_email">{l s='Email address'}</label>
|
||||
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="login_passwd">{l s='Password'}</label>
|
||||
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displayLoginFormFieldsAfter'}
|
||||
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
|
||||
<div style="clear:both"></div>
|
||||
<p class="submit">
|
||||
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
|
||||
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span>{l s='Sign in'}</span></button>
|
||||
</p>
|
||||
{hook h='displayLoginFormBottom'}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Sign up for our newsletter!'}</label>
|
||||
{if array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</fieldset>
|
||||
</form>
|
||||
{/block}
|
||||
{block name='order_opc_new_account_form'}
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
|
||||
<div id="opc_account_choice" class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="opc-button">
|
||||
<span>
|
||||
<button type="submit" class="opc-button-small opc-btn-primary" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
|
||||
</span>
|
||||
<span>
|
||||
<button type="submit" class="opc-button-small opc-btn-default" id="opc_createAccount"><span>{l s='Create an account'}</span></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Receive special offers from our partners!'}</label>
|
||||
{if array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully.'}
|
||||
</div>
|
||||
{/if}
|
||||
<!-- Error return block -->
|
||||
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
|
||||
<!-- END Error return block -->
|
||||
<div style="display: none; margin-top: 15px;" id="opc_account_saved" class="alert alert-success">
|
||||
{l s='Account information saved successfully.'}
|
||||
</div>
|
||||
<!-- Account -->
|
||||
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
|
||||
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
|
||||
<p class="required"><sup>*</sup>{l s='Required field'}</p>
|
||||
|
||||
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
|
||||
{$stateExist = false}
|
||||
{$postCodeExist = false}
|
||||
{$dniExist = false}
|
||||
<div class="row">
|
||||
{foreach from=$dlv_all_fields item=field_name}
|
||||
{if $field_name eq "firstname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="id_gender" id="id_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="required password is_customer_param form-group col-sm-6">
|
||||
<label for="passwd">{l s='Password'} <sup>*</sup></label>
|
||||
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
|
||||
<span class="form_info">{l s='(five characters min.)'}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="customer_phone">{l s='Phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="customer_phone" id="customer_phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" onblur="$('#phone').val($(this).val());"/>
|
||||
</div>
|
||||
</div>
|
||||
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
|
||||
{if isset($birthday) && $birthday}
|
||||
<div class="row">
|
||||
<div class="select form-group date-select col-sm-12">
|
||||
<label>{l s='Date of Birth'}</label>
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<select id="days" name="days">
|
||||
<option value="">-</option>
|
||||
{foreach from=$days item=day}
|
||||
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="months" name="months">
|
||||
<option value="">-</option>
|
||||
{foreach from=$months key=k item=month}
|
||||
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select id="years" name="years">
|
||||
<option value="">-</option>
|
||||
{foreach from=$years item=year}
|
||||
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'} </option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
|
||||
{/if}
|
||||
{if isset($newsletter) && $newsletter}
|
||||
<div class="checkbox">
|
||||
<label for="newsletter">
|
||||
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Sign up for our newsletter!'}</label>
|
||||
{if array_key_exists('newsletter', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
|
||||
{/if}
|
||||
{if isset($optin) && $optin}
|
||||
<div class="checkbox">
|
||||
<label for="optin">
|
||||
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Receive special offers from our partners!'}</label>
|
||||
{if array_key_exists('optin', $field_required)}
|
||||
<sup> *</sup>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
|
||||
{/if}
|
||||
|
||||
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
|
||||
{$stateExist = false}
|
||||
{$postCodeExist = false}
|
||||
{$dniExist = false}
|
||||
<div class="row">
|
||||
{foreach from=$dlv_all_fields item=field_name}
|
||||
{if $field_name eq "firstname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="address1">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
|
||||
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode text form-group col-sm-6">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "company"}
|
||||
<div class="text form-group col-sm-6">
|
||||
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required select form-group col-sm-6">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country" id="id_country">
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state form-group col-sm-6" style="display:none;">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode form-group col-sm-6 unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state form-group col-sm-6 unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="city">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode text form-group col-sm-6">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
|
||||
</div>
|
||||
{elseif $field_name eq "company"}
|
||||
<div class="text form-group col-sm-6">
|
||||
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
{assign var="atLeastOneExists" value=true}
|
||||
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
|
||||
|
||||
{* <div class="checkbox">
|
||||
<label for="invoice_address">
|
||||
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Please use another address for invoice'}</label>
|
||||
</div> *}
|
||||
<p class="required opc-required">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
</p>
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{* <div id="opc_invoice_address" class="is_customer_param">
|
||||
{assign var=stateExist value=false}
|
||||
{assign var=postCodeExist value=false}
|
||||
{assign var='dniExist' value=false}
|
||||
<h3 class="page-subheading top-indent">{l s='Additional address'}</h3>
|
||||
{foreach from=$inv_all_fields item=field_name}
|
||||
{if $field_name eq "company"}
|
||||
<div class="form-group">
|
||||
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required form-group dni_invoice">
|
||||
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "firstname"}
|
||||
<div class="required form-group">
|
||||
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required form-group">
|
||||
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required form-group">
|
||||
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
|
||||
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode_invoice form-group">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required form-group">
|
||||
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required form-group">
|
||||
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state_invoice form-group" style="display:none;">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode_invoice form-group unvisible">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required select form-group col-sm-6">
|
||||
<label for="id_country">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country" id="id_country">
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state form-group col-sm-6" style="display:none;">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state_invoice form-group unvisible">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode form-group col-sm-6 unvisible">
|
||||
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state form-group col-sm-6 unvisible">
|
||||
<label for="id_state">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state" id="id_state">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required dni form-group col-sm-6">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
|
||||
</div>
|
||||
<div class="form-group is_customer_param col-sm-6">
|
||||
<label for="other">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
{assign var="atLeastOneExists" value=true}
|
||||
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
|
||||
{if !$dniExist}
|
||||
<div class="required form-group dni_invoice">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
|
||||
|
||||
{* <div class="checkbox">
|
||||
<label for="invoice_address">
|
||||
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Please use another address for invoice'}</label>
|
||||
</div> *}
|
||||
<p class="required opc-required">
|
||||
<sup>*</sup>{l s='Required field'}
|
||||
</p>
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="other_invoice">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
|
||||
</div>
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="phone_invoice">{l s='Home phone'}</label>
|
||||
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
|
||||
</div>
|
||||
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
|
||||
</div> *}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
|
||||
</div>
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
{/if}
|
||||
{* <div id="opc_invoice_address" class="is_customer_param">
|
||||
{assign var=stateExist value=false}
|
||||
{assign var=postCodeExist value=false}
|
||||
{assign var='dniExist' value=false}
|
||||
<h3 class="page-subheading top-indent">{l s='Additional address'}</h3>
|
||||
{foreach from=$inv_all_fields item=field_name}
|
||||
{if $field_name eq "company"}
|
||||
<div class="form-group">
|
||||
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "dni"}
|
||||
{assign var='dniExist' value=true}
|
||||
<div class="required form-group dni_invoice">
|
||||
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{elseif $field_name eq "firstname"}
|
||||
<div class="required form-group">
|
||||
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "lastname"}
|
||||
<div class="required form-group">
|
||||
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address1"}
|
||||
<div class="required form-group">
|
||||
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "address2"}
|
||||
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
|
||||
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "postcode"}
|
||||
{$postCodeExist = true}
|
||||
<div class="required postcode_invoice form-group">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
</div>
|
||||
{elseif $field_name eq "city"}
|
||||
<div class="required form-group">
|
||||
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
|
||||
</div>
|
||||
{elseif $field_name eq "country" || $field_name eq "Country:name"}
|
||||
<div class="required form-group">
|
||||
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
|
||||
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
{foreach from=$countries item=v}
|
||||
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{elseif $field_name eq "state" || $field_name eq 'State:name'}
|
||||
{$stateExist = true}
|
||||
<div class="required id_state_invoice form-group" style="display:none;">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if !$postCodeExist}
|
||||
<div class="required postcode_invoice form-group unvisible">
|
||||
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$stateExist}
|
||||
<div class="required id_state_invoice form-group unvisible">
|
||||
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
|
||||
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
|
||||
<option value="">-</option>
|
||||
</select>
|
||||
</div>
|
||||
{/if}
|
||||
{if !$dniExist}
|
||||
<div class="required form-group dni_invoice">
|
||||
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
|
||||
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="other_invoice">{l s='Additional information'}</label>
|
||||
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
|
||||
</div>
|
||||
{if isset($one_phone_at_least) && $one_phone_at_least}
|
||||
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
|
||||
{/if}
|
||||
<div class="form-group is_customer_param">
|
||||
<label for="phone_invoice">{l s='Home phone'}</label>
|
||||
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
|
||||
</div>
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
|
||||
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
|
||||
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
|
||||
</div>
|
||||
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
|
||||
</div> *}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
|
||||
</div>
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{strip}
|
||||
{if isset($countries)}
|
||||
{addJsDef countries=$countries}
|
||||
{/if}
|
||||
{/strip}
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='opc_new_account_js_vars'}
|
||||
{strip}
|
||||
{if isset($countries)}
|
||||
{addJsDef countries=$countries}
|
||||
{/if}
|
||||
{/strip}
|
||||
{/block}
|
||||
@@ -23,492 +23,527 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if $opc}
|
||||
{assign var="back_order_page" value="order-opc.php"}
|
||||
{else}
|
||||
{assign var="back_order_page" value="order.php"}
|
||||
{/if}
|
||||
{block name='order_opc_content'}
|
||||
{if $opc}
|
||||
{assign var="back_order_page" value="order-opc.php"}
|
||||
{else}
|
||||
{assign var="back_order_page" value="order.php"}
|
||||
{/if}
|
||||
|
||||
<section id="wrapper">
|
||||
<div class="container">
|
||||
<section id="content">
|
||||
<div class="row">
|
||||
{if $PS_CATALOG_MODE}
|
||||
{capture name=path}{l s='Your booking cart'}{/capture}
|
||||
<h2 class="page-heading">{l s='Your booking cart'}</h2>
|
||||
<section id="wrapper">
|
||||
<div class="container">
|
||||
<section id="content">
|
||||
<div class="row">
|
||||
{if $PS_CATALOG_MODE}
|
||||
{capture name=path}{l s='Your booking cart'}{/capture}
|
||||
<h2 class="page-heading">{l s='Your booking cart'}</h2>
|
||||
|
||||
<p class="alert alert-warning">{l s='The hotel is currently not accepting any bookings.'}</p>
|
||||
{else}
|
||||
{if $productNumber}
|
||||
<p class="alert alert-warning">{l s='The hotel is currently not accepting any bookings.'}</p>
|
||||
{else}
|
||||
{if $productNumber}
|
||||
|
||||
<div class="col-md-8">
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
|
||||
{* Accordian for all blocks *}
|
||||
<div class="accordion" id="oprder-opc-accordion">
|
||||
<input type="hidden" name="opc_id_address_delivery" value="{$cart->id_address_delivery}" id="opc_id_address_delivery" />
|
||||
<input type="hidden" name="opc_id_address_invoice" value="{$cart->id_address_invoice}" id="opc_id_address_invoice" />
|
||||
{if isset($checkout_process_steps) && $checkout_process_steps}
|
||||
{foreach $checkout_process_steps as $step}
|
||||
{if $step->step_key == 'checkout_rooms_summary'}
|
||||
<div class="card">
|
||||
<div class="card-header" id="shopping-cart-summary-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-shopping-cart" aria-expanded="true" aria-controls="collapse-shopping-cart">
|
||||
<span>{l s='Rooms & Price Summary'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{if $step->step_is_reachable}
|
||||
<div id="collapse-shopping-cart" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="shopping-cart-head" data-parent="#oprder-opc-accordion">
|
||||
<div class="card-body">
|
||||
{* This tpl includes room type lists in the orders *}
|
||||
{include file="$tpl_dir./shopping-cart.tpl"}
|
||||
{block name='order_opc_accordion'}
|
||||
<div class="col-md-8">
|
||||
{block name='order_opc_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
{* Accordian for all blocks *}
|
||||
<div class="accordion" id="oprder-opc-accordion">
|
||||
<input type="hidden" name="opc_id_address_delivery" value="{$cart->id_address_delivery}" id="opc_id_address_delivery" />
|
||||
<input type="hidden" name="opc_id_address_invoice" value="{$cart->id_address_invoice}" id="opc_id_address_invoice" />
|
||||
{if isset($checkout_process_steps) && $checkout_process_steps}
|
||||
{foreach $checkout_process_steps as $step}
|
||||
{if $step->step_key == 'checkout_rooms_summary'}
|
||||
{block name='order_opc_summary'}
|
||||
<div class="card">
|
||||
<div class="card-header" id="shopping-cart-summary-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-shopping-cart" aria-expanded="true" aria-controls="collapse-shopping-cart">
|
||||
<span>{l s='Rooms & Price Summary'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{if $step->step_is_reachable}
|
||||
<div id="collapse-shopping-cart" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="shopping-cart-head" data-parent="#oprder-opc-accordion">
|
||||
<div class="card-body">
|
||||
{* This tpl includes room type lists in the orders *}
|
||||
{block name='shopping_cart_container'}
|
||||
{include file="$tpl_dir./shopping-cart.tpl"}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{* End Shopping Cart *}
|
||||
{elseif $step->step_key == 'checkout_customer'}
|
||||
<div class="card" id="guest-info-block">
|
||||
<div class="card-header" id="guest-info-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-guest-info" aria-expanded="true" aria-controls="collapse-guest-info">
|
||||
<span>{l s='Guest Information'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{if $step->step_is_reachable}
|
||||
<div id="collapse-guest-info" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="guest-info-head" data-parent="#oprder-opc-accordion">
|
||||
<div class="card-body">
|
||||
{if $is_logged || $isGuest}
|
||||
{if $is_logged}
|
||||
<form id="customer_guest_detail_form">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="customer_guest_detail" id="customer_guest_detail" value="1" {if $id_customer_guest_detail}checked="checked"{/if}/>
|
||||
<label for="customer_guest_detail" id="customer_guest_detail_txt">{l s='Booking for someone else?'}</label>
|
||||
</p>
|
||||
<div id="customer-guest-detail-container" {if !$id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="customer_guest_detail_gender" id="customer_guest_detail_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.customer_guest_detail_gender) && $smarty.post.customer_guest_detail_gender == $gender->id_gender || (isset($customer_guest_detail) && $customer_guest_detail.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate is_required" id="customer_guest_detail_firstname" name="customer_guest_detail_firstname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_firstname) && $smarty.post.customer_guest_detail_firstname} value="{$smarty.post.customer_guest_detail_firstname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.firstname} value="{$customer_guest_detail.firstname}"{/if}/>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate is_required" id="customer_guest_detail_lastname" name="customer_guest_detail_lastname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_lastname) && $smarty.post.customer_guest_detail_lastname} value="{$smarty.post.customer_guest_detail_lastname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.lastname} value="{$customer_guest_detail.lastname}"{/if}/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate is_required" id="customer_guest_detail_email" name="customer_guest_detail_email" data-validate="isEmail" data-maxSize="128"{if isset($smarty.post.customer_guest_detail_email) && $smarty.post.customer_guest_detail_email} value="{$smarty.post.customer_guest_detail_email}"{elseif isset($customer_guest_detail) && $customer_guest_detail.email} value="{$customer_guest_detail.email}"{/if}/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate is_required" name="customer_guest_detail_phone" id="customer_guest_detail_phone" data-validate="isPhoneNumber" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_phone) && $smarty.post.customer_guest_detail_phone} value="{$smarty.post.customer_guest_detail_phone}"{elseif isset($customer_guest_detail) && $customer_guest_detail.phone} value="{$customer_guest_detail.phone}"{/if}/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
<div id="checkout-guest-info-block" {if $id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Name'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">
|
||||
{if $isGuest}
|
||||
{$guestInformations['customer_firstname']|escape:'html':'UTF-8'} {$guestInformations['customer_lastname']|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{$guestInformations['firstname']|escape:'html':'UTF-8'} {$guestInformations['lastname']|escape:'html':'UTF-8'}
|
||||
{/block}
|
||||
{* End Shopping Cart *}
|
||||
{elseif $step->step_key == 'checkout_customer'}
|
||||
{block name='order_opc_guest_info'}
|
||||
<div class="card" id="guest-info-block">
|
||||
<div class="card-header" id="guest-info-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-guest-info" aria-expanded="true" aria-controls="collapse-guest-info">
|
||||
<span>{l s='Guest Information'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{if $step->step_is_reachable}
|
||||
<div id="collapse-guest-info" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="guest-info-head" data-parent="#oprder-opc-accordion">
|
||||
<div class="card-body">
|
||||
{if $is_logged || $isGuest}
|
||||
{if $is_logged}
|
||||
<form id="customer_guest_detail_form">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="customer_guest_detail" id="customer_guest_detail" value="1" {if $id_customer_guest_detail}checked="checked"{/if}/>
|
||||
<label for="customer_guest_detail" id="customer_guest_detail_txt">{l s='Booking for someone else?'}</label>
|
||||
</p>
|
||||
<div id="customer-guest-detail-container" {if !$id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="customer_guest_detail_gender" id="customer_guest_detail_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.customer_guest_detail_gender) && $smarty.post.customer_guest_detail_gender == $gender->id_gender || (isset($customer_guest_detail) && $customer_guest_detail.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="firstname">{l s='First name'} <sup>*</sup></label>
|
||||
<input type="text" class="text form-control validate is_required" id="customer_guest_detail_firstname" name="customer_guest_detail_firstname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_firstname) && $smarty.post.customer_guest_detail_firstname} value="{$smarty.post.customer_guest_detail_firstname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.firstname} value="{$customer_guest_detail.firstname}"{/if}/>
|
||||
</div>
|
||||
<div class="required form-group col-sm-5">
|
||||
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
|
||||
<input type="text" class="form-control validate is_required" id="customer_guest_detail_lastname" name="customer_guest_detail_lastname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_lastname) && $smarty.post.customer_guest_detail_lastname} value="{$smarty.post.customer_guest_detail_lastname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.lastname} value="{$customer_guest_detail.lastname}"{/if}/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="required text form-group col-sm-6">
|
||||
<label for="email">{l s='Email'} <sup>*</sup></label>
|
||||
<input type="email" class="text form-control validate is_required" id="customer_guest_detail_email" name="customer_guest_detail_email" data-validate="isEmail" data-maxSize="128"{if isset($smarty.post.customer_guest_detail_email) && $smarty.post.customer_guest_detail_email} value="{$smarty.post.customer_guest_detail_email}"{elseif isset($customer_guest_detail) && $customer_guest_detail.email} value="{$customer_guest_detail.email}"{/if}/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
|
||||
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
|
||||
<input type="text" class="text form-control validate is_required" name="customer_guest_detail_phone" id="customer_guest_detail_phone" data-validate="isPhoneNumber" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_phone) && $smarty.post.customer_guest_detail_phone} value="{$smarty.post.customer_guest_detail_phone}"{elseif isset($customer_guest_detail) && $customer_guest_detail.phone} value="{$customer_guest_detail.phone}"{/if}/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Email'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">{$guestInformations['email']|escape:'html':'UTF-8'}</div>
|
||||
</div>
|
||||
{if (isset({$guestInformations['phone']}) && {$guestInformations['phone']})}
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">
|
||||
{l s='Phone Number'}
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">
|
||||
{$guestInformations['phone']|escape:'html':'UTF-8'}
|
||||
<div id="checkout-guest-info-block" {if $id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Name'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">
|
||||
{if $isGuest}
|
||||
{$guestInformations['customer_firstname']|escape:'html':'UTF-8'} {$guestInformations['customer_lastname']|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{$guestInformations['firstname']|escape:'html':'UTF-8'} {$guestInformations['lastname']|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Email'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">{$guestInformations['email']|escape:'html':'UTF-8'}</div>
|
||||
</div>
|
||||
{if (isset({$guestInformations['phone']}) && {$guestInformations['phone']})}
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">
|
||||
{l s='Phone Number'}
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">
|
||||
{$guestInformations['phone']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{* proceed only if no order restrict errors are there *}
|
||||
{if !$orderRestrictErr}
|
||||
{block name='order_opc_guest_info_actions'}
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 proceed_btn_block">
|
||||
<a class="btn btn-default button button-medium pull-right" href="{$link->getPageLink('order-opc', null, null, ['proceed_to_payment' => 1])}" title="Proceed to Payment" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed'}
|
||||
</span>
|
||||
</a>
|
||||
{if $isGuest}
|
||||
<a class="btn btn-default btn-edit-guest-info pull-right" href="#" rel="nofollow">
|
||||
<span>
|
||||
{l s='Edit'}
|
||||
</span>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{else}
|
||||
<!-- Create account / Guest account / Login block -->
|
||||
{block name='order_opc_new_account_container'}
|
||||
{include file="$tpl_dir./order-opc-new-account.tpl"}
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
{if $is_logged || $isGuest}
|
||||
<div class="card-body hidden" id="order-opc-edit-guest-info">
|
||||
{block name='order_opc_edit_guest_container'}
|
||||
{include file="./order-opc-edit-guest-info.tpl"}
|
||||
{/block}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{* proceed only if no order restrict errors are there *}
|
||||
{if !$orderRestrictErr}
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 proceed_btn_block">
|
||||
<a class="btn btn-default button button-medium pull-right" href="{$link->getPageLink('order-opc', null, null, ['proceed_to_payment' => 1])}" title="Proceed to Payment" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed'}
|
||||
</span>
|
||||
</a>
|
||||
{if $isGuest}
|
||||
<a class="btn btn-default btn-edit-guest-info pull-right" href="#" rel="nofollow">
|
||||
<span>
|
||||
{l s='Edit'}
|
||||
</span>
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
<!-- Create account / Guest account / Login block -->
|
||||
{include file="$tpl_dir./order-opc-new-account.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
{if $is_logged || $isGuest}
|
||||
<div class="card-body hidden" id="order-opc-edit-guest-info">
|
||||
{include file="./order-opc-edit-guest-info.tpl"}
|
||||
{/block}
|
||||
{elseif $step->step_key == 'checkout_payment'}
|
||||
{* <div class="card col-sm-12">
|
||||
<!-- Carrier -->
|
||||
{include file="$tpl_dir./order-carrier.tpl"}
|
||||
<!-- END Carrier -->
|
||||
</div> *}
|
||||
{block name='order_opc_payment_block'}
|
||||
<div class="card">
|
||||
<div class="card-header" id="order-payment-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-order-payment" aria-expanded="true" aria-controls="collapse-order-payment">
|
||||
<span>{l s='Payment Information'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{elseif $step->step_key == 'checkout_payment'}
|
||||
{* <div class="card col-sm-12">
|
||||
<!-- Carrier -->
|
||||
{include file="$tpl_dir./order-carrier.tpl"}
|
||||
<!-- END Carrier -->
|
||||
</div> *}
|
||||
<div class="card">
|
||||
<div class="card-header" id="order-payment-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-order-payment" aria-expanded="true" aria-controls="collapse-order-payment">
|
||||
<span>{l s='Payment Information'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{if $step->step_is_reachable}
|
||||
<div id="collapse-order-payment" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="order-payment-head" data-parent="#oprder-opc-accordion">
|
||||
<div class="card-body">
|
||||
<!-- Payment -->
|
||||
{include file="$tpl_dir./order-payment.tpl"}
|
||||
<!-- END Payment -->
|
||||
{if $step->step_is_reachable}
|
||||
<div id="collapse-order-payment" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="order-payment-head" data-parent="#oprder-opc-accordion">
|
||||
<div class="card-body">
|
||||
<!-- Payment -->
|
||||
{block name='order_payment_container'}
|
||||
{include file="$tpl_dir./order-payment.tpl"}
|
||||
{/block}
|
||||
<!-- END Payment -->
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='order_opc_cart_summary_block'}
|
||||
<div class="col-md-4">
|
||||
{* Total cart details, tax details, advance payment details and voucher details *}
|
||||
<div class="col-sm-12 card cart_total_detail_block">
|
||||
{* {if $total_rooms}
|
||||
<p>
|
||||
<span>{l s='Total rooms cost'}{if $display_tax_label}{l s=' (tax excl.)'}{/if}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$total_rooms}</span>
|
||||
</p>
|
||||
{/if}
|
||||
{if (isset($total_extra_demands) && $total_extra_demands) || (isset($total_additional_services) && $total_additional_services)}
|
||||
<p>
|
||||
<span>{l s='Total extra services'}{if $display_tax_label}{l s=' (tax excl.)'}{/if}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_extra_demands + $total_additional_services)}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
{* {if $total_service_products}
|
||||
<p>
|
||||
<span>{l s='Total service products cost'}{if $display_tax_label}{l s=' (tax excl.)'}{/if}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$total_service_products}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
<p>
|
||||
<span>
|
||||
{l s='Total rooms cost'}
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='(tax incl)'}
|
||||
{else}
|
||||
{l s='(tax excl)'}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{assign var='total_rooms_cost' value=($total_rooms_wt + $total_extra_demands_wt + $total_additional_services_wt + $total_additional_services_auto_add_wt)}
|
||||
{else}
|
||||
{assign var='total_rooms_cost' value=($total_rooms + $total_extra_demands + $total_additional_services + $total_additional_services_auto_add)}
|
||||
{/if}
|
||||
{displayPrice price=$total_rooms_cost}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_discount_block {if $total_discounts == 0}unvisible{/if}">
|
||||
<span>
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='Total Discount (tax incl)'}
|
||||
{else}
|
||||
{l s='Total Discount (tax excl)'}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Total Discount'}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{assign var='total_discounts_negative' value=$total_discounts * -1}
|
||||
{else}
|
||||
{assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1}
|
||||
{/if}
|
||||
{displayPrice price=$total_discounts_negative}
|
||||
</span>
|
||||
</p>
|
||||
{* {if $priceDisplay != 0} *}
|
||||
<p class="cart_total_price {if $total_discounts == 0}unvisible{/if}" >
|
||||
<span>
|
||||
{l s='Total'}
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='(tax incl)'}
|
||||
{else}
|
||||
{l s='(tax excl)'}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{displayPrice price=$total_price - $convenience_fee_wt}
|
||||
{else}
|
||||
{displayPrice price=$total_price_without_tax - $convenience_fee}
|
||||
{/if}
|
||||
</span>
|
||||
</p>
|
||||
{* {/if} *}
|
||||
{* {if $total_rooms_wt != 0}
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Tax on rooms'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_rooms_wt - $total_rooms)}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
{if $convenience_fee_wt}
|
||||
<p>
|
||||
<span>{l s='Convenience Fees'}</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{displayPrice price=$convenience_fee_wt}
|
||||
{else}
|
||||
{displayPrice price=$convenience_fee}
|
||||
{/if}
|
||||
</span>
|
||||
</p>
|
||||
{/if}
|
||||
{block name='hook_display_cart_total_price_label_before_tax'}
|
||||
{hook h="displayCartTotalPriceLabel" type='before_tax'}
|
||||
{/block}
|
||||
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Total tax'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_tax)}</span>
|
||||
</p>
|
||||
{* {if $use_taxes && $show_taxes && ($total_extra_demands_wt + $total_additional_services_wt)!= 0 }
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Tax on services'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=(($total_extra_demands_wt - $total_extra_demands) + ($total_additional_services_wt - $total_additional_services))}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
{* {if $use_taxes && $show_taxes && $total_service_products_wt != 0 }
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Tax on service products'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_service_products_wt - $total_service_products)}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
|
||||
<p {if $total_wrapping == 0}class="unvisible"{/if}>
|
||||
<span>
|
||||
{if $use_taxes}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift-wrapping cost'}{/if}
|
||||
{else}
|
||||
{l s='Total gift-wrapping cost'}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{/if}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
{if isset($is_advance_payment) && $is_advance_payment}
|
||||
<p>
|
||||
<span>{l s='Advance Payment Amount'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$advPaymentAmount}</span>
|
||||
</p>
|
||||
<p>
|
||||
<span>{l s='Due Amount'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$dueAmount}</span>
|
||||
</p>
|
||||
{/if}
|
||||
<p class="cart_final_total_block">
|
||||
<span>{l s='Final Total'}</span>
|
||||
{if isset($is_advance_payment) && $is_advance_payment}
|
||||
<span class="cart_total_values">{displayPrice price=$advPaymentAmount}</span>
|
||||
{else}
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes}
|
||||
{displayPrice price=$total_price}
|
||||
{else}
|
||||
{displayPrice price=$total_price_without_tax}
|
||||
{/if}
|
||||
</span>
|
||||
<div class="hookDisplayProductPriceBlock-price">
|
||||
{block name='hook_display_cart_total_price_label'}
|
||||
{hook h="displayCartTotalPriceLabel"}
|
||||
{/block}
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
{* Check if voucher feature is enabled currently *}
|
||||
{if $voucherAllowed}
|
||||
{block name='cart_voucher_detail_block'}
|
||||
{* Cart vouchers block *}
|
||||
<div class="col-sm-12 card cart_voucher_detail_block">
|
||||
<p class="cart_voucher_head">{l s='Apply Coupon'}</p>
|
||||
<p><span>{l s='Have promocode ?'}</span></p>
|
||||
{* Applied vouchers to the cart *}
|
||||
{if sizeof($discounts)}
|
||||
<div class="row">
|
||||
{foreach $discounts as $discount}
|
||||
{if ((float)$discount.value_real == 0 && $discount.free_shipping != 1) || ((float)$discount.value_real == 0 && $discount.code == '')}
|
||||
{continue}
|
||||
{/if}
|
||||
|
||||
<div class="col-sm-12 margin-btm-10 cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
|
||||
<span class="cart_discount_name">
|
||||
{$discount.name|escape:'html':'UTF-8'}
|
||||
{if strlen($discount.code)}
|
||||
<a
|
||||
href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}"
|
||||
class="price_discount_delete pull-right"
|
||||
title="{l s='Delete'}">
|
||||
<i class="icon-times"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="voucher_apply_state pull-right">
|
||||
<img src="{$img_dir}/icon/form-ok-circle.svg" /> {l s='Applied'}
|
||||
</span>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<hr class="seperator">
|
||||
{/if}
|
||||
<div class="row margin-btm-20">
|
||||
{* Form to apply voucher to the cart *}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<div class="col-sm-8 col-xs-12 col-md-12 col-lg-8">
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-12 col-md-12 col-lg-4 submit_discount_div">
|
||||
<button type="submit" name="submitAddDiscount" class="opc-button-small opc-btn-primary">
|
||||
<span>{l s='Apply'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{* The available highlighted vouchers for the customer*}
|
||||
{if $displayVouchers}
|
||||
<p class="cart_voucher_head">{l s='Available Coupons'}</p>
|
||||
<div class="row avail_vouchers_block">
|
||||
{foreach from=$displayVouchers key=key item=voucher name=availVoucher}
|
||||
<div class="col-xs-12">
|
||||
<p class="avail_voucher_name">
|
||||
<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'} -</span> {$voucher.name}
|
||||
</p>
|
||||
{if not $smarty.foreach.availVoucher.last}
|
||||
<hr class="seperator">
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{* Total cart details, tax details, advance payment details and voucher details *}
|
||||
<div class="col-sm-12 card cart_total_detail_block">
|
||||
{* {if $total_rooms}
|
||||
<p>
|
||||
<span>{l s='Total rooms cost'}{if $display_tax_label}{l s=' (tax excl.)'}{/if}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$total_rooms}</span>
|
||||
</p>
|
||||
{/if}
|
||||
{if (isset($total_extra_demands) && $total_extra_demands) || (isset($total_additional_services) && $total_additional_services)}
|
||||
<p>
|
||||
<span>{l s='Total extra services'}{if $display_tax_label}{l s=' (tax excl.)'}{/if}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_extra_demands + $total_additional_services)}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
{* {if $total_service_products}
|
||||
<p>
|
||||
<span>{l s='Total service products cost'}{if $display_tax_label}{l s=' (tax excl.)'}{/if}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$total_service_products}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
<p>
|
||||
<span>
|
||||
{l s='Total rooms cost'}
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='(tax incl)'}
|
||||
{else}
|
||||
{l s='(tax excl)'}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{assign var='total_rooms_cost' value=($total_rooms_wt + $total_extra_demands_wt + $total_additional_services_wt + $total_additional_services_auto_add_wt)}
|
||||
{else}
|
||||
{assign var='total_rooms_cost' value=($total_rooms + $total_extra_demands + $total_additional_services + $total_additional_services_auto_add)}
|
||||
{/if}
|
||||
{displayPrice price=$total_rooms_cost}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_discount_block {if $total_discounts == 0}unvisible{/if}">
|
||||
<span>
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='Total Discount (tax incl)'}
|
||||
{else}
|
||||
{l s='Total Discount (tax excl)'}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Total Discount'}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{assign var='total_discounts_negative' value=$total_discounts * -1}
|
||||
{else}
|
||||
{assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1}
|
||||
{/if}
|
||||
{displayPrice price=$total_discounts_negative}
|
||||
</span>
|
||||
</p>
|
||||
{* {if $priceDisplay != 0} *}
|
||||
<p class="cart_total_price {if $total_discounts == 0}unvisible{/if}" >
|
||||
<span>
|
||||
{l s='Total'}
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='(tax incl)'}
|
||||
{else}
|
||||
{l s='(tax excl)'}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{displayPrice price=$total_price - $convenience_fee_wt}
|
||||
{else}
|
||||
{displayPrice price=$total_price_without_tax - $convenience_fee}
|
||||
{/if}
|
||||
</span>
|
||||
</p>
|
||||
{* {/if} *}
|
||||
{* {if $total_rooms_wt != 0}
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Tax on rooms'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_rooms_wt - $total_rooms)}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
{if $convenience_fee_wt}
|
||||
<p>
|
||||
<span>{l s='Convenience Fees'}</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{displayPrice price=$convenience_fee_wt}
|
||||
{else}
|
||||
{displayPrice price=$convenience_fee}
|
||||
{/if}
|
||||
</span>
|
||||
</p>
|
||||
{/if}
|
||||
{hook h="displayCartTotalPriceLabel" type='before_tax'}
|
||||
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Total tax'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_tax)}</span>
|
||||
</p>
|
||||
{* {if $use_taxes && $show_taxes && ($total_extra_demands_wt + $total_additional_services_wt)!= 0 }
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Tax on services'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=(($total_extra_demands_wt - $total_extra_demands) + ($total_additional_services_wt - $total_additional_services))}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
{* {if $use_taxes && $show_taxes && $total_service_products_wt != 0 }
|
||||
<p class="cart_total_tax">
|
||||
<span>{l s='Tax on service products'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=($total_service_products_wt - $total_service_products)}</span>
|
||||
</p>
|
||||
{/if} *}
|
||||
|
||||
<p {if $total_wrapping == 0}class="unvisible"{/if}>
|
||||
<span>
|
||||
{if $use_taxes}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift-wrapping cost'}{/if}
|
||||
{else}
|
||||
{l s='Total gift-wrapping cost'}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{/if}
|
||||
</span>
|
||||
</p>
|
||||
|
||||
{if isset($is_advance_payment) && $is_advance_payment}
|
||||
<p>
|
||||
<span>{l s='Advance Payment Amount'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$advPaymentAmount}</span>
|
||||
</p>
|
||||
<p>
|
||||
<span>{l s='Due Amount'}</span>
|
||||
<span class="cart_total_values">{displayPrice price=$dueAmount}</span>
|
||||
</p>
|
||||
{/if}
|
||||
<p class="cart_final_total_block">
|
||||
<span>{l s='Final Total'}</span>
|
||||
{if isset($is_advance_payment) && $is_advance_payment}
|
||||
<span class="cart_total_values">{displayPrice price=$advPaymentAmount}</span>
|
||||
{else}
|
||||
<span class="cart_total_values">
|
||||
{if $use_taxes}
|
||||
{displayPrice price=$total_price}
|
||||
{else}
|
||||
{displayPrice price=$total_price_without_tax}
|
||||
{/if}
|
||||
</span>
|
||||
<div class="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayCartTotalPriceLabel"}
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
{* Check if voucher feature is enabled currently *}
|
||||
{if $voucherAllowed}
|
||||
{* Cart vouchers block *}
|
||||
<div class="col-sm-12 card cart_voucher_detail_block">
|
||||
<p class="cart_voucher_head">{l s='Apply Coupon'}</p>
|
||||
<p><span>{l s='Have promocode ?'}</span></p>
|
||||
{* Applied vouchers to the cart *}
|
||||
{if sizeof($discounts)}
|
||||
<div class="row">
|
||||
{foreach $discounts as $discount}
|
||||
{if ((float)$discount.value_real == 0 && $discount.free_shipping != 1) || ((float)$discount.value_real == 0 && $discount.code == '')}
|
||||
{continue}
|
||||
{/if}
|
||||
|
||||
<div class="col-sm-12 margin-btm-10 cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
|
||||
<span class="cart_discount_name">
|
||||
{$discount.name|escape:'html':'UTF-8'}
|
||||
{if strlen($discount.code)}
|
||||
<a
|
||||
href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}"
|
||||
class="price_discount_delete pull-right"
|
||||
title="{l s='Delete'}">
|
||||
<i class="icon-times"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="voucher_apply_state pull-right">
|
||||
<img src="{$img_dir}/icon/form-ok-circle.svg" /> {l s='Applied'}
|
||||
</span>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
<hr class="seperator">
|
||||
{/if}
|
||||
<div class="row margin-btm-20">
|
||||
{* Form to apply voucher to the cart *}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<div class="col-sm-8 col-xs-12 col-md-12 col-lg-8">
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-12 col-md-12 col-lg-4 submit_discount_div">
|
||||
<button type="submit" name="submitAddDiscount" class="opc-button-small opc-btn-primary">
|
||||
<span>{l s='Apply'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{* The available highlighted vouchers for the customer*}
|
||||
{if $displayVouchers}
|
||||
<p class="cart_voucher_head">{l s='Available Coupons'}</p>
|
||||
<div class="row avail_vouchers_block">
|
||||
{foreach from=$displayVouchers key=key item=voucher name=availVoucher}
|
||||
<div class="col-xs-12">
|
||||
<p class="avail_voucher_name">
|
||||
<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'} -</span> {$voucher.name}
|
||||
</p>
|
||||
{if not $smarty.foreach.availVoucher.last}
|
||||
<hr class="seperator">
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{* End Voucher Block *}
|
||||
{block name='hook_display_cart_right_column'}
|
||||
{hook h="displayCartRightColumn"}
|
||||
{/block}
|
||||
</div>
|
||||
{/if}
|
||||
{* End Voucher Block *}
|
||||
{hook h="displayCartRightColumn"}
|
||||
</div>
|
||||
{else}
|
||||
{capture name=path}{l s='Your booking cart'}{/capture}
|
||||
<h2 class="page-heading">{l s='Your booking cart'}</h2>
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
{else}
|
||||
{capture name=path}{l s='Your booking cart'}{/capture}
|
||||
<h2 class="page-heading">{l s='Your booking cart'}</h2>
|
||||
{block name='order_opc_errors_block'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
|
||||
<p class="alert alert-warning">{l s='You have not added any room to your cart yet.'}</p>
|
||||
<p class="alert alert-warning">{l s='You have not added any room to your cart yet.'}</p>
|
||||
{/if}
|
||||
{block name='order_opc_js_vars'}
|
||||
{strip}
|
||||
{addJsDef imgDir=$img_dir}
|
||||
{addJsDef authenticationUrl=$link->getPageLink("authentication", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderOpcUrl=$link->getPageLink("order-opc", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef guestTrackingUrl=$link->getPageLink("guest-tracking", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef addressUrl=$link->getPageLink("address", true, NULL, "back={$back_order_page}")|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderProcess='order-opc'}
|
||||
{addJsDef guestCheckoutEnabled=$PS_GUEST_CHECKOUT_ENABLED|intval}
|
||||
{addJsDef displayPrice=$priceDisplay}
|
||||
{addJsDef taxEnabled=$use_taxes}
|
||||
{addJsDef conditionEnabled=$conditions|intval}
|
||||
{addJsDef errorCarrier=$errorCarrier|@addcslashes:'\''}
|
||||
{addJsDef errorTOS=$errorTOS|@addcslashes:'\''}
|
||||
{addJsDef checkedCarrier=$checked|intval}
|
||||
{addJsDef addresses=array()}
|
||||
{addJsDef isVirtualCart=$isVirtualCart|intval}
|
||||
{addJsDef isPaymentStep=$isPaymentStep|intval}
|
||||
{addJsDef PS_REGISTRATION_PROCESS_TYPE=$PS_REGISTRATION_PROCESS_TYPE|intval}
|
||||
{addJsDefL name=txtWithTax}{l s='(tax incl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtWithoutTax}{l s='(tax excl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtHasBeenSelected}{l s='has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsSelected}{l s='No carrier has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsNeeded}{l s='No carrier is needed for this order' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtConditionsIsNotNeeded}{l s='You do not need to accept the Terms of Service for this order.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsAccepted}{l s='The service terms have been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsNotAccepted}{l s='The service terms have not been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtThereis}{l s='There is' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtErrors}{l s='Error(s)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtDeliveryAddress}{l s='Delivery address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInvoiceAddress}{l s='Invoice address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtModifyMyAddress}{l s='Modify my address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInstantCheckout}{l s='Instant checkout' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtSelectAnAddressFirst}{l s='Please start by selecting an address.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtFree}{l s='Free' js=1}{/addJsDefL}
|
||||
|
||||
{capture}{if $back}&mod={$back|urlencode}{/if}{/capture}
|
||||
{capture name=addressUrl}{$link->getPageLink('address', true, NULL, 'back='|cat:$back_order_page|cat:'?step=1'|cat:$smarty.capture.default)|escape:'quotes':'UTF-8'}{/capture}
|
||||
{addJsDef addressUrl=$smarty.capture.addressUrl}
|
||||
{capture}{'&multi-shipping=1'|urlencode}{/capture}
|
||||
{addJsDef addressMultishippingUrl=$smarty.capture.addressUrl|cat:$smarty.capture.default}
|
||||
{capture name=addressUrlAdd}{$smarty.capture.addressUrl|cat:'&id_address='}{/capture}
|
||||
{addJsDef addressUrlAdd=$smarty.capture.addressUrlAdd}
|
||||
{addJsDef opc=$opc|boolval}
|
||||
{capture}<h3 class="page-subheading">{l s='Your billing address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleInvoice}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<h3 class="page-subheading">{l s='Your delivery address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleDelivery}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<a class="button button-small btn btn-default" href="{$smarty.capture.addressUrlAdd}" title="{l s='Update' js=1}"><span>{l s='Update' js=1}<i class="icon-chevron-right right"></i></span></a>{/capture}
|
||||
{addJsDefL name=liUpdate}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{addJsDefL name=txtExtraDemandSucc}{l s='Updated Successfully' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtMaxQuantityAdded}{l s='Maximum quantity of service added' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtExtraDemandErr}{l s='Some error occurred while updating demands' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{/block}
|
||||
{/if}
|
||||
{strip}
|
||||
{addJsDef imgDir=$img_dir}
|
||||
{addJsDef authenticationUrl=$link->getPageLink("authentication", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderOpcUrl=$link->getPageLink("order-opc", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef guestTrackingUrl=$link->getPageLink("guest-tracking", true)|escape:'quotes':'UTF-8'}
|
||||
{addJsDef addressUrl=$link->getPageLink("address", true, NULL, "back={$back_order_page}")|escape:'quotes':'UTF-8'}
|
||||
{addJsDef orderProcess='order-opc'}
|
||||
{addJsDef guestCheckoutEnabled=$PS_GUEST_CHECKOUT_ENABLED|intval}
|
||||
{addJsDef displayPrice=$priceDisplay}
|
||||
{addJsDef taxEnabled=$use_taxes}
|
||||
{addJsDef conditionEnabled=$conditions|intval}
|
||||
{addJsDef errorCarrier=$errorCarrier|@addcslashes:'\''}
|
||||
{addJsDef errorTOS=$errorTOS|@addcslashes:'\''}
|
||||
{addJsDef checkedCarrier=$checked|intval}
|
||||
{addJsDef addresses=array()}
|
||||
{addJsDef isVirtualCart=$isVirtualCart|intval}
|
||||
{addJsDef isPaymentStep=$isPaymentStep|intval}
|
||||
{addJsDef PS_REGISTRATION_PROCESS_TYPE=$PS_REGISTRATION_PROCESS_TYPE|intval}
|
||||
{addJsDefL name=txtWithTax}{l s='(tax incl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtWithoutTax}{l s='(tax excl.)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtHasBeenSelected}{l s='has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsSelected}{l s='No carrier has been selected' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtNoCarrierIsNeeded}{l s='No carrier is needed for this order' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtConditionsIsNotNeeded}{l s='You do not need to accept the Terms of Service for this order.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsAccepted}{l s='The service terms have been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtTOSIsNotAccepted}{l s='The service terms have not been accepted' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtThereis}{l s='There is' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtErrors}{l s='Error(s)' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtDeliveryAddress}{l s='Delivery address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInvoiceAddress}{l s='Invoice address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtModifyMyAddress}{l s='Modify my address' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtInstantCheckout}{l s='Instant checkout' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtSelectAnAddressFirst}{l s='Please start by selecting an address.' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtFree}{l s='Free' js=1}{/addJsDefL}
|
||||
|
||||
{capture}{if $back}&mod={$back|urlencode}{/if}{/capture}
|
||||
{capture name=addressUrl}{$link->getPageLink('address', true, NULL, 'back='|cat:$back_order_page|cat:'?step=1'|cat:$smarty.capture.default)|escape:'quotes':'UTF-8'}{/capture}
|
||||
{addJsDef addressUrl=$smarty.capture.addressUrl}
|
||||
{capture}{'&multi-shipping=1'|urlencode}{/capture}
|
||||
{addJsDef addressMultishippingUrl=$smarty.capture.addressUrl|cat:$smarty.capture.default}
|
||||
{capture name=addressUrlAdd}{$smarty.capture.addressUrl|cat:'&id_address='}{/capture}
|
||||
{addJsDef addressUrlAdd=$smarty.capture.addressUrlAdd}
|
||||
{addJsDef opc=$opc|boolval}
|
||||
{capture}<h3 class="page-subheading">{l s='Your billing address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleInvoice}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<h3 class="page-subheading">{l s='Your delivery address' js=1}</h3>{/capture}
|
||||
{addJsDefL name=titleDelivery}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{capture}<a class="button button-small btn btn-default" href="{$smarty.capture.addressUrlAdd}" title="{l s='Update' js=1}"><span>{l s='Update' js=1}<i class="icon-chevron-right right"></i></span></a>{/capture}
|
||||
{addJsDefL name=liUpdate}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL}
|
||||
{addJsDefL name=txtExtraDemandSucc}{l s='Updated Successfully' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtMaxQuantityAdded}{l s='Maximum quantity of service added' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtExtraDemandErr}{l s='Some error occurred while updating demands' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{/if}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
@@ -22,122 +22,132 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{if !isset($addresses_style)}
|
||||
{$addresses_style.company = 'address_company'}
|
||||
{$addresses_style.firstname = 'address_name'}
|
||||
{$addresses_style.lastname = 'address_name'}
|
||||
{$addresses_style.address1 = 'address_address1'}
|
||||
{$addresses_style.address2 = 'address_address2'}
|
||||
{$addresses_style.city = 'address_city'}
|
||||
{$addresses_style.country = 'address_country'}
|
||||
{$addresses_style.phone = 'address_phone'}
|
||||
{$addresses_style.phone_mobile = 'address_phone_mobile'}
|
||||
{$addresses_style.alias = 'address_title'}
|
||||
{/if}
|
||||
{assign var='have_non_virtual_products' value=false}
|
||||
{foreach $products as $product}
|
||||
{if $product.is_virtual == 0}
|
||||
{assign var='have_non_virtual_products' value=true}
|
||||
{break}
|
||||
|
||||
{block name='order_payment_advanced_content'}
|
||||
{if !isset($addresses_style)}
|
||||
{$addresses_style.company = 'address_company'}
|
||||
{$addresses_style.firstname = 'address_name'}
|
||||
{$addresses_style.lastname = 'address_name'}
|
||||
{$addresses_style.address1 = 'address_address1'}
|
||||
{$addresses_style.address2 = 'address_address2'}
|
||||
{$addresses_style.city = 'address_city'}
|
||||
{$addresses_style.country = 'address_country'}
|
||||
{$addresses_style.phone = 'address_phone'}
|
||||
{$addresses_style.phone_mobile = 'address_phone_mobile'}
|
||||
{$addresses_style.alias = 'address_title'}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var='have_non_virtual_products' value=false}
|
||||
{foreach $products as $product}
|
||||
{if $product.is_virtual == 0}
|
||||
{assign var='have_non_virtual_products' value=true}
|
||||
{break}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{addJsDefL name=txtProduct}{l s='Product' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtProducts}{l s='Products' js=1}{/addJsDefL}
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
{addJsDefL name=txtProduct}{l s='Product' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtProducts}{l s='Products' js=1}{/addJsDefL}
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
|
||||
{if $productNumber == 0}
|
||||
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||||
{elseif $PS_CATALOG_MODE}
|
||||
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
|
||||
{else}
|
||||
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
|
||||
<h2>{l s='Payment Options'}</h2>
|
||||
<!-- HOOK_ADVANCED_PAYMENT -->
|
||||
<div id="HOOK_ADVANCED_PAYMENT">
|
||||
<div class="row">
|
||||
<!-- Should get a collection of "PaymentOption" object -->
|
||||
{assign var='adv_payment_empty' value=true}
|
||||
{foreach from=$HOOK_ADVANCED_PAYMENT item=pay_option key=key}
|
||||
{if $pay_option}
|
||||
{assign var='adv_payment_empty' value=false}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $HOOK_ADVANCED_PAYMENT && !$adv_payment_empty}
|
||||
{foreach $HOOK_ADVANCED_PAYMENT as $advanced_payment_opt_list}
|
||||
{foreach $advanced_payment_opt_list as $paymentOption}
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<p class="payment_module pointer-box">
|
||||
<a class="payment_module_adv">
|
||||
<img class="payment_option_logo" src="{$paymentOption->getLogo()}"/>
|
||||
<span class="payment_option_cta">
|
||||
{$paymentOption->getCallToActionText()}
|
||||
</span>
|
||||
<span class="pull-right payment_option_selected">
|
||||
<i class="icon-check"></i>
|
||||
</span>
|
||||
</a>
|
||||
{if $productNumber == 0}
|
||||
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||||
{elseif $PS_CATALOG_MODE}
|
||||
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
|
||||
{else}
|
||||
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
|
||||
<h2>{l s='Payment Options'}</h2>
|
||||
<!-- HOOK_ADVANCED_PAYMENT -->
|
||||
<div id="HOOK_ADVANCED_PAYMENT">
|
||||
<div class="row">
|
||||
<!-- Should get a collection of "PaymentOption" object -->
|
||||
{assign var='adv_payment_empty' value=true}
|
||||
{foreach from=$HOOK_ADVANCED_PAYMENT item=pay_option key=key}
|
||||
{if $pay_option}
|
||||
{assign var='adv_payment_empty' value=false}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $HOOK_ADVANCED_PAYMENT && !$adv_payment_empty}
|
||||
{block name='order_payment_advanced_option_list'}
|
||||
{foreach $HOOK_ADVANCED_PAYMENT as $advanced_payment_opt_list}
|
||||
{foreach $advanced_payment_opt_list as $paymentOption}
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<p class="payment_module pointer-box">
|
||||
<a class="payment_module_adv">
|
||||
<img class="payment_option_logo" src="{$paymentOption->getLogo()}"/>
|
||||
<span class="payment_option_cta">
|
||||
{$paymentOption->getCallToActionText()}
|
||||
</span>
|
||||
<span class="pull-right payment_option_selected">
|
||||
<i class="icon-check"></i>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</p>
|
||||
<div class="payment_option_form">
|
||||
{if $paymentOption->getForm()}
|
||||
{$paymentOption->getForm()}
|
||||
{else}
|
||||
<form method="{if $paymentOption->getMethod()}{$paymentOption->getMethod()}{else}POST{/if}" action="{$paymentOption->getAction()}">
|
||||
{if $paymentOption->getInputs()}
|
||||
{foreach from=$paymentOption->getInputs() item=value key=name}
|
||||
<input type="hidden" name="{$name}" value="{$value}">
|
||||
{/foreach}
|
||||
</p>
|
||||
<div class="payment_option_form">
|
||||
{if $paymentOption->getForm()}
|
||||
{$paymentOption->getForm()}
|
||||
{else}
|
||||
<form method="{if $paymentOption->getMethod()}{$paymentOption->getMethod()}{else}POST{/if}" action="{$paymentOption->getAction()}">
|
||||
{if $paymentOption->getInputs()}
|
||||
{foreach from=$paymentOption->getInputs() item=value key=name}
|
||||
<input type="hidden" name="{$name}" value="{$value}">
|
||||
{/foreach}
|
||||
{/if}
|
||||
</form>
|
||||
{/if}
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/block}
|
||||
</div>
|
||||
{else}
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<p class="alert alert-warning ">{l s='Unable to find any available payment option for your cart. Please contact us if the problem persists'}</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<!-- end HOOK_ADVANCED_PAYMENT -->
|
||||
|
||||
{if $opc}
|
||||
<!-- Carrier -->
|
||||
{include file="$tpl_dir./order-carrier-advanced.tpl"}
|
||||
<!-- END Carrier -->
|
||||
{/if}
|
||||
|
||||
{if $is_logged AND !$is_guest}
|
||||
{include file="$tpl_dir./order-address-advanced.tpl"}
|
||||
{elseif $opc}
|
||||
<!-- Create account / Guest account / Login block -->
|
||||
{include file="$tpl_dir./order-opc-new-account-advanced.tpl"}
|
||||
<!-- END Create account / Guest account / Login block -->
|
||||
{/if}
|
||||
|
||||
<!-- TNC -->
|
||||
{block name='order_payment_advanced_conditions'}
|
||||
{if $conditions AND $cms_id}
|
||||
{if $override_tos_display }
|
||||
{$override_tos_display}
|
||||
{else}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<h2>{l s='Terms and Conditions'}</h2>
|
||||
<div class="box">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
|
||||
<label for="cgv">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
|
||||
<a href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow">{l s='(Read the Terms of Service)'}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</div>
|
||||
{else}
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<p class="alert alert-warning ">{l s='Unable to find any available payment option for your cart. Please contact us if the problem persists'}</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<!-- end HOOK_ADVANCED_PAYMENT -->
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
<!-- end TNC -->
|
||||
|
||||
{if $opc}
|
||||
<!-- Carrier -->
|
||||
{include file="$tpl_dir./order-carrier-advanced.tpl"}
|
||||
<!-- END Carrier -->
|
||||
{block name='shopping_cart_advanced_content'}
|
||||
{include file="$tpl_dir./shopping-cart-advanced.tpl"}
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{if $is_logged AND !$is_guest}
|
||||
{include file="$tpl_dir./order-address-advanced.tpl"}
|
||||
{elseif $opc}
|
||||
<!-- Create account / Guest account / Login block -->
|
||||
{include file="$tpl_dir./order-opc-new-account-advanced.tpl"}
|
||||
<!-- END Create account / Guest account / Login block -->
|
||||
{/if}
|
||||
|
||||
<!-- TNC -->
|
||||
{if $conditions AND $cms_id}
|
||||
{if $override_tos_display }
|
||||
{$override_tos_display}
|
||||
{else}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<h2>{l s='Terms and Conditions'}</h2>
|
||||
<div class="box">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
|
||||
<label for="cgv">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
|
||||
<a href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow">{l s='(Read the Terms of Service)'}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
<!-- end TNC -->
|
||||
|
||||
{include file="$tpl_dir./shopping-cart-advanced.tpl"}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -22,315 +22,332 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<div class="paiement_block">
|
||||
{include file="$tpl_dir./order-opc-advanced-payment-option.tpl"}
|
||||
|
||||
<div id="tc_cont">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
|
||||
<label for="cgv" id="tc_txt">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
|
||||
<a id="tc_link" href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow" >{l s='(Read the Terms of Service)'}</a>
|
||||
</p>
|
||||
</div>
|
||||
{block name='order_payment_classic_content'}
|
||||
<div class="payment_block">
|
||||
{block name='order_opc_advanced_payment_option'}
|
||||
{include file="$tpl_dir./order-opc-advanced-payment-option.tpl"}
|
||||
{/block}
|
||||
|
||||
<p class="block-small-header">{l s='PAYMENT RESOURCE'}</p>
|
||||
<div id="HOOK_TOP_PAYMENT">{$HOOK_TOP_PAYMENT}</div>
|
||||
{if $HOOK_PAYMENT}
|
||||
{if !$opc}
|
||||
<div id="order-detail-content" class="table_block table-responsive">
|
||||
<table id="cart_summary" class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product first_item">{l s='Product'}</th>
|
||||
<th class="cart_description item">{l s='Description'}</th>
|
||||
{if $PS_STOCK_MANAGEMENT}
|
||||
<th class="cart_availability item text-center">{l s='Availability'}</th>
|
||||
{/if}
|
||||
<th class="cart_unit item text-right">{l s='Unit price'}</th>
|
||||
<th class="cart_quantity item text-center">{l s='Qty'}</th>
|
||||
<th class="cart_total last_item text-right">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
{block name='order_payment_tc_content'}
|
||||
<div id="tc_cont">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
|
||||
<label for="cgv" id="tc_txt">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
|
||||
<a id="tc_link" href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow" >{l s='(Read the Terms of Service)'}</a>
|
||||
</p>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<p class="block-small-header">{l s='PAYMENT RESOURCE'}</p>
|
||||
{block name='hook_top_payment'}
|
||||
<div id="HOOK_TOP_PAYMENT">{$HOOK_TOP_PAYMENT}</div>
|
||||
{/block}
|
||||
{if $HOOK_PAYMENT}
|
||||
{if !$opc}
|
||||
{block name='order_detail_content'}
|
||||
<div id="order-detail-content" class="table_block table-responsive">
|
||||
<table id="cart_summary" class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product first_item">{l s='Product'}</th>
|
||||
<th class="cart_description item">{l s='Description'}</th>
|
||||
{if $PS_STOCK_MANAGEMENT}
|
||||
<th class="cart_availability item text-center">{l s='Availability'}</th>
|
||||
{/if}
|
||||
<th class="cart_unit item text-right">{l s='Unit price'}</th>
|
||||
<th class="cart_quantity item text-center">{l s='Qty'}</th>
|
||||
<th class="cart_total last_item text-right">{l s='Total'}</th>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="text-right">{l s='Total products'}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_voucher" {if $total_wrapping == 0}style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">
|
||||
</thead>
|
||||
<tfoot>
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax excl.):'}{else}{l s='Total gift wrapping cost:'}{/if}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
</tr>
|
||||
{else}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift wrapping cost:'}{/if}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Total gift wrapping cost:'}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="2" class="price-discount price" id="total_wrapping">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship}
|
||||
<tr class="cart_total_delivery">
|
||||
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td>
|
||||
</tr>
|
||||
{else}
|
||||
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
|
||||
{if $priceDisplay}
|
||||
<tr class="cart_total_delivery" {if $shippingCost <= 0} style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$shippingCostTaxExc}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCost}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
<tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCostTaxExc}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<tr class="cart_total_voucher" {if $total_discounts == 0}style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax excl.)'}{else}{l s='Total vouchers'}{/if}
|
||||
{else}
|
||||
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax incl.)'}{else}{l s='Total vouchers'}{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Total vouchers'}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="2" class="price-discount price" id="total_discount">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_discounts_tax_exc*-1}
|
||||
{else}
|
||||
{displayPrice price=$total_discounts*-1}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_discounts_tax_exc*-1}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $use_taxes}
|
||||
{if $total_tax != 0 && $show_taxes}
|
||||
{if $priceDisplay != 0}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
|
||||
<td colspan="4" class="text-right">{l s='Total products'}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_tax">
|
||||
<td colspan="4" class="text-right">{l s='Tax'}</td>
|
||||
<td colspan="2" class="price" id="total_tax" >{displayPrice price=$total_tax}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="total_price_container text-right"><span>{l s='Total'}</span></td>
|
||||
<td colspan="2" class="price" id="total_price_container">
|
||||
<span id="total_price" data-selenium-total-price="{$total_price}">{displayPrice price=$total_price}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
{if $voucherAllowed}
|
||||
<td colspan="2" id="cart_voucher" class="cart_voucher">
|
||||
<div id="cart_voucher" class="table_block">
|
||||
{if isset($errors_discount) && $errors_discount}
|
||||
<ul class="alert alert-danger">
|
||||
{foreach from=$errors_discount key=k item=error}
|
||||
<li>{$error|escape:'html':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<tr class="cart_total_voucher" {if $total_wrapping == 0}style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax excl.):'}{else}{l s='Total gift wrapping cost:'}{/if}
|
||||
{else}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift wrapping cost:'}{/if}
|
||||
{/if}
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" id="discount_name" class="form-control" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='ok'}</span></button>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title_offers">{l s='Take advantage of our offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach from=$displayVouchers item=voucher}
|
||||
<span onclick="$('#discount_name').val('{$voucher.name}');return false;" class="voucher_name">{$voucher.name}</span> - {$voucher.description} <br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
{l s='Total gift wrapping cost:'}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="2" class="price-discount price" id="total_wrapping">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship}
|
||||
<tr class="cart_total_delivery">
|
||||
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td>
|
||||
</tr>
|
||||
{else}
|
||||
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
|
||||
{if $priceDisplay}
|
||||
<tr class="cart_total_delivery" {if $shippingCost <= 0} style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$shippingCostTaxExc}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCost}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
<tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCostTaxExc}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<td colspan="{if !$voucherAllowed}4{else}2{/if}" class="text-right total_price_container">
|
||||
<span>{l s='Total'}</span>
|
||||
</td>
|
||||
<td colspan="2" class="price total_price_container" id="total_price_container">
|
||||
<span id="total_price" data-selenium-total-price="{$total_price_without_tax}">{displayPrice price=$total_price_without_tax}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tfoot>
|
||||
|
||||
<tbody>
|
||||
{foreach from=$products item=product name=productLoop}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='cannotModify' value=1}
|
||||
{assign var='odd' value=$product@iteration%2}
|
||||
{assign var='noDeleteButton' value=1}
|
||||
|
||||
{* Display the product line *}
|
||||
{include file="$tpl_dir./shopping-cart-product-line.tpl"}
|
||||
|
||||
{* Then the customized datas ones*}
|
||||
{if isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization'}
|
||||
<tr id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}" class="alternate_item cart_item">
|
||||
<td colspan="4">
|
||||
{foreach from=$customization.datas key='type' item='datas'}
|
||||
{if $type == $CUSTOMIZE_FILE}
|
||||
<div class="customizationUploaded">
|
||||
<ul class="customizationUploaded">
|
||||
{foreach from=$datas item='picture'}
|
||||
<li>
|
||||
<img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" />
|
||||
</li>
|
||||
<tr class="cart_total_voucher" {if $total_discounts == 0}style="display:none"{/if}>
|
||||
<td colspan="4" class="text-right">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax excl.)'}{else}{l s='Total vouchers'}{/if}
|
||||
{else}
|
||||
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax incl.)'}{else}{l s='Total vouchers'}{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Total vouchers'}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="2" class="price-discount price" id="total_discount">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_discounts_tax_exc*-1}
|
||||
{else}
|
||||
{displayPrice price=$total_discounts*-1}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_discounts_tax_exc*-1}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $use_taxes}
|
||||
{if $total_tax != 0 && $show_taxes}
|
||||
{if $priceDisplay != 0}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_tax">
|
||||
<td colspan="4" class="text-right">{l s='Tax'}</td>
|
||||
<td colspan="2" class="price" id="total_tax" >{displayPrice price=$total_tax}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="4" class="total_price_container text-right"><span>{l s='Total'}</span></td>
|
||||
<td colspan="2" class="price" id="total_price_container">
|
||||
<span id="total_price" data-selenium-total-price="{$total_price}">{displayPrice price=$total_price}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
{if $voucherAllowed}
|
||||
<td colspan="2" id="cart_voucher" class="cart_voucher">
|
||||
<div id="cart_voucher" class="table_block">
|
||||
{if isset($errors_discount) && $errors_discount}
|
||||
<ul class="alert alert-danger">
|
||||
{foreach from=$errors_discount key=k item=error}
|
||||
<li>{$error|escape:'html':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{elseif $type == $CUSTOMIZE_TEXTFIELD}
|
||||
<ul class="typedText">
|
||||
{foreach from=$datas item='textField' name='typedText'}
|
||||
<li>
|
||||
{if $textField.name}
|
||||
{l s='%s:' sprintf=$textField.name}
|
||||
{else}
|
||||
{l s='Text #%s:' sprintf=$smarty.foreach.typedText.index+1}
|
||||
{/if}
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" id="discount_name" class="form-control" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='ok'}</span></button>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title_offers">{l s='Take advantage of our offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach from=$displayVouchers item=voucher}
|
||||
<span onclick="$('#discount_name').val('{$voucher.name}');return false;" class="voucher_name">{$voucher.name}</span> - {$voucher.description} <br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{$textField.value}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
{/if}
|
||||
<td colspan="{if !$voucherAllowed}4{else}2{/if}" class="text-right total_price_container">
|
||||
<span>{l s='Total'}</span>
|
||||
</td>
|
||||
<td class="cart_quantity text-center">
|
||||
{$customization.quantity}
|
||||
<td colspan="2" class="price total_price_container" id="total_price_container">
|
||||
<span id="total_price" data-selenium-total-price="{$total_price_without_tax}">{displayPrice price=$total_price_without_tax}</span>
|
||||
</td>
|
||||
<td class="cart_total"></td>
|
||||
</tr>
|
||||
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
|
||||
{/foreach}
|
||||
{* If it exists also some uncustomized products *}
|
||||
{if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl"}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var='last_was_odd' value=$product@iteration%2}
|
||||
{foreach $gift_products as $product}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='odd' value=($product@iteration+$last_was_odd)%2}
|
||||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{assign var='cannotModify' value=1}
|
||||
{* Display the gift product line *}
|
||||
{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
|
||||
{if count($discounts)}
|
||||
<tbody>
|
||||
{foreach from=$discounts item=discount name=discountLoop}
|
||||
{if (float)$discount.value_real == 0}
|
||||
{continue}
|
||||
{/if}
|
||||
<tr class="cart_discount {if $smarty.foreach.discountLoop.last}last_item{elseif $smarty.foreach.discountLoop.first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
|
||||
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount">
|
||||
{if $discount.value_real > 0}
|
||||
{if !$priceDisplay}
|
||||
{displayPrice price=$discount.value_real*-1}
|
||||
{else}
|
||||
{displayPrice price=$discount.value_tax_exc*-1}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</td>
|
||||
<td class="cart_discount_delete">1</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount">
|
||||
{if $discount.value_real > 0}
|
||||
{if !$priceDisplay}
|
||||
{displayPrice price=$discount.value_real*-1}
|
||||
{else}
|
||||
{displayPrice price=$discount.value_tax_exc*-1}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
</table>
|
||||
</div> <!-- end order-detail-content -->
|
||||
</tfoot>
|
||||
|
||||
<tbody>
|
||||
{foreach from=$products item=product name=productLoop}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='cannotModify' value=1}
|
||||
{assign var='odd' value=$product@iteration%2}
|
||||
{assign var='noDeleteButton' value=1}
|
||||
|
||||
{* Display the product line *}
|
||||
{block name='shopping_cart_product_line_container_1'}
|
||||
{include file="$tpl_dir./shopping-cart-product-line.tpl"}
|
||||
{/block}
|
||||
|
||||
{* Then the customized datas ones*}
|
||||
{if isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization'}
|
||||
<tr id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}" class="alternate_item cart_item">
|
||||
<td colspan="4">
|
||||
{foreach from=$customization.datas key='type' item='datas'}
|
||||
{if $type == $CUSTOMIZE_FILE}
|
||||
<div class="customizationUploaded">
|
||||
<ul class="customizationUploaded">
|
||||
{foreach from=$datas item='picture'}
|
||||
<li>
|
||||
<img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" />
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{elseif $type == $CUSTOMIZE_TEXTFIELD}
|
||||
<ul class="typedText">
|
||||
{foreach from=$datas item='textField' name='typedText'}
|
||||
<li>
|
||||
{if $textField.name}
|
||||
{l s='%s:' sprintf=$textField.name}
|
||||
{else}
|
||||
{l s='Text #%s:' sprintf=$smarty.foreach.typedText.index+1}
|
||||
{/if}
|
||||
{$textField.value}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
<td class="cart_quantity text-center">
|
||||
{$customization.quantity}
|
||||
</td>
|
||||
<td class="cart_total"></td>
|
||||
</tr>
|
||||
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
|
||||
{/foreach}
|
||||
{* If it exists also some uncustomized products *}
|
||||
{if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl"}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var='last_was_odd' value=$product@iteration%2}
|
||||
{foreach $gift_products as $product}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='odd' value=($product@iteration+$last_was_odd)%2}
|
||||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{assign var='cannotModify' value=1}
|
||||
{* Display the gift product line *}
|
||||
{block name='shopping_cart_product_line_container_2'}
|
||||
{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}
|
||||
{/block}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
|
||||
{if count($discounts)}
|
||||
<tbody>
|
||||
{foreach from=$discounts item=discount name=discountLoop}
|
||||
{if (float)$discount.value_real == 0}
|
||||
{continue}
|
||||
{/if}
|
||||
<tr class="cart_discount {if $smarty.foreach.discountLoop.last}last_item{elseif $smarty.foreach.discountLoop.first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
|
||||
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount">
|
||||
{if $discount.value_real > 0}
|
||||
{if !$priceDisplay}
|
||||
{displayPrice price=$discount.value_real*-1}
|
||||
{else}
|
||||
{displayPrice price=$discount.value_tax_exc*-1}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</td>
|
||||
<td class="cart_discount_delete">1</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount">
|
||||
{if $discount.value_real > 0}
|
||||
{if !$priceDisplay}
|
||||
{displayPrice price=$discount.value_real*-1}
|
||||
{else}
|
||||
{displayPrice price=$discount.value_tax_exc*-1}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
</table>
|
||||
</div> <!-- end order-detail-content -->
|
||||
{/block}
|
||||
{/if}
|
||||
{if $opc}
|
||||
<div id="opc_payment_methods-content">
|
||||
{/if}
|
||||
{block name='hook_payment'}
|
||||
<div id="HOOK_PAYMENT">
|
||||
{$HOOK_PAYMENT}
|
||||
</div>
|
||||
{/block}
|
||||
{if $opc}
|
||||
</div> <!-- end opc_payment_methods-content -->
|
||||
{/if}
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='No payment modules have been installed.'}</p>
|
||||
{/if}
|
||||
{if $opc}
|
||||
<div id="opc_payment_methods-content">
|
||||
{/if}
|
||||
<div id="HOOK_PAYMENT">
|
||||
{$HOOK_PAYMENT}
|
||||
</div>
|
||||
{if $opc}
|
||||
</div> <!-- end opc_payment_methods-content -->
|
||||
{/if}
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='No payment modules have been installed.'}</p>
|
||||
{if !$opc}
|
||||
<p class="cart_navigation clearfix">
|
||||
<a href="{$link->getPageLink('order', true, NULL, "step=2")|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
|
||||
<i class="icon-chevron-left"></i>
|
||||
{l s='Continue shopping'}
|
||||
</a>
|
||||
</p>
|
||||
{else}
|
||||
</div> <!-- end opc_payment_methods -->
|
||||
{/if}
|
||||
{if !$opc}
|
||||
<p class="cart_navigation clearfix">
|
||||
<a href="{$link->getPageLink('order', true, NULL, "step=2")|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
|
||||
<i class="icon-chevron-left"></i>
|
||||
{l s='Continue shopping'}
|
||||
</a>
|
||||
</p>
|
||||
{else}
|
||||
</div> <!-- end opc_payment_methods -->
|
||||
{/if}
|
||||
</div> <!-- end HOOK_TOP_PAYMENT -->
|
||||
</div> <!-- end HOOK_TOP_PAYMENT -->
|
||||
{/block}
|
||||
|
||||
@@ -23,29 +23,41 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{if !$opc}
|
||||
{addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL}
|
||||
{capture name=path}{l s='Your payment method'}{/capture}
|
||||
<h1 class="page-heading">{l s='Please choose your payment method'}
|
||||
{if !isset($empty) && !$PS_CATALOG_MODE}
|
||||
<span class="heading-counter">{l s='Your shopping cart contains:'}
|
||||
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
|
||||
</span>
|
||||
{/if}
|
||||
</h1>
|
||||
{/if}
|
||||
{block name='order_payment_content'}
|
||||
{if !$opc}
|
||||
{block name='order_payment_js_vars'}
|
||||
{addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL}
|
||||
{capture name=path}{l s='Your payment method'}{/capture}
|
||||
<h1 class="page-heading">{l s='Please choose your payment method'}
|
||||
{if !isset($empty) && !$PS_CATALOG_MODE}
|
||||
<span class="heading-counter">{l s='Your shopping cart contains:'}
|
||||
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
|
||||
</span>
|
||||
{/if}
|
||||
</h1>
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{if !$opc}
|
||||
{assign var='current_step' value='payment'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{else}
|
||||
<div id="opc_payment_methods" class="opc-main-block">
|
||||
<div id="opc_payment_methods-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
{/if}
|
||||
{if $advanced_payment_api}
|
||||
{include file="$tpl_dir./order-payment-advanced.tpl"}
|
||||
{else}
|
||||
{include file = "$tpl_dir./order-payment-classic.tpl"}
|
||||
{/if}
|
||||
{if !$opc}
|
||||
{assign var='current_step' value='payment'}
|
||||
{block name='order_steps_container'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
{/block}
|
||||
{block name='order_payment_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
{else}
|
||||
<div id="opc_payment_methods" class="opc-main-block">
|
||||
<div id="opc_payment_methods-overlay" class="opc-overlay" style="display: none;"></div>
|
||||
{/if}
|
||||
{if $advanced_payment_api}
|
||||
{block name='order_payment_advanced_container'}
|
||||
{include file="$tpl_dir./order-payment-advanced.tpl"}
|
||||
{/block}
|
||||
{else}
|
||||
{block name='order_payment_classic_container'}
|
||||
{include file = "$tpl_dir./order-payment-classic.tpl"}
|
||||
{/block}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -23,162 +23,177 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}">
|
||||
{l s='Booking refund requests'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund detail'}
|
||||
</span>
|
||||
{/capture}
|
||||
{block name='order_return_content'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}">
|
||||
{l s='Booking refund requests'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund detail'}
|
||||
</span>
|
||||
{/capture}
|
||||
|
||||
{include file="./errors.tpl"}
|
||||
<div class="panel card">
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
<div class="table-responsive wk-datatable-wrapper">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Room type'}</th>
|
||||
<th>{l s='Hotel'}</th>
|
||||
<th>{l s='Duration'}</th>
|
||||
<th>{l s='Total rooms price (tax incl.)'}</th>
|
||||
<th>{l s='Extra services price (tax incl.)'}</th>
|
||||
{if $isRefundCompleted}
|
||||
<th>{l s='Refund amount'}</th>
|
||||
<th>{l s='Refund Status'}</th>
|
||||
{/if}
|
||||
</tr>
|
||||
{block name='order_return_errors_container'}
|
||||
{include file="./errors.tpl"}
|
||||
{/block}
|
||||
{block name='order_return_container'}
|
||||
<div class="panel card">
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
<div class="table-responsive wk-datatable-wrapper">
|
||||
{block name='order_return_booking_detail_table'}
|
||||
<table class="table table-bordered">
|
||||
{block name='order_return_booking_detail_table_head'}
|
||||
<tr>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Room type'}</th>
|
||||
<th>{l s='Hotel'}</th>
|
||||
<th>{l s='Duration'}</th>
|
||||
<th>{l s='Total rooms price (tax incl.)'}</th>
|
||||
<th>{l s='Extra services price (tax incl.)'}</th>
|
||||
{if $isRefundCompleted}
|
||||
<th>{l s='Refund amount'}</th>
|
||||
<th>{l s='Refund Status'}</th>
|
||||
{/if}
|
||||
</tr>
|
||||
{/block}
|
||||
{block name='order_return_booking_detail_table_body'}
|
||||
{foreach from=$refundReqBookings item=$booking name=refundRequest}
|
||||
<tr>
|
||||
<td>{l s='Room'} - {$smarty.foreach.refundRequest.iteration|string_format:'%02d'}</td>
|
||||
<td>{$booking['room_type_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['hotel_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['date_from']|date_format:"%d-%m-%Y"} {l s='To'} {$booking['date_to']|date_format:"%d-%m-%Y"}</td>
|
||||
<td>{displayPrice price=$booking['total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
<td>{displayPrice price=$booking['extra_service_total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
{if $isRefundCompleted}
|
||||
<td>
|
||||
{displayPrice price=$booking['refunded_amount'] currency=$orderCurrency['id']}
|
||||
</td>
|
||||
<td>
|
||||
{if $booking['is_cancelled']}
|
||||
<span class="badge badge-danger">{l s='Cancelled' mod='hotelreservationsystem'}</span>
|
||||
{* used id_customization to check if in this request which bookings are refunded or not*}
|
||||
{else if $booking['id_customization']}
|
||||
<span class="badge badge-success">{l s='Refunded' mod='hotelreservationsystem'}</span>
|
||||
{else}
|
||||
<span class="badge badge-danger">{l s='Denied' mod='hotelreservationsystem'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/block}
|
||||
</table>
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
{foreach from=$refundReqBookings item=$booking name=refundRequest}
|
||||
<tr>
|
||||
<td>{l s='Room'} - {$smarty.foreach.refundRequest.iteration|string_format:'%02d'}</td>
|
||||
<td>{$booking['room_type_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['hotel_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['date_from']|date_format:"%d-%m-%Y"} {l s='To'} {$booking['date_to']|date_format:"%d-%m-%Y"}</td>
|
||||
<td>{displayPrice price=$booking['total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
<td>{displayPrice price=$booking['extra_service_total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
{if $isRefundCompleted}
|
||||
<td>
|
||||
{displayPrice price=$booking['refunded_amount'] currency=$orderCurrency['id']}
|
||||
</td>
|
||||
<td>
|
||||
{if $booking['is_cancelled']}
|
||||
<span class="badge badge-danger">{l s='Cancelled' mod='hotelreservationsystem'}</span>
|
||||
{* used id_customization to check if in this request which bookings are refunded or not*}
|
||||
{else if $booking['id_customization']}
|
||||
<span class="badge badge-success">{l s='Refunded' mod='hotelreservationsystem'}</span>
|
||||
{else}
|
||||
<span class="badge badge-danger">{l s='Denied' mod='hotelreservationsystem'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{block name='order_return_details'}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Current refund state'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<span class="badge wk-badge" style="background-color:{$currentStateInfo['color']|escape:'html':'UTF-8'}">{$currentStateInfo['name']|escape:'html':'UTF-8'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Way of payment'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{if $orderInfo['is_advance_payment']}{l s='Advance Payment'}{else}{l s='Full Payment'}{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Total order amount'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{displayPrice price=$orderInfo['total_paid_tax_incl'] currency=$orderInfo['id_currency']}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Request date'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['date_add']|date_format:"%d-%m-%Y %I:%M %p"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $currentStateInfo['refunded']}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Refunded amount' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{displayPrice price=$orderReturnInfo['refunded_amount'] currency=$orderInfo['id_currency']}
|
||||
</div>
|
||||
</div>
|
||||
{if $orderReturnInfo['payment_mode'] != '' && $orderReturnInfo['id_transaction'] != ''}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Payment mode' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['payment_mode']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Transaction ID' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['id_transaction']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{if isset($orderReturnInfo['return_type'])}
|
||||
{if $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_CART_RULE}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Voucher' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('discount')}" target="_blank">
|
||||
{$voucher|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{elseif $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_ORDER_SLIP}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Credit Slip' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('order-slip')}" target="_blank">
|
||||
#{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$orderReturnInfo['id_return_type']|string_format:"%06d"}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Current refund state'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<span class="badge wk-badge" style="background-color:{$currentStateInfo['color']|escape:'html':'UTF-8'}">{$currentStateInfo['name']|escape:'html':'UTF-8'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Way of payment'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{if $orderInfo['is_advance_payment']}{l s='Advance Payment'}{else}{l s='Full Payment'}{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Total order amount'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{displayPrice price=$orderInfo['total_paid_tax_incl'] currency=$orderInfo['id_currency']}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Request date'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['date_add']|date_format:"%d-%m-%Y %I:%M %p"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $currentStateInfo['refunded']}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Refunded amount' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{displayPrice price=$orderReturnInfo['refunded_amount'] currency=$orderInfo['id_currency']}
|
||||
</div>
|
||||
</div>
|
||||
{if $orderReturnInfo['payment_mode'] != '' && $orderReturnInfo['id_transaction'] != ''}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Payment mode' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['payment_mode']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Transaction ID' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['id_transaction']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($orderReturnInfo['return_type'])}
|
||||
{if $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_CART_RULE}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Voucher' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('discount')}" target="_blank">
|
||||
{$voucher|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{elseif $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_ORDER_SLIP}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Credit Slip' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('order-slip')}" target="_blank">
|
||||
#{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$orderReturnInfo['id_return_type']|string_format:"%06d"}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<ul class="footer_links clearfix">
|
||||
<li><a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"><span><i class="icon-chevron-left"></i> {l s='Back to your account'}</span></a></li>
|
||||
<li><a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}"><span><i class="icon-chevron-left"></i> {l s='Home'}</span></a></li>
|
||||
</ul>
|
||||
{block name='order_return_footer_links'}
|
||||
<ul class="footer_links clearfix">
|
||||
<li><a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"><span><i class="icon-chevron-left"></i> {l s='Back to your account'}</span></a></li>
|
||||
<li><a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}"><span><i class="icon-chevron-left"></i> {l s='Home'}</span></a></li>
|
||||
</ul>
|
||||
{/block}
|
||||
{/block}
|
||||
@@ -23,98 +23,111 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span><span class="navigation_page">{l s='Credit slips'}</span>{/capture}
|
||||
{block name='order_slip_content'}
|
||||
{capture name=path}<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span><span class="navigation_page">{l s='Credit slips'}</span>{/capture}
|
||||
|
||||
<h1 class="page-heading bottom-indent">
|
||||
{l s='Credit slips'}
|
||||
</h1>
|
||||
<p class="info-title">
|
||||
{l s='Credit slips you have received after canceled orders'}.
|
||||
</p>
|
||||
<h1 class="page-heading bottom-indent">
|
||||
{l s='Credit slips'}
|
||||
</h1>
|
||||
<p class="info-title">
|
||||
{l s='Credit slips you have received after canceled orders'}.
|
||||
</p>
|
||||
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{block name='order_slip_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
|
||||
{if isset($smarty.get.confirmation) && $smarty.get.confirmation}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your voucher has been generated successfully and sent via email.'} <a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}">{'Click here'}</a> {' to see your all vouchers.'}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<div class="block-center" id="block-history">
|
||||
{if $ordersSlip && count($ordersSlip)}
|
||||
<table id="order-list" class="table table-bordered footab">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sort-ignore="true" class="first_item">{l s='Credit slip'}</th>
|
||||
<th data-sort-ignore="true" class="item">{l s='Order'}</th>
|
||||
<th class="item">{l s='Date issued'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone">{l s='View credit slip'}</th>
|
||||
<th data-sort-ignore="true">{l s='Status'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone" class="last_item">{l s='Actions'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$ordersSlip item=slip name=myLoop}
|
||||
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
|
||||
<td class="bold">
|
||||
<span class="color-myaccount">
|
||||
#{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$slip.id_order_slip|string_format:"%06d"}
|
||||
</span>
|
||||
</td>
|
||||
<td class="history_method">
|
||||
<a class="color-myaccount" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$slip.id_order|intval}")|escape:'html':'UTF-8'}" target="_blank">
|
||||
#{$slip.id_order|string_format:"%06d"}
|
||||
</a>
|
||||
</td>
|
||||
<td class="bold" data-value="{$slip.date_add|regex_replace:"/[\-\:\ ]/":""}">
|
||||
{dateFormat date=$slip.date_add full=0}
|
||||
</td>
|
||||
<td class="history_invoice">
|
||||
<a class="link-button" href="{$link->getPageLink('pdf-order-slip', true, NULL, "id_order_slip={$slip.id_order_slip|intval}")|escape:'html':'UTF-8'}" title="{l s='Credit slip'} #{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$slip.id_order_slip|string_format:"%06d"}">
|
||||
<i class="icon-file-text large"></i>{l s='PDF'}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{if $slip.redeem_status == OrderSlip::REDEEM_STATUS_REDEEMED}
|
||||
<span class="badge badge-danger">{l s='Redeemed'}</span>
|
||||
{else}
|
||||
<span class="badge badge-success">{l s='Active'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $slip.redeem_status == OrderSlip::REDEEM_STATUS_ACTIVE && !$slip.id_cart_rule}
|
||||
<a href="{$link->getPageLink('order-slip', true, NULL, "generateVoucher=1&id_order_slip={$slip.id_order_slip|intval}")|escape:'html':'UTF-8'}" title="{l s='Generate voucher for credit slip '} #{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$slip.id_order_slip|string_format:"%06d"}">
|
||||
<u>{l s='Generate Voucher'}</u>
|
||||
</a>
|
||||
{elseif $slip.redeem_status == OrderSlip::REDEEM_STATUS_REDEEMED && $slip.id_cart_rule}
|
||||
<span class="badge badge-danger">{l s='Voucher Generated'}</span>
|
||||
{elseif $slip.redeem_status == OrderSlip::REDEEM_STATUS_REDEEMED && !$slip.id_cart_rule}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="block-order-detail" class="unvisible"> </div>
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='You have not received any credit slips.'}</p>
|
||||
{if isset($smarty.get.confirmation) && $smarty.get.confirmation}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your voucher has been generated successfully and sent via email.'} <a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}">{'Click here'}</a> {' to see your all vouchers.'}
|
||||
</p>
|
||||
{/if}
|
||||
</div><!-- #block-history -->
|
||||
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Back to My account'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Home'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{block name='order_slip_table_container'}
|
||||
<div class="block-center" id="block-history">
|
||||
{if $ordersSlip && count($ordersSlip)}
|
||||
<table id="order-list" class="table table-bordered footab">
|
||||
{block name='order_slip_table_head'}
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sort-ignore="true" class="first_item">{l s='Credit slip'}</th>
|
||||
<th data-sort-ignore="true" class="item">{l s='Order'}</th>
|
||||
<th class="item">{l s='Date issued'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone">{l s='View credit slip'}</th>
|
||||
<th data-sort-ignore="true">{l s='Status'}</th>
|
||||
<th data-sort-ignore="true" data-hide="phone" class="last_item">{l s='Actions'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{/block}
|
||||
{block name='order_slip_table_body'}
|
||||
<tbody>
|
||||
{foreach from=$ordersSlip item=slip name=myLoop}
|
||||
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
|
||||
<td class="bold">
|
||||
<span class="color-myaccount">
|
||||
#{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$slip.id_order_slip|string_format:"%06d"}
|
||||
</span>
|
||||
</td>
|
||||
<td class="history_method">
|
||||
<a class="color-myaccount" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$slip.id_order|intval}")|escape:'html':'UTF-8'}" target="_blank">
|
||||
#{$slip.id_order|string_format:"%06d"}
|
||||
</a>
|
||||
</td>
|
||||
<td class="bold" data-value="{$slip.date_add|regex_replace:"/[\-\:\ ]/":""}">
|
||||
{dateFormat date=$slip.date_add full=0}
|
||||
</td>
|
||||
<td class="history_invoice">
|
||||
<a class="link-button" href="{$link->getPageLink('pdf-order-slip', true, NULL, "id_order_slip={$slip.id_order_slip|intval}")|escape:'html':'UTF-8'}" title="{l s='Credit slip'} #{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$slip.id_order_slip|string_format:"%06d"}">
|
||||
<i class="icon-file-text large"></i>{l s='PDF'}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{if $slip.redeem_status == OrderSlip::REDEEM_STATUS_REDEEMED}
|
||||
<span class="badge badge-danger">{l s='Redeemed'}</span>
|
||||
{else}
|
||||
<span class="badge badge-success">{l s='Active'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $slip.redeem_status == OrderSlip::REDEEM_STATUS_ACTIVE && !$slip.id_cart_rule}
|
||||
<a href="{$link->getPageLink('order-slip', true, NULL, "generateVoucher=1&id_order_slip={$slip.id_order_slip|intval}")|escape:'html':'UTF-8'}" title="{l s='Generate voucher for credit slip '} #{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$slip.id_order_slip|string_format:"%06d"}">
|
||||
<u>{l s='Generate Voucher'}</u>
|
||||
</a>
|
||||
{elseif $slip.redeem_status == OrderSlip::REDEEM_STATUS_REDEEMED && $slip.id_cart_rule}
|
||||
<span class="badge badge-danger">{l s='Voucher Generated'}</span>
|
||||
{elseif $slip.redeem_status == OrderSlip::REDEEM_STATUS_REDEEMED && !$slip.id_cart_rule}
|
||||
--
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/block}
|
||||
</table>
|
||||
<div id="block-order-detail" class="unvisible"> </div>
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='You have not received any credit slips.'}</p>
|
||||
{/if}
|
||||
</div><!-- #block-history -->
|
||||
{/block}
|
||||
|
||||
|
||||
{block name='order_slip_footer_links'}
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Back to My account'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Home'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/block}
|
||||
{/block}
|
||||
@@ -23,57 +23,59 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{* Assign a value to 'current_step' to display current style *}
|
||||
{capture name="url_back"}
|
||||
{if isset($back) && $back}back={$back}{/if}
|
||||
{/capture}
|
||||
{block name='order_steps_content'}
|
||||
{* Assign a value to 'current_step' to display current style *}
|
||||
{capture name="url_back"}
|
||||
{if isset($back) && $back}back={$back}{/if}
|
||||
{/capture}
|
||||
|
||||
{if !isset($multi_shipping)}
|
||||
{assign var='multi_shipping' value='0'}
|
||||
{/if}
|
||||
{if !isset($multi_shipping)}
|
||||
{assign var='multi_shipping' value='0'}
|
||||
{/if}
|
||||
|
||||
{if !$opc && ((!isset($back) || empty($back)) || (isset($back) && preg_match("/[&?]step=/", $back)))}
|
||||
<!-- Steps -->
|
||||
<ul class="step clearfix" id="order_step">
|
||||
<li class="{if $current_step=='summary'}step_current {elseif $current_step=='login'}step_done_last step_done{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}step_done{else}step_todo{/if}{/if} first">
|
||||
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}
|
||||
<a href="{$link->getPageLink('order', true)}">
|
||||
<em>01.</em> {l s='Summary'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>01.</em> {l s='Summary'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li class="{if $current_step=='login'}step_current{elseif $current_step=='address'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}step_done{else}step_todo{/if}{/if} second">
|
||||
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
|
||||
<em>02.</em> {l s='Sign in'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>02.</em> {l s='Sign in'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li class="{if $current_step=='address'}step_current{elseif $current_step=='shipping'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping'}step_done{else}step_todo{/if}{/if} third">
|
||||
{if $current_step=='payment' || $current_step=='shipping'}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
|
||||
<em>03.</em> {l s='Address'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>03.</em> {l s='Address'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li class="{if $current_step=='shipping'}step_current{else}{if $current_step=='payment'}step_done step_done_last{else}step_todo{/if}{/if} four">
|
||||
{if $current_step=='payment'}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=2{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
|
||||
<em>04.</em> {l s='Shipping'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>04.</em> {l s='Shipping'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li id="step_end" class="{if $current_step=='payment'}step_current{else}step_todo{/if} last">
|
||||
<span><em>05.</em> {l s='Payment'}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /Steps -->
|
||||
{/if}
|
||||
{if !$opc && ((!isset($back) || empty($back)) || (isset($back) && preg_match("/[&?]step=/", $back)))}
|
||||
<!-- Steps -->
|
||||
<ul class="step clearfix" id="order_step">
|
||||
<li class="{if $current_step=='summary'}step_current {elseif $current_step=='login'}step_done_last step_done{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}step_done{else}step_todo{/if}{/if} first">
|
||||
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}
|
||||
<a href="{$link->getPageLink('order', true)}">
|
||||
<em>01.</em> {l s='Summary'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>01.</em> {l s='Summary'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li class="{if $current_step=='login'}step_current{elseif $current_step=='address'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}step_done{else}step_todo{/if}{/if} second">
|
||||
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
|
||||
<em>02.</em> {l s='Sign in'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>02.</em> {l s='Sign in'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li class="{if $current_step=='address'}step_current{elseif $current_step=='shipping'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping'}step_done{else}step_todo{/if}{/if} third">
|
||||
{if $current_step=='payment' || $current_step=='shipping'}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
|
||||
<em>03.</em> {l s='Address'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>03.</em> {l s='Address'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li class="{if $current_step=='shipping'}step_current{else}{if $current_step=='payment'}step_done step_done_last{else}step_todo{/if}{/if} four">
|
||||
{if $current_step=='payment'}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=2{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
|
||||
<em>04.</em> {l s='Shipping'}
|
||||
</a>
|
||||
{else}
|
||||
<span><em>04.</em> {l s='Shipping'}</span>
|
||||
{/if}
|
||||
</li>
|
||||
<li id="step_end" class="{if $current_step=='payment'}step_current{else}step_todo{/if} last">
|
||||
<span><em>05.</em> {l s='Payment'}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /Steps -->
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -23,32 +23,38 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}<a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" title="{l s='Authentication'}" rel="nofollow">{l s='Authentication'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Forgot your password'}{/capture}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">{l s='Forgot your password?'}</h1>
|
||||
{block name='password_content'}
|
||||
{capture name=path}<a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" title="{l s='Authentication'}" rel="nofollow">{l s='Authentication'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Forgot your password'}{/capture}
|
||||
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">{l s='Forgot your password?'}</h1>
|
||||
{block name='password_errors_container'}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
{/block}
|
||||
|
||||
{if isset($confirmation) && $confirmation == 1}
|
||||
<p class="alert alert-success">{l s='Your password has been successfully reset and a confirmation has been sent to your email address:'} {if isset($customer_email)}{$customer_email|escape:'html':'UTF-8'|stripslashes}{/if}</p>
|
||||
{elseif isset($confirmation) && $confirmation == 2}
|
||||
<p class="alert alert-success">{l s='A confirmation email has been sent to your address:'} {if isset($customer_email)}{$customer_email|escape:'html':'UTF-8'|stripslashes}{/if}</p>
|
||||
{else}
|
||||
<p>{l s='Please enter the email address you used to register. We will then send you a new password. '}</p>
|
||||
<form action="{$request_uri|escape:'html':'UTF-8'}" method="post" class="std" id="form_forgotpassword">
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label for="email">{l s='Email address'}</label>
|
||||
<input class="form-control" type="email" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'|stripslashes}{/if}" />
|
||||
</div>
|
||||
{hook h='displayForgotPasswordFormFieldsAfter'}
|
||||
<p class="submit">
|
||||
<button type="submit" class="btn button button-medium"><span>{l s='Retrieve Password'} <i class="icon-chevron-right right"></i></span></button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
<ul class="clearfix footer_links">
|
||||
<li><a class="btn button button-small" href="{$link->getPageLink('authentication')|escape:'html':'UTF-8'}" title="{l s='Back to Login'}" rel="nofollow"><span><i class="icon-chevron-left"></i> {l s='Back to Login'}</span></a></li>
|
||||
</ul>
|
||||
{if isset($confirmation) && $confirmation == 1}
|
||||
<p class="alert alert-success">{l s='Your password has been successfully reset and a confirmation has been sent to your email address:'} {if isset($customer_email)}{$customer_email|escape:'html':'UTF-8'|stripslashes}{/if}</p>
|
||||
{elseif isset($confirmation) && $confirmation == 2}
|
||||
<p class="alert alert-success">{l s='A confirmation email has been sent to your address:'} {if isset($customer_email)}{$customer_email|escape:'html':'UTF-8'|stripslashes}{/if}</p>
|
||||
{else}
|
||||
{block name='password_form'}
|
||||
<p>{l s='Please enter the email address you used to register. We will then send you a new password. '}</p>
|
||||
<form action="{$request_uri|escape:'html':'UTF-8'}" method="post" class="std" id="form_forgotpassword">
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label for="email">{l s='Email address'}</label>
|
||||
<input class="form-control" type="email" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'|stripslashes}{/if}" />
|
||||
</div>
|
||||
{hook h='displayForgotPasswordFormFieldsAfter'}
|
||||
<p class="submit">
|
||||
<button type="submit" class="btn button button-medium"><span>{l s='Retrieve Password'} <i class="icon-chevron-right right"></i></span></button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/block}
|
||||
{/if}
|
||||
</div>
|
||||
<ul class="clearfix footer_links">
|
||||
<li><a class="btn button button-small" href="{$link->getPageLink('authentication')|escape:'html':'UTF-8'}" title="{l s='Back to Login'}" rel="nofollow"><span><i class="icon-chevron-left"></i> {l s='Back to Login'}</span></a></li>
|
||||
</ul>
|
||||
{/block}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -22,356 +22,366 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<h2>{l s='Cart Summary'}</h2>
|
||||
{assign var='total_discounts_num' value="{if $total_discounts != 0}1{else}0{/if}"}
|
||||
{assign var='use_show_taxes' value="{if $use_taxes && $show_taxes}2{else}0{/if}"}
|
||||
{assign var='total_wrapping_taxes_num' value="{if $total_wrapping != 0}1{else}0{/if}"}
|
||||
{* eu-legal *}
|
||||
{hook h="displayBeforeShoppingCartBlock"}
|
||||
<div id="order-detail-content" class="table_block table-responsive">
|
||||
<table id="cart_summary" class="table table-bordered {if $PS_STOCK_MANAGEMENT}stock-management-on{else}stock-management-off{/if}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product first_item">{l s='Product'}</th>
|
||||
<th class="cart_description item">{l s='Description'}</th>
|
||||
{if $PS_STOCK_MANAGEMENT}
|
||||
{assign var='col_span_subtotal' value='3'}
|
||||
{assign var='col_span_total' value='7'}
|
||||
<th class="cart_avail item text-center">{l s='Availability'}</th>
|
||||
{else}
|
||||
{assign var='col_span_subtotal' value='2'}
|
||||
{assign var='col_span_total' value='6'}
|
||||
{/if}
|
||||
<th class="cart_unit item text-right">{l s='Unit price'}</th>
|
||||
<th class="cart_quantity item text-center">{l s='Qty'}</th>
|
||||
<th colspan="{$col_span_subtotal}" class="cart_total item text-right">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
{assign var='rowspan_total' value=2+$total_discounts_num+$total_wrapping_taxes_num}
|
||||
|
||||
{if $use_taxes && $show_taxes && $total_tax != 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
|
||||
{if $priceDisplay != 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
|
||||
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{else}
|
||||
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
|
||||
{if $priceDisplay && $total_shipping_tax_exc > 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{elseif $total_shipping > 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
{elseif $total_shipping_tax_exc > 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
<tr class="cart_total_price">
|
||||
<td rowspan="{$rowspan_total}" colspan="3" id="cart_voucher" class="cart_voucher">
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach $displayVouchers as $voucher}
|
||||
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach $displayVouchers as $voucher}
|
||||
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small">
|
||||
<span>{l s='OK'}</span>
|
||||
</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach $displayVouchers as $voucher}
|
||||
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{block name='shopping_cart_advanced_content'}
|
||||
<h2>{l s='Cart Summary'}</h2>
|
||||
{assign var='total_discounts_num' value="{if $total_discounts != 0}1{else}0{/if}"}
|
||||
{assign var='use_show_taxes' value="{if $use_taxes && $show_taxes}2{else}0{/if}"}
|
||||
{assign var='total_wrapping_taxes_num' value="{if $total_wrapping != 0}1{else}0{/if}"}
|
||||
{* eu-legal *}
|
||||
{block name='display_before_shopping_cart_block'}
|
||||
{hook h="displayBeforeShoppingCartBlock"}
|
||||
{/block}
|
||||
<div id="order-detail-content" class="table_block table-responsive">
|
||||
{block name='shopping_cart_advanced_summary'}
|
||||
<table id="cart_summary" class="table table-bordered {if $PS_STOCK_MANAGEMENT}stock-management-on{else}stock-management-off{/if}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product first_item">{l s='Product'}</th>
|
||||
<th class="cart_description item">{l s='Description'}</th>
|
||||
{if $PS_STOCK_MANAGEMENT}
|
||||
{assign var='col_span_subtotal' value='3'}
|
||||
{assign var='col_span_total' value='7'}
|
||||
<th class="cart_avail item text-center">{l s='Availability'}</th>
|
||||
{else}
|
||||
{assign var='col_span_subtotal' value='2'}
|
||||
{assign var='col_span_total' value='6'}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total products'}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr{if $total_wrapping == 0} style="display: none;"{/if}>
|
||||
<td colspan="3" class="text-right">
|
||||
{if $use_taxes}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift-wrapping cost'}{/if}
|
||||
{else}
|
||||
{l s='Total gift-wrapping cost'}
|
||||
<th class="cart_unit item text-right">{l s='Unit price'}</th>
|
||||
<th class="cart_quantity item text-center">{l s='Qty'}</th>
|
||||
<th colspan="{$col_span_subtotal}" class="cart_total item text-right">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
{assign var='rowspan_total' value=2+$total_discounts_num+$total_wrapping_taxes_num}
|
||||
|
||||
{if $use_taxes && $show_taxes && $total_tax != 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="2" class="price-discount price" id="total_wrapping">
|
||||
|
||||
{if $priceDisplay != 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
|
||||
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{else}
|
||||
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
|
||||
{if $priceDisplay && $total_shipping_tax_exc > 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{elseif $total_shipping > 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
{elseif $total_shipping_tax_exc > 0}
|
||||
{assign var='rowspan_total' value=$rowspan_total+1}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart)}
|
||||
<tr class="cart_total_delivery{if !$opc && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{l s='Free shipping!'}</td>
|
||||
</tr>
|
||||
{else}
|
||||
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
|
||||
{if $priceDisplay}
|
||||
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_delivery{if $total_shipping <= 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<tr class="cart_total_voucher{if $total_discounts == 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='Total vouchers (tax incl.)'}
|
||||
{else}
|
||||
{l s='Total vouchers (tax excl.)'}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Total vouchers'}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="2" class="price-discount price" id="total_discount">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{assign var='total_discounts_negative' value=$total_discounts * -1}
|
||||
{else}
|
||||
{assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1}
|
||||
{/if}
|
||||
{displayPrice price=$total_discounts_negative}
|
||||
</td>
|
||||
</tr>
|
||||
{if $use_taxes && $show_taxes && $total_tax != 0 }
|
||||
{if $priceDisplay != 0}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_tax">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Tax'}</td>
|
||||
<td colspan="2" class="price" id="total_tax">{displayPrice price=$total_tax}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="{$col_span_subtotal}" class="total_price_container text-right">
|
||||
<span>{l s='Total'}</span>
|
||||
<div class="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayCartTotalPriceLabel"}
|
||||
</div>
|
||||
</td>
|
||||
{if $use_taxes}
|
||||
<td colspan="2" class="price" id="total_price_container">
|
||||
<span id="total_price">{displayPrice price=$total_price}</span>
|
||||
</td>
|
||||
{else}
|
||||
<td colspan="2" class="price" id="total_price_container">
|
||||
<span id="total_price">{displayPrice price=$total_price_without_tax}</span>
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{hook h="displayAfterShoppingCartBlock" colspan_total=$col_span_total}
|
||||
</tfoot>
|
||||
<tbody>
|
||||
{assign var='odd' value=0}
|
||||
{assign var='have_non_virtual_products' value=false}
|
||||
{foreach $products as $product}
|
||||
{if $product.is_virtual == 0}
|
||||
{assign var='have_non_virtual_products' value=true}
|
||||
{/if}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='odd' value=($odd+1)%2}
|
||||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)}
|
||||
{* Display the product line *}
|
||||
{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0}
|
||||
{* Then the customized datas ones*}
|
||||
{if isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$customization}
|
||||
<tr
|
||||
id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
|
||||
class="product_customization_for_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if $odd} odd{else} even{/if} customization alternate_item {if $product@last && $customization@last && !count($gift_products)}last_item{/if}">
|
||||
<td></td>
|
||||
<td colspan="3">
|
||||
{foreach $customization.datas as $type => $custom_data}
|
||||
{if $type == $CUSTOMIZE_FILE}
|
||||
<div class="customizationUploaded">
|
||||
<ul class="customizationUploaded">
|
||||
{foreach $custom_data as $picture}
|
||||
<li><img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" /></li>
|
||||
<tr class="cart_total_price">
|
||||
<td rowspan="{$rowspan_total}" colspan="3" id="cart_voucher" class="cart_voucher">
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach $displayVouchers as $voucher}
|
||||
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{elseif $type == $CUSTOMIZE_TEXTFIELD}
|
||||
<ul class="typedText">
|
||||
{foreach $custom_data as $textField}
|
||||
<li>
|
||||
{if $textField.name}
|
||||
{$textField.name}
|
||||
{else}
|
||||
{l s='Text #'}{$textField@index+1}
|
||||
{/if}
|
||||
: {$textField.value}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
<td class="cart_quantity" colspan="1">
|
||||
<span>{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
</td>
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach $displayVouchers as $voucher}
|
||||
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
<tr class="cart_total_price">
|
||||
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
|
||||
{if $voucherAllowed}
|
||||
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
|
||||
<fieldset>
|
||||
<h4>{l s='Vouchers'}</h4>
|
||||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||||
<input type="hidden" name="submitDiscount" />
|
||||
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small">
|
||||
<span>{l s='OK'}</span>
|
||||
</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{if $displayVouchers}
|
||||
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
|
||||
<div id="display_cart_vouchers">
|
||||
{foreach $displayVouchers as $voucher}
|
||||
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total products'}</td>
|
||||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
|
||||
</tr>
|
||||
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
|
||||
{/foreach}
|
||||
|
||||
{* If it exists also some uncustomized products *}
|
||||
{if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var='last_was_odd' value=$product@iteration%2}
|
||||
{foreach $gift_products as $product}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='odd' value=($product@iteration+$last_was_odd)%2}
|
||||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{assign var='cannotModify' value=1}
|
||||
{* Display the gift product line *}
|
||||
{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{if sizeof($discounts)}
|
||||
<tbody>
|
||||
{foreach $discounts as $discount}
|
||||
{if (float)$discount.value_real == 0}
|
||||
{continue}
|
||||
{/if}
|
||||
<tr class="cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
|
||||
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount">
|
||||
{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}
|
||||
</span>
|
||||
</td>
|
||||
<td class="cart_discount_delete">1</td>
|
||||
<td class="price_discount_del text-center">
|
||||
{if strlen($discount.code)}
|
||||
<a
|
||||
href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}"
|
||||
class="price_discount_delete"
|
||||
title="{l s='Delete'}">
|
||||
<i class="icon-trash"></i>
|
||||
</a>
|
||||
<tr {if $total_wrapping == 0} style="display: none;"{/if}>
|
||||
<td colspan="3" class="text-right">
|
||||
{if $use_taxes}
|
||||
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift-wrapping cost'}{/if}
|
||||
{else}
|
||||
{l s='Total gift-wrapping cost'}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}</span>
|
||||
<td colspan="2" class="price-discount price" id="total_wrapping">
|
||||
{if $use_taxes}
|
||||
{if $priceDisplay}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping}
|
||||
{/if}
|
||||
{else}
|
||||
{displayPrice price=$total_wrapping_tax_exc}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
</table>
|
||||
</div> <!-- end order-detail-content -->
|
||||
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart)}
|
||||
<tr class="cart_total_delivery{if !$opc && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{l s='Free shipping!'}</td>
|
||||
</tr>
|
||||
{else}
|
||||
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
|
||||
{if $priceDisplay}
|
||||
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="cart_total_delivery{if $total_shipping <= 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{else}
|
||||
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
|
||||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<tr class="cart_total_voucher{if $total_discounts == 0} unvisible{/if}">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">
|
||||
{if $display_tax_label}
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{l s='Total vouchers (tax incl.)'}
|
||||
{else}
|
||||
{l s='Total vouchers (tax excl.)'}
|
||||
{/if}
|
||||
{else}
|
||||
{l s='Total vouchers'}
|
||||
{/if}
|
||||
</td>
|
||||
<td colspan="2" class="price-discount price" id="total_discount">
|
||||
{if $use_taxes && $priceDisplay == 0}
|
||||
{assign var='total_discounts_negative' value=$total_discounts * -1}
|
||||
{else}
|
||||
{assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1}
|
||||
{/if}
|
||||
{displayPrice price=$total_discounts_negative}
|
||||
</td>
|
||||
</tr>
|
||||
{if $use_taxes && $show_taxes && $total_tax != 0 }
|
||||
{if $priceDisplay != 0}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
|
||||
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_tax">
|
||||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Tax'}</td>
|
||||
<td colspan="2" class="price" id="total_tax">{displayPrice price=$total_tax}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="cart_total_price">
|
||||
<td colspan="{$col_span_subtotal}" class="total_price_container text-right">
|
||||
<span>{l s='Total'}</span>
|
||||
<div class="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayCartTotalPriceLabel"}
|
||||
</div>
|
||||
</td>
|
||||
{if $use_taxes}
|
||||
<td colspan="2" class="price" id="total_price_container">
|
||||
<span id="total_price">{displayPrice price=$total_price}</span>
|
||||
</td>
|
||||
{else}
|
||||
<td colspan="2" class="price" id="total_price_container">
|
||||
<span id="total_price">{displayPrice price=$total_price_without_tax}</span>
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{hook h="displayAfterShoppingCartBlock" colspan_total=$col_span_total}
|
||||
</tfoot>
|
||||
<tbody>
|
||||
{assign var='odd' value=0}
|
||||
{assign var='have_non_virtual_products' value=false}
|
||||
{foreach $products as $product}
|
||||
{if $product.is_virtual == 0}
|
||||
{assign var='have_non_virtual_products' value=true}
|
||||
{/if}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='odd' value=($odd+1)%2}
|
||||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)}
|
||||
{* Display the product line *}
|
||||
{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0}
|
||||
{* Then the customized datas ones*}
|
||||
{if isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$customization}
|
||||
<tr
|
||||
id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
|
||||
class="product_customization_for_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if $odd} odd{else} even{/if} customization alternate_item {if $product@last && $customization@last && !count($gift_products)}last_item{/if}">
|
||||
<td></td>
|
||||
<td colspan="3">
|
||||
{foreach $customization.datas as $type => $custom_data}
|
||||
{if $type == $CUSTOMIZE_FILE}
|
||||
<div class="customizationUploaded">
|
||||
<ul class="customizationUploaded">
|
||||
{foreach $custom_data as $picture}
|
||||
<li><img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" /></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{elseif $type == $CUSTOMIZE_TEXTFIELD}
|
||||
<ul class="typedText">
|
||||
{foreach $custom_data as $textField}
|
||||
<li>
|
||||
{if $textField.name}
|
||||
{$textField.name}
|
||||
{else}
|
||||
{l s='Text #'}{$textField@index+1}
|
||||
{/if}
|
||||
: {$textField.value}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
<td class="cart_quantity" colspan="1">
|
||||
<span>{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
|
||||
{/foreach}
|
||||
|
||||
{* If it exists also some uncustomized products *}
|
||||
{if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var='last_was_odd' value=$product@iteration%2}
|
||||
{foreach $gift_products as $product}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='odd' value=($product@iteration+$last_was_odd)%2}
|
||||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{assign var='cannotModify' value=1}
|
||||
{* Display the gift product line *}
|
||||
{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{if sizeof($discounts)}
|
||||
<tbody>
|
||||
{foreach $discounts as $discount}
|
||||
{if (float)$discount.value_real == 0}
|
||||
{continue}
|
||||
{/if}
|
||||
<tr class="cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
|
||||
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount">
|
||||
{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}
|
||||
</span>
|
||||
</td>
|
||||
<td class="cart_discount_delete">1</td>
|
||||
<td class="price_discount_del text-center">
|
||||
{if strlen($discount.code)}
|
||||
<a
|
||||
href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}"
|
||||
class="price_discount_delete"
|
||||
title="{l s='Delete'}">
|
||||
<i class="icon-trash"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="cart_discount_price">
|
||||
<span class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
</table>
|
||||
{/block}
|
||||
</div> <!-- end order-detail-content -->
|
||||
|
||||
|
||||
{block name='shopping_cart_advanced_navigation'}
|
||||
<p class="cart_navigation clearfix">
|
||||
|
||||
<p class="cart_navigation clearfix">
|
||||
{if $opc}
|
||||
{assign var='back_link' value=$link->getPageLink('index')}
|
||||
{else}
|
||||
{assign var='back_link' value=$link->getPageLink('order', true, NULL, "step=2")}
|
||||
{/if}
|
||||
<a href="{$back_link|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
|
||||
<i class="icon-chevron-left"></i>
|
||||
{l s='Continue shopping'}
|
||||
</a>
|
||||
<button data-show-if-js="" style="" id="confirmOrder" type="button" class="button btn btn-default standard-checkout button-medium"><span>{l s='Order With Obligation To Pay'}</span></button>
|
||||
</p>
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
{if $opc}
|
||||
{assign var='back_link' value=$link->getPageLink('index')}
|
||||
{else}
|
||||
{assign var='back_link' value=$link->getPageLink('order', true, NULL, "step=2")}
|
||||
{/if}
|
||||
<a href="{$back_link|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
|
||||
<i class="icon-chevron-left"></i>
|
||||
{l s='Continue shopping'}
|
||||
</a>
|
||||
<button data-show-if-js="" style="" id="confirmOrder" type="button" class="button btn btn-default standard-checkout button-medium"><span>{l s='Order With Obligation To Pay'}</span></button>
|
||||
</p>
|
||||
|
||||
{strip}
|
||||
{addJsDef deliveryAddress=$cart->id_address_delivery|intval}
|
||||
{/strip}
|
||||
{block name='shopping_cart_advanced_js_vars'}
|
||||
{strip}
|
||||
{addJsDef deliveryAddress=$cart->id_address_delivery|intval}
|
||||
{/strip}
|
||||
{/block}
|
||||
|
||||
@@ -23,414 +23,443 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
{block name='shopping_cart_content'}
|
||||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||||
|
||||
{* <h1 id="cart_title" class="page-heading">{l s='Shopping-cart summary'}
|
||||
{if !isset($empty) && !$PS_CATALOG_MODE}
|
||||
<span class="heading-counter">{l s='Your shopping cart contains:'}
|
||||
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
|
||||
</span>
|
||||
{* <h1 id="cart_title" class="page-heading">{l s='Shopping-cart summary'}
|
||||
{if !isset($empty) && !$PS_CATALOG_MODE}
|
||||
<span class="heading-counter">{l s='Your shopping cart contains:'}
|
||||
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
|
||||
</span>
|
||||
{/if}
|
||||
</h1> *}
|
||||
|
||||
{if isset($account_created)}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your account has been created.'}
|
||||
</p>
|
||||
{/if}
|
||||
</h1> *}
|
||||
|
||||
{if isset($account_created)}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your account has been created.'}
|
||||
</p>
|
||||
{/if}
|
||||
{block name='shopping_cart_order_steps_container'}
|
||||
{assign var='current_step' value='summary'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
{/block}
|
||||
|
||||
{assign var='current_step' value='summary'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
|
||||
{if isset($empty)}
|
||||
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||||
{elseif $PS_CATALOG_MODE}
|
||||
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
|
||||
{else}
|
||||
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
|
||||
{if isset($lastProductAdded) AND $lastProductAdded}
|
||||
<div class="cart_last_product">
|
||||
<div class="cart_last_product_header">
|
||||
<div class="left">{l s='Last product added'}</div>
|
||||
</div>
|
||||
<a class="cart_last_product_img" href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, $lastProductAdded.id_shop)|escape:'html':'UTF-8'}">
|
||||
<img src="{$link->getImageLink($lastProductAdded.link_rewrite, $lastProductAdded.id_image, 'small_default')|escape:'html':'UTF-8'}" alt="{$lastProductAdded.name|escape:'html':'UTF-8'}"/>
|
||||
</a>
|
||||
<div class="cart_last_product_content">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
|
||||
{$lastProductAdded.name|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</p>
|
||||
{if isset($lastProductAdded.attributes) && $lastProductAdded.attributes}
|
||||
<small>
|
||||
{if isset($empty)}
|
||||
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||||
{elseif $PS_CATALOG_MODE}
|
||||
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
|
||||
{else}
|
||||
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
|
||||
{if isset($lastProductAdded) AND $lastProductAdded}
|
||||
<div class="cart_last_product">
|
||||
<div class="cart_last_product_header">
|
||||
<div class="left">{l s='Last product added'}</div>
|
||||
</div>
|
||||
<a class="cart_last_product_img" href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, $lastProductAdded.id_shop)|escape:'html':'UTF-8'}">
|
||||
<img src="{$link->getImageLink($lastProductAdded.link_rewrite, $lastProductAdded.id_image, 'small_default')|escape:'html':'UTF-8'}" alt="{$lastProductAdded.name|escape:'html':'UTF-8'}"/>
|
||||
</a>
|
||||
<div class="cart_last_product_content">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
|
||||
{$lastProductAdded.attributes|escape:'html':'UTF-8'}
|
||||
{$lastProductAdded.name|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</small>
|
||||
{/if}
|
||||
</p>
|
||||
{if isset($lastProductAdded.attributes) && $lastProductAdded.attributes}
|
||||
<small>
|
||||
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
|
||||
{$lastProductAdded.attributes|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</small>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{assign var='total_discounts_num' value="{if $total_discounts != 0}1{else}0{/if}"}
|
||||
{assign var='use_show_taxes' value="{if $use_taxes && $show_taxes}2{else}0{/if}"}
|
||||
{assign var='total_wrapping_taxes_num' value="{if $total_wrapping != 0}1{else}0{/if}"}
|
||||
{* eu-legal *}
|
||||
{hook h="displayBeforeShoppingCartBlock"}
|
||||
{/if}
|
||||
{assign var='total_discounts_num' value="{if $total_discounts != 0}1{else}0{/if}"}
|
||||
{assign var='use_show_taxes' value="{if $use_taxes && $show_taxes}2{else}0{/if}"}
|
||||
{assign var='total_wrapping_taxes_num' value="{if $total_wrapping != 0}1{else}0{/if}"}
|
||||
{* eu-legal *}
|
||||
{block name='hook_display_before_shopping_cart_block'}
|
||||
{hook h="displayBeforeShoppingCartBlock"}
|
||||
{/block}
|
||||
|
||||
<div class="order-detail-content">
|
||||
{if isset($cart_htl_data) && $cart_htl_data}
|
||||
<p class="cart_section_title">{l s='rooms information'}</p>
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<div class="row cart_product_line">
|
||||
<div class="col-sm-2 product-img-block">
|
||||
<p>
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</p>
|
||||
<p class="room_remove_block">
|
||||
<a href="{$rm_v['link']}"><i class="icon-trash"></i> {l s='Remove'}</a>
|
||||
</p>
|
||||
{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}
|
||||
</div>
|
||||
<div class="col-sm-10">
|
||||
<div class="room-info-container">
|
||||
<div class="product-xs-img">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="product-xs-info">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['name']}
|
||||
</a>
|
||||
<a class="btn btn-default pull-right product-xs-remove" href="{$rm_v['link']}"><i class="icon-trash"></i></a>
|
||||
{hook h='displayCartRoomTypeNameAfter' id_product=$data_v['id_product']}
|
||||
</p>
|
||||
{if isset($data_v['hotel_info']['location'])}
|
||||
<p class="hotel-location">
|
||||
<i class="icon-map-marker"></i> {$data_v['hotel_info']['location']}
|
||||
</p>
|
||||
{/if}
|
||||
{hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']}
|
||||
</div>
|
||||
</div>
|
||||
{if isset($data_v['hotel_info']['room_features'])}
|
||||
<div class="room-type-features">
|
||||
{foreach $data_v['hotel_info']['room_features'] as $feature}
|
||||
<span class="room-type-feature">
|
||||
<img src="{$THEME_DIR}img/icon/form-ok-circle.svg" /> {$feature['name']}
|
||||
</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="room_duration_block">
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<p class="room_duration_block_head">{l s='CHECK IN'}</p>
|
||||
<p class="room_duration_block_value">{$rm_v['data_form']|date_format:"%d %b, %a"}</p>
|
||||
</div>
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<p class="room_duration_block_head">{l s='CHECK OUT'}</p>
|
||||
<p class="room_duration_block_value">{$rm_v['data_to']|date_format:"%d %b, %a"}</p>
|
||||
</div>
|
||||
<div class="col-sm-6 col-xs-6">
|
||||
<p class="room_duration_block_head">{l s='OCCUPANCY'}</p>
|
||||
<p class="room_duration_block_value">
|
||||
{if {$rm_v['adults']} <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else}{$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}, {if {$rm_v['num_rm']} <= 9}0{/if}{$rm_v['num_rm']}{if $rm_v['num_rm'] > 1} {l s='Rooms'}{else} {l s='Room'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row room_price_detail_block">
|
||||
<div class="col-sm-7 margin-btm-sm-10">
|
||||
{if $rm_v['amount'] && isset($rm_v['total_price_without_discount']) && $rm_v['total_price_without_discount'] > $rm_v['amount']}
|
||||
<span class="room_type_old_price">
|
||||
{displayPrice price=$rm_v['total_price_without_discount']|floatval}
|
||||
</span>
|
||||
{/if}
|
||||
<div class="row">
|
||||
<div class="{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}col-xs-6 plus-sign{else}col-xs-12{/if}">
|
||||
<div class="price_block">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{displayPrice price=($rm_v['amount'])}
|
||||
</span>
|
||||
{if (($rm_v['amount'] - $rm_v['amount_without_auto_add']) > 0) && (in_array($data_v['id_product'], $discounted_products) || $PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN)}
|
||||
<span class="room-price-detail">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
<div class="room-price-detail-container" style="display: none;">
|
||||
<div class="room-price-detail-tooltip-cont">
|
||||
<div><label>{l s='Room price'}</label> : {displayPrice price=($rm_v['amount_without_auto_add'])}</div>
|
||||
<div><label>{l s='Additional charges'}</label> : {displayPrice price=($rm_v['amount'] - $rm_v['amount_without_auto_add'])}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Total rooms price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
{block name='shopping_cart'}
|
||||
<div class="order-detail-content">
|
||||
{if isset($cart_htl_data) && $cart_htl_data}
|
||||
<p class="cart_section_title">{l s='rooms information'}</p>
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{block name='order_detail_room_type_list'}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<div class="row cart_product_line">
|
||||
{block name='shopping_cart_room_image'}
|
||||
|
||||
<div class="col-sm-2 product-img-block">
|
||||
<p>
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</p>
|
||||
<p class="room_remove_block">
|
||||
<a href="{$rm_v['link']}"><i class="icon-trash"></i> {l s='Remove'}</a>
|
||||
</p>
|
||||
{block name='hook_display_cart_room_image_after'}
|
||||
{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
</div>
|
||||
{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}
|
||||
<div class="col-xs-6">
|
||||
<div class="demand_price_block">
|
||||
<p class="demand_total_price">
|
||||
<span>
|
||||
{displayPrice price=$rm_v['demand_price']}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
<a data-date_from="{$rm_v['data_form']|escape:'html':'UTF-8'}" data-date_to="{$rm_v['data_to']|escape:'html':'UTF-8'}" data-id_product="{$data_v['id_product']|escape:'html':'UTF-8'}" data-action="{$link->getPageLink('order-opc')}" class="open_rooms_extra_services_panel" href="#rooms_type_extra_services_form">
|
||||
{l s='Extra Services'}
|
||||
{/block}
|
||||
<div class="col-sm-10">
|
||||
{block name='shopping_cart_room_type_info'}
|
||||
<div class="room-info-container">
|
||||
<div class="product-xs-img">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="product-xs-info">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['name']}
|
||||
</a>
|
||||
<a class="btn btn-default pull-right product-xs-remove" href="{$rm_v['link']}"><i class="icon-trash"></i></a>
|
||||
{hook h='displayCartRoomTypeNameAfter' id_product=$data_v['id_product']}
|
||||
</p>
|
||||
{if isset($data_v['hotel_info']['location'])}
|
||||
<p class="hotel-location">
|
||||
<i class="icon-map-marker"></i> {$data_v['hotel_info']['location']}
|
||||
</p>
|
||||
{/if}
|
||||
{block name='hook_display_cart_room_type_info'}
|
||||
{hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{if isset($data_v['hotel_info']['room_features'])}
|
||||
<div class="room-type-features">
|
||||
{foreach $data_v['hotel_info']['room_features'] as $feature}
|
||||
<span class="room-type-feature">
|
||||
<img src="{$THEME_DIR}img/icon/form-ok-circle.svg" /> {$feature['name']}
|
||||
</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="room_duration_block">
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<p class="room_duration_block_head">{l s='CHECK IN'}</p>
|
||||
<p class="room_duration_block_value">{$rm_v['data_form']|date_format:"%d %b, %a"}</p>
|
||||
</div>
|
||||
<div class="col-sm-3 col-xs-6">
|
||||
<p class="room_duration_block_head">{l s='CHECK OUT'}</p>
|
||||
<p class="room_duration_block_value">{$rm_v['data_to']|date_format:"%d %b, %a"}</p>
|
||||
</div>
|
||||
<div class="col-sm-6 col-xs-6">
|
||||
<p class="room_duration_block_head">{l s='OCCUPANCY'}</p>
|
||||
<p class="room_duration_block_value">
|
||||
{if {$rm_v['adults']} <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else}{$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}, {if {$rm_v['num_rm']} <= 9}0{/if}{$rm_v['num_rm']}{if $rm_v['num_rm'] > 1} {l s='Rooms'}{else} {l s='Room'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='shopping_cart_room_type_price_detail'}
|
||||
<div class="row room_price_detail_block">
|
||||
<div class="col-sm-7 margin-btm-sm-10">
|
||||
{if $rm_v['amount'] && isset($rm_v['total_price_without_discount']) && $rm_v['total_price_without_discount'] > $rm_v['amount']}
|
||||
<span class="room_type_old_price">
|
||||
{displayPrice price=$rm_v['total_price_without_discount']|floatval}
|
||||
</span>
|
||||
{/if}
|
||||
<div class="row">
|
||||
<div class="{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}col-xs-6 plus-sign{else}col-xs-12{/if}">
|
||||
<div class="price_block">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{displayPrice price=($rm_v['amount'])}
|
||||
</span>
|
||||
{if (($rm_v['amount'] - $rm_v['amount_without_auto_add']) > 0) && (in_array($data_v['id_product'], $discounted_products) || $PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN)}
|
||||
<span class="room-price-detail">
|
||||
<img src="{$img_dir}icon/icon-info.svg" />
|
||||
</span>
|
||||
<div class="room-price-detail-container" style="display: none;">
|
||||
<div class="room-price-detail-tooltip-cont">
|
||||
<div><label>{l s='Room price'}</label> : {displayPrice price=($rm_v['amount_without_auto_add'])}</div>
|
||||
<div><label>{l s='Additional charges'}</label> : {displayPrice price=($rm_v['amount'] - $rm_v['amount_without_auto_add'])}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Total rooms price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}
|
||||
<div class="col-xs-6">
|
||||
<div class="demand_price_block">
|
||||
<p class="demand_total_price">
|
||||
<span>
|
||||
{displayPrice price=$rm_v['demand_price']}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
<a data-date_from="{$rm_v['data_form']|escape:'html':'UTF-8'}" data-date_to="{$rm_v['data_to']|escape:'html':'UTF-8'}" data-id_product="{$data_v['id_product']|escape:'html':'UTF-8'}" data-action="{$link->getPageLink('order-opc')}" class="open_rooms_extra_services_panel" href="#rooms_type_extra_services_form">
|
||||
{l s='Extra Services'}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<div class="total_price_block col-xs-12">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{displayPrice price=($rm_v['amount']+$rm_v['demand_price'])}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Total price for'} {$rm_v['num_days']} {l s='Night(s) stay'}{if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='hook_display_cart_product_content_after'}
|
||||
{hook h='displayCartProductContentAfter' cart_detail=$data_v key=$rm_k}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<div class="total_price_block col-xs-12">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{displayPrice price=($rm_v['amount']+$rm_v['demand_price'])}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Total price for'} {$rm_v['num_days']} {l s='Night(s) stay'}{if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displayCartProductContentAfter' cart_detail=$data_v key=$rm_k}
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if isset($cart_normal_data) && $cart_normal_data}
|
||||
<p class="cart_section_title">{l s='service product information'}</p>
|
||||
{foreach from=$cart_normal_data key=data_k item=product}
|
||||
<div class="row cart_product_line">
|
||||
<div class="col-sm-2 product-img-block">
|
||||
<p>
|
||||
<a href="{$link->getProductLink($product['id_product'])}">
|
||||
<img src="{$product['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</p>
|
||||
<p class="product_remove_block">
|
||||
<a id="{$product.id_product}_{$product.id_hotel}" class="cart_quantity_delete" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&token={$token_cart}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Delete'}">
|
||||
<i class="icon-trash"></i> {l s='Remove'}
|
||||
</a>
|
||||
{* <a href="{$rm_v['link']}"><i class="icon-trash"></i> {l s='Remove'}</a> *}
|
||||
</p>
|
||||
{hook h='displayCartProductImageAfter' id_product=$product['id_product']}
|
||||
</div>
|
||||
<div class="col-sm-10">
|
||||
<div class="product-info-container">
|
||||
<div class="product-xs-img">
|
||||
<a href="{$link->getProductLink($product['id_product'])}">
|
||||
<img src="{$product['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="product-xs-info">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($product['id_product'])}">
|
||||
{$product['name']}
|
||||
</a>
|
||||
<a class="btn btn-default pull-right product-xs-remove" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&token={$token_cart}")|escape:'html':'UTF-8'}"><i class="icon-trash"></i></a>
|
||||
</p>
|
||||
{if isset($product['hotel_info']['location'])}
|
||||
<p class="hotel-location">
|
||||
<i class="icon-map-marker"></i> {$product['hotel_info']['location']}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row product_price_detail_block">
|
||||
<div class="col-sm-4">
|
||||
<div class="price_block">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{if $priceDisplay}{displayPrice price=($product['unit_price_tax_excl'])}{else}{displayPrice price=($product['unit_price_tax_incl'])}{/if}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Unit price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="product_quantity_block">
|
||||
<p class="">
|
||||
<span>
|
||||
{if $product['quantity'] <= 9}0{$product['quantity']}{else}{$product['quantity']}{/if}
|
||||
</span>
|
||||
</p>
|
||||
<p class="product_quantity_detial">
|
||||
{l s='Total Qty'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="total_price_block pull-right">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{if $priceDisplay}{displayPrice price=($product['total_price_tax_excl'])}{else}{displayPrice price=($product['total_price_tax_incl'])}{/if}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Total price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{* proceed only if no order restrict errors are there *}
|
||||
{if !$orderRestrictErr}
|
||||
<div class="row">
|
||||
<div class="col-sm-12 proceed_btn_block">
|
||||
<a class="btn btn-default button button-medium pull-right" href="{$link->getPageLink('order-opc', null, null, ['proceed_to_customer_dtl' => 1])}" title="Proceed to checkout" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed'}
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if $show_option_allow_separate_package}
|
||||
<p>
|
||||
<label for="allow_seperated_package" class="checkbox inline">
|
||||
<input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Send available products first'}
|
||||
</label>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{* Define the style if it doesn't exist in the PrestaShop version*}
|
||||
{* Will be deleted for 1.5 version and more *}
|
||||
{if !isset($addresses_style)}
|
||||
{$addresses_style.company = 'address_company'}
|
||||
{$addresses_style.firstname = 'address_name'}
|
||||
{$addresses_style.lastname = 'address_name'}
|
||||
{$addresses_style.address1 = 'address_address1'}
|
||||
{$addresses_style.address2 = 'address_address2'}
|
||||
{$addresses_style.city = 'address_city'}
|
||||
{$addresses_style.country = 'address_country'}
|
||||
{$addresses_style.phone = 'address_phone'}
|
||||
{$addresses_style.phone_mobile = 'address_phone_mobile'}
|
||||
{$addresses_style.alias = 'address_title'}
|
||||
{/if}
|
||||
{if !$advanced_payment_api && ((!empty($delivery_option) && (!isset($isVirtualCart) || !$isVirtualCart)) OR $delivery->id || $invoice->id) && !$opc}
|
||||
<div class="order_delivery clearfix row">
|
||||
{if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)}
|
||||
{if $delivery->id}
|
||||
<div class="col-xs-12 col-sm-6"{if !$have_non_virtual_products} style="display: none;"{/if}>
|
||||
<ul id="delivery_address" class="address item box">
|
||||
<li><h3 class="page-subheading">{l s='Delivery address'} <span class="address_alias">({$delivery->alias})</span></h3></li>
|
||||
{if $delivery->company}<li class="address_company">{$delivery->company|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_name">{$delivery->firstname|escape:'html':'UTF-8'} {$delivery->lastname|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_address1">{$delivery->address1|escape:'html':'UTF-8'}</li>
|
||||
{if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_city">{$delivery->postcode|escape:'html':'UTF-8'} {$delivery->city|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_country">{$delivery->country|escape:'html':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'html':'UTF-8'}){/if}</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $invoice->id}
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<ul id="invoice_address" class="address alternate_item box">
|
||||
<li><h3 class="page-subheading">{l s='Invoice address'} <span class="address_alias">({$invoice->alias})</span></h3></li>
|
||||
{if $invoice->company}<li class="address_company">{$invoice->company|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_name">{$invoice->firstname|escape:'html':'UTF-8'} {$invoice->lastname|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_address1">{$invoice->address1|escape:'html':'UTF-8'}</li>
|
||||
{if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_city">{$invoice->postcode|escape:'html':'UTF-8'} {$invoice->city|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_country">{$invoice->country|escape:'html':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'html':'UTF-8'}){/if}</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
{foreach from=$formattedAddresses key=k item=address}
|
||||
<div class="col-xs-12 col-sm-6"{if $k == 'delivery' && !$have_non_virtual_products} style="display: none;"{/if}>
|
||||
<ul class="address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if} box">
|
||||
<li>
|
||||
<h3 class="page-subheading">
|
||||
{if $k eq 'invoice'}
|
||||
{l s='Invoice address'}
|
||||
{elseif $k eq 'delivery' && $delivery->id}
|
||||
{l s='Delivery address'}
|
||||
{/if}
|
||||
{if isset($address.object.alias)}
|
||||
<span class="address_alias">({$address.object.alias})</span>
|
||||
{/if}
|
||||
</h3>
|
||||
</li>
|
||||
{foreach $address.ordered as $pattern}
|
||||
{assign var=addressKey value=" "|explode:$pattern}
|
||||
{assign var=addedli value=false}
|
||||
{foreach from=$addressKey item=key name=foo}
|
||||
{$key_str = $key|regex_replace:AddressFormat::_CLEANING_REGEX_:""}
|
||||
{if isset($address.formated[$key_str]) && !empty($address.formated[$key_str])}
|
||||
{if (!$addedli)}
|
||||
{$addedli = true}
|
||||
<li><span class="{if isset($addresses_style[$key_str])}{$addresses_style[$key_str]}{/if}">
|
||||
{/if}
|
||||
{$address.formated[$key_str]|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
{if ($smarty.foreach.foo.last && $addedli)}
|
||||
</span></li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<hr>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
|
||||
{* <p class="cart_navigation clearfix">
|
||||
{if !$opc}
|
||||
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')|escape:'html':'UTF-8'}{else}{$link->getPageLink('order', true, NULL, 'step=1')|escape:'html':'UTF-8'}{/if}" class="button btn btn-default standard-checkout button-medium" title="{l s='Proceed to checkout'}">
|
||||
<span>{l s='Proceed to checkout'}<i class="icon-chevron-right right"></i></span>
|
||||
</a>
|
||||
{/if}
|
||||
<a href="{if (isset($smarty.server.HTTP_REFERER) && ($smarty.server.HTTP_REFERER == $link->getPageLink('order', true) || $smarty.server.HTTP_REFERER == $link->getPageLink('order-opc', true) || strstr($smarty.server.HTTP_REFERER, 'step='))) || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}{else}{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}{/if}" class="button-exclusive btn btn-default" title="{l s='Continue shopping'}">
|
||||
<i class="icon-chevron-left"></i>{l s='Continue shopping'}
|
||||
</a>
|
||||
</p> *}
|
||||
<div class="clear"></div>
|
||||
<div class="cart_navigation_extra">
|
||||
<div id="HOOK_SHOPPING_CART_EXTRA">{if isset($HOOK_SHOPPING_CART_EXTRA)}{$HOOK_SHOPPING_CART_EXTRA}{/if}</div>
|
||||
</div>
|
||||
{strip}
|
||||
{addJsDef deliveryAddress=$cart->id_address_delivery|intval}
|
||||
{addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{/if}
|
||||
{/block}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if isset($cart_normal_data) && $cart_normal_data}
|
||||
<p class="cart_section_title">{l s='service product information'}</p>
|
||||
{block name='shopping_cart_ normal_product_list'}
|
||||
{foreach from=$cart_normal_data key=data_k item=product}
|
||||
<div class="row cart_product_line">
|
||||
<div class="col-sm-2 product-img-block">
|
||||
<p>
|
||||
<a href="{$link->getProductLink($product['id_product'])}">
|
||||
<img src="{$product['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</p>
|
||||
<p class="product_remove_block">
|
||||
<a id="{$product.id_product}_{$product.id_hotel}" class="cart_quantity_delete" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&token={$token_cart}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Delete'}">
|
||||
<i class="icon-trash"></i> {l s='Remove'}
|
||||
</a>
|
||||
{* <a href="{$rm_v['link']}"><i class="icon-trash"></i> {l s='Remove'}</a> *}
|
||||
</p>
|
||||
{hook h='displayCartProductImageAfter' id_product=$product['id_product']}
|
||||
</div>
|
||||
<div class="col-sm-10">
|
||||
<div class="product-info-container">
|
||||
<div class="product-xs-img">
|
||||
<a href="{$link->getProductLink($product['id_product'])}">
|
||||
<img src="{$product['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="product-xs-info">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($product['id_product'])}">
|
||||
{$product['name']}
|
||||
</a>
|
||||
<a class="btn btn-default pull-right product-xs-remove" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&token={$token_cart}")|escape:'html':'UTF-8'}"><i class="icon-trash"></i></a>
|
||||
</p>
|
||||
{if isset($product['hotel_info']['location'])}
|
||||
<p class="hotel-location">
|
||||
<i class="icon-map-marker"></i> {$product['hotel_info']['location']}
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row product_price_detail_block">
|
||||
<div class="col-sm-4">
|
||||
<div class="price_block">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{if $priceDisplay}{displayPrice price=($product['unit_price_tax_excl'])}{else}{displayPrice price=($product['unit_price_tax_incl'])}{/if}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Unit price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="product_quantity_block">
|
||||
<p class="">
|
||||
<span>
|
||||
{if $product['quantity'] <= 9}0{$product['quantity']}{else}{$product['quantity']}{/if}
|
||||
</span>
|
||||
</p>
|
||||
<p class="product_quantity_detial">
|
||||
{l s='Total Qty'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="total_price_block pull-right">
|
||||
<p class="total_price">
|
||||
<span>
|
||||
{if $priceDisplay}{displayPrice price=($product['total_price_tax_excl'])}{else}{displayPrice price=($product['total_price_tax_incl'])}{/if}
|
||||
</span>
|
||||
</p>
|
||||
<p class="total_price_detial">
|
||||
{l s='Total price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{/foreach}
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{* Fancybox for extra demands*}
|
||||
<div style="display:none;" id="rooms_extra_services">
|
||||
{* <div id="rooms_type_extra_services"> *}
|
||||
{* <div class="panel">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<h3>{l s='Additional Facilities'}</h3>
|
||||
<p class="rooms_extra_demands_text">{l s='Add below additional facilities to the rooms for better hotel experience'}</p>
|
||||
{* proceed only if no order restrict errors are there *}
|
||||
{if !$orderRestrictErr}
|
||||
<div class="row">
|
||||
<div class="col-sm-12 proceed_btn_block">
|
||||
<a class="btn btn-default button button-medium pull-right" href="{$link->getPageLink('order-opc', null, null, ['proceed_to_customer_dtl' => 1])}" title="Proceed to checkout" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed'}
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div id="room_type_demands_desc"></div>
|
||||
</div> *}
|
||||
{* </div> *}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{if $show_option_allow_separate_package}
|
||||
<p>
|
||||
<label for="allow_seperated_package" class="checkbox inline">
|
||||
<input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} autocomplete="off"/>
|
||||
{l s='Send available products first'}
|
||||
</label>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{* Define the style if it doesn't exist in the PrestaShop version*}
|
||||
{* Will be deleted for 1.5 version and more *}
|
||||
{if !isset($addresses_style)}
|
||||
{$addresses_style.company = 'address_company'}
|
||||
{$addresses_style.firstname = 'address_name'}
|
||||
{$addresses_style.lastname = 'address_name'}
|
||||
{$addresses_style.address1 = 'address_address1'}
|
||||
{$addresses_style.address2 = 'address_address2'}
|
||||
{$addresses_style.city = 'address_city'}
|
||||
{$addresses_style.country = 'address_country'}
|
||||
{$addresses_style.phone = 'address_phone'}
|
||||
{$addresses_style.phone_mobile = 'address_phone_mobile'}
|
||||
{$addresses_style.alias = 'address_title'}
|
||||
{/if}
|
||||
{if !$advanced_payment_api && ((!empty($delivery_option) && (!isset($isVirtualCart) || !$isVirtualCart)) OR $delivery->id || $invoice->id) && !$opc}
|
||||
<div class="order_delivery clearfix row">
|
||||
{if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)}
|
||||
{if $delivery->id}
|
||||
<div class="col-xs-12 col-sm-6"{if !$have_non_virtual_products} style="display: none;"{/if}>
|
||||
<ul id="delivery_address" class="address item box">
|
||||
<li><h3 class="page-subheading">{l s='Delivery address'} <span class="address_alias">({$delivery->alias})</span></h3></li>
|
||||
{if $delivery->company}<li class="address_company">{$delivery->company|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_name">{$delivery->firstname|escape:'html':'UTF-8'} {$delivery->lastname|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_address1">{$delivery->address1|escape:'html':'UTF-8'}</li>
|
||||
{if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_city">{$delivery->postcode|escape:'html':'UTF-8'} {$delivery->city|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_country">{$delivery->country|escape:'html':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'html':'UTF-8'}){/if}</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{if $invoice->id}
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<ul id="invoice_address" class="address alternate_item box">
|
||||
<li><h3 class="page-subheading">{l s='Invoice address'} <span class="address_alias">({$invoice->alias})</span></h3></li>
|
||||
{if $invoice->company}<li class="address_company">{$invoice->company|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_name">{$invoice->firstname|escape:'html':'UTF-8'} {$invoice->lastname|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_address1">{$invoice->address1|escape:'html':'UTF-8'}</li>
|
||||
{if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'html':'UTF-8'}</li>{/if}
|
||||
<li class="address_city">{$invoice->postcode|escape:'html':'UTF-8'} {$invoice->city|escape:'html':'UTF-8'}</li>
|
||||
<li class="address_country">{$invoice->country|escape:'html':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'html':'UTF-8'}){/if}</li>
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
{foreach from=$formattedAddresses key=k item=address}
|
||||
<div class="col-xs-12 col-sm-6"{if $k == 'delivery' && !$have_non_virtual_products} style="display: none;"{/if}>
|
||||
<ul class="address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if} box">
|
||||
<li>
|
||||
<h3 class="page-subheading">
|
||||
{if $k eq 'invoice'}
|
||||
{l s='Invoice address'}
|
||||
{elseif $k eq 'delivery' && $delivery->id}
|
||||
{l s='Delivery address'}
|
||||
{/if}
|
||||
{if isset($address.object.alias)}
|
||||
<span class="address_alias">({$address.object.alias})</span>
|
||||
{/if}
|
||||
</h3>
|
||||
</li>
|
||||
{foreach $address.ordered as $pattern}
|
||||
{assign var=addressKey value=" "|explode:$pattern}
|
||||
{assign var=addedli value=false}
|
||||
{foreach from=$addressKey item=key name=foo}
|
||||
{$key_str = $key|regex_replace:AddressFormat::_CLEANING_REGEX_:""}
|
||||
{if isset($address.formated[$key_str]) && !empty($address.formated[$key_str])}
|
||||
{if (!$addedli)}
|
||||
{$addedli = true}
|
||||
<li><span class="{if isset($addresses_style[$key_str])}{$addresses_style[$key_str]}{/if}">
|
||||
{/if}
|
||||
{$address.formated[$key_str]|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
{if ($smarty.foreach.foo.last && $addedli)}
|
||||
</span></li>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{block name='hook_shopping_cart'}
|
||||
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
|
||||
{/block}
|
||||
{* <p class="cart_navigation clearfix">
|
||||
{if !$opc}
|
||||
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')|escape:'html':'UTF-8'}{else}{$link->getPageLink('order', true, NULL, 'step=1')|escape:'html':'UTF-8'}{/if}" class="button btn btn-default standard-checkout button-medium" title="{l s='Proceed to checkout'}">
|
||||
<span>{l s='Proceed to checkout'}<i class="icon-chevron-right right"></i></span>
|
||||
</a>
|
||||
{/if}
|
||||
<a href="{if (isset($smarty.server.HTTP_REFERER) && ($smarty.server.HTTP_REFERER == $link->getPageLink('order', true) || $smarty.server.HTTP_REFERER == $link->getPageLink('order-opc', true) || strstr($smarty.server.HTTP_REFERER, 'step='))) || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}{else}{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}{/if}" class="button-exclusive btn btn-default" title="{l s='Continue shopping'}">
|
||||
<i class="icon-chevron-left"></i>{l s='Continue shopping'}
|
||||
</a>
|
||||
</p> *}
|
||||
<div class="clear"></div>
|
||||
{block name='hook_shopping_cart_extra'}
|
||||
<div class="cart_navigation_extra">
|
||||
<div id="HOOK_SHOPPING_CART_EXTRA">{if isset($HOOK_SHOPPING_CART_EXTRA)}{$HOOK_SHOPPING_CART_EXTRA}{/if}</div>
|
||||
</div>
|
||||
{/block}
|
||||
{strip}
|
||||
{addJsDef deliveryAddress=$cart->id_address_delivery|intval}
|
||||
{addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL}
|
||||
{addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL}
|
||||
{/strip}
|
||||
{/if}
|
||||
|
||||
{* Fancybox for extra demands*}
|
||||
<div style="display:none;" id="rooms_extra_services">
|
||||
{* <div id="rooms_type_extra_services"> *}
|
||||
{* <div class="panel">
|
||||
<div class="rooms_extra_demands_head">
|
||||
<h3>{l s='Additional Facilities'}</h3>
|
||||
<p class="rooms_extra_demands_text">{l s='Add below additional facilities to the rooms for better hotel experience'}</p>
|
||||
</div>
|
||||
<div id="room_type_demands_desc"></div>
|
||||
</div> *}
|
||||
{* </div> *}
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user