first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
squaremeter_surface.css
|
||||
|
||||
to the end add below:
|
||||
|
||||
/* Ayon Theme CSS Fix */
|
||||
.product-bar-container{
|
||||
margin-bottom: 650px !important;
|
||||
}
|
||||
|
||||
#height, #width, #quantitym, #quantity_calculated {
|
||||
width:190px;
|
||||
}
|
||||
|
||||
#totalprice {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#totalpriceinfo span {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
input#quantity_wanted_alt, input#quantity_wanted_alth, input#quantity, input#directinput, #width select, #height select, #depth select, #weight select, #direct_input_p select, #directinput_p select {
|
||||
width: 105px;
|
||||
}
|
||||
/* Ayon Theme CSS Fix */
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This module is not a free module and all rights are reserved. It is prohibited to sell or redistribute this module for any purpose. Each license can be used only in one website. For multishop environment, a new license is required for each e-shop managed.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author MEG Venture <info@megventure.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This module is not a free module and all rights are reserved. It is prohibited to sell or redistribute this module for any purpose. Each license can be used only in one website. For multishop environment, a new license is required for each e-shop managed.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author MEG Venture <info@megventure.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,275 @@
|
||||
{if isset($dimension_data)}
|
||||
{foreach from=$dimension_data item="ddata"}
|
||||
{foreach from=$customization_added_to_cart item="cdata"}
|
||||
{if $cdata.0.id_customization == $product.id_customization}
|
||||
{if $ddata.0.displayquantity == 'decimalok'}
|
||||
{$dimension_text = $cdata.0.value}
|
||||
{$dimension_quantity = $cdata.0.total_dimension}
|
||||
{$dimension_unit = $cdata.0.unittype_module}
|
||||
{$product_price = $product.price|regex_replace:'/[^0-9,.]+/':''}
|
||||
{$currency = $product.price|regex_replace:'/[A-Za-z0-9.,]+/':''}
|
||||
{$unit_price = $product_price|floatval / $dimension_quantity|floatval}
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
<div class="product-line-grid">
|
||||
<!-- product left content: image-->
|
||||
<div class="product-line-grid-thumb">
|
||||
<span class="product-image media-middle">
|
||||
<img src="{$product.cover.bySize.cart_default.url}" alt="{$product.name|escape:'quotes'}">
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="product-line-grid-body">
|
||||
|
||||
<!-- first line -->
|
||||
<div class="product-line-name">
|
||||
|
||||
|
||||
|
||||
<div class="product-line-info">
|
||||
<a class="product-name" href="{$product.url}" data-id_customization="{$product.id_customization|intval}">{$product.name}</a>
|
||||
</div>
|
||||
|
||||
{foreach from=$product.attributes key="attribute" item="value"}
|
||||
<p class="product-line-info atts">
|
||||
<span class="label">{$attribute}:</span>
|
||||
<span class="value">{$value}</span>
|
||||
</p>
|
||||
{/foreach}
|
||||
|
||||
{* {if $product.customizations|count}
|
||||
<br>
|
||||
{block name='cart_detailed_product_line_customization'}
|
||||
{foreach from=$product.customizations item="customization"}
|
||||
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization}">{l s='Product customization' d='Shop.Theme.Catalog'}</a>
|
||||
<div class="modal fade customization-modal" id="product-customizations-modal-{$customization.id_customization}" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title">{l s='Product customization' d='Shop.Theme.Catalog'}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="power" style="width: 500px; height: 300px; background: url({$product.cover.bySize.cart_view.url}) 500px 300px; margin: auto; background-position: 0px 0px;"></div>
|
||||
{foreach from=$customization.fields item="field"}
|
||||
<div class="product-customization-line row">
|
||||
<div class="col-sm-3 col-xs-4 label">
|
||||
{$field.label}
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-8 value">
|
||||
{if $field.type == 'text'}
|
||||
{if (int)$field.id_module}
|
||||
{$field.text nofilter}
|
||||
{else}
|
||||
{$field.text}
|
||||
{/if}
|
||||
{elseif $field.type == 'image'}
|
||||
<img src="{$field.image.small.url}">
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/block}
|
||||
{/if} *}
|
||||
|
||||
<div class="cart-line-product-actions">
|
||||
<a
|
||||
class = "remove-from-cart remove"
|
||||
rel = "nofollow"
|
||||
href = "{$product.remove_from_cart_url}"
|
||||
data-link-action = "delete-from-cart"
|
||||
data-id-product = "{$product.id_product|escape:'javascript'}"
|
||||
data-id-product-attribute = "{$product.id_product_attribute|escape:'javascript'}"
|
||||
data-id-customization = "{$product.id_customization|escape:'javascript'}"
|
||||
>
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
<i><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></i>
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
{block name='hook_cart_extra_product_actions'}
|
||||
{hook h='displayCartExtraProductActions' product=$product}
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- second line -->
|
||||
|
||||
<div class="product-line-prices">
|
||||
|
||||
<div class="product-line-grid-price">
|
||||
<div class="product-line-info product-price h5 {if $product.has_discount}has-discount{/if}">
|
||||
<div class="current-price">
|
||||
<span class="price">{$product.price}</span>
|
||||
{if $product.has_discount}
|
||||
<span class="regular-price old-price">{$product.regular_price}</span>
|
||||
{if $product.discount_type === 'percentage'}
|
||||
<span class="discount discount-percentage">
|
||||
-{$product.discount_percentage_absolute}
|
||||
</span>
|
||||
{else}
|
||||
<span class="discount discount-amount">
|
||||
-{$product.discount_to_display}
|
||||
</span>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $product.unit_price_full}
|
||||
{if $dimension_text}
|
||||
<div class="unit-price-cart">{$currency}{$unit_price|string_format:"%.2f"} per {$dimension_unit|escape:'htmlall':'UTF-8'}</div>
|
||||
{else}
|
||||
<div class="unit-price-cart">{$product.unit_price_full}</div>
|
||||
{/if}
|
||||
{* <div class="unit-price-cart">{$product.unit_price_full}</div> *}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="product-line-grid-right product-line-actions">
|
||||
<div class="qty">
|
||||
{if isset($product.is_gift) && $product.is_gift}
|
||||
<span class="gift-quantity">{$product.quantity}</span>
|
||||
{else}
|
||||
<input
|
||||
class="js-cart-line-product-quantity"
|
||||
data-down-url="{$product.down_quantity_url}"
|
||||
data-up-url="{$product.up_quantity_url}"
|
||||
data-update-url="{$product.update_quantity_url}"
|
||||
data-product-id="{$product.id_product}"
|
||||
unique-product-id="{$product.id_product|escape:'javascript':'UTF-8'}-{$product.id_product_attribute|escape:'javascript':'UTF-8'}-{$product.id_customization|escape:'javascript':'UTF-8'}"
|
||||
type="text"
|
||||
value="{if isset($dimension_text)}{$dimension_quantity|escape:'htmlall':'UTF-8'}{else}{$product.quantity}{/if}"
|
||||
name="product-quantity-spin"
|
||||
min="{$product.minimal_quantity}"
|
||||
/>
|
||||
{if isset($dimension_text)}
|
||||
<div class="input-group-append" style="height: 40px;line-height: 59px;float:right;">
|
||||
<span class="input-group-text small-text text-muted">{$dimension_unit|escape:'htmlall':'UTF-8'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="price">
|
||||
<span class="product-price">
|
||||
{if isset($product.is_gift) && $product.is_gift}
|
||||
<span class="gift">{l s='Gift' d='Shop.Theme.Checkout'}</span>
|
||||
{else}
|
||||
{$product.total}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
{if is_array($product.customizations) && $product.customizations|count}
|
||||
<br>
|
||||
{block name='cart_detailed_product_line_customization'}
|
||||
{foreach from=$product.customizations item="customization"}
|
||||
{foreach from=$customization.fields item="field"}
|
||||
{assign var="dimension_text" value=" "|explode:$field.text}
|
||||
<div class="alert medium-alert alert-info" style="width: 100%;">
|
||||
<p style="float:left;">{$field.label} </p>
|
||||
<div class="value">
|
||||
{if $field.type == 'text'}
|
||||
{if (int)$field.id_module}
|
||||
{$field.text nofilter}
|
||||
{else}
|
||||
{$field.text}
|
||||
{/if}
|
||||
{elseif $field.type == 'image'}
|
||||
<img src="{$field.image.small.url}">
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{if isset($dimension_text)}
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var id_product = {$product.id_product|intval};
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
data: {
|
||||
id_product:id_product
|
||||
},
|
||||
url: "index.php?fc=module&module=squaremeter&controller=getdimensiondata",
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(data) {
|
||||
results = data;
|
||||
id_product=id_product;
|
||||
//console.table(results);
|
||||
},
|
||||
error: function (jqXHR, exception) {
|
||||
console.log(jqXHR);
|
||||
}
|
||||
});
|
||||
|
||||
if (typeof results !== 'undefined' && results.length > 0) {
|
||||
var displayquantity = results[0]['displayquantity'];
|
||||
|
||||
if ((results[0]) && (displayquantity == 'decimalok')) {
|
||||
if (results[0]['step_width'])
|
||||
stepvalue = results[0]['step_width'];
|
||||
else
|
||||
stepvalue = results[0]['step'];
|
||||
|
||||
if(!stepvalue)
|
||||
stepvalue = 1;
|
||||
|
||||
switch(results[0]['calculationtype']) {
|
||||
case "weight":
|
||||
if (results[0]['minweight'])
|
||||
minvalue = results[0]['minweight'];
|
||||
else
|
||||
minvalue = '';
|
||||
if (results[0]['maxweight'])
|
||||
maxvalue = results[0]['maxweight'];
|
||||
else
|
||||
maxvalue = '';
|
||||
break;
|
||||
default:
|
||||
if (results[0]['minwidth'])
|
||||
minvalue = results[0]['minwidth'];
|
||||
else
|
||||
minvalue = '';
|
||||
if (results[0]['maxwidth'])
|
||||
maxvalue = results[0]['maxwidth'];
|
||||
else
|
||||
maxvalue = '';
|
||||
break;
|
||||
}
|
||||
|
||||
$("[unique-product-id={$product.id_product|intval}-{$product.id_product_attribute|intval}-{$product.id_customization|intval}]").attr('min', parseFloat(minvalue));
|
||||
$("[unique-product-id={$product.id_product|intval}-{$product.id_product_attribute|intval}-{$product.id_customization|intval}]").attr('max', parseFloat(maxvalue));
|
||||
$("[unique-product-id={$product.id_product|intval}-{$product.id_product_attribute|intval}-{$product.id_customization|intval}]").attr('step', parseFloat(stepvalue));
|
||||
}
|
||||
}
|
||||
|
||||
if (displayquantity == "decimalok") {
|
||||
window["q" + "{$product.id_product|intval}-" + "{$product.id_product_attribute|intval}-" + "{$product.id_customization|intval}"] = $("[unique-product-id={$product.id_product|intval}-{$product.id_product_attribute|intval}-{$product.id_customization|intval}]").val();
|
||||
setInterval(function(){
|
||||
$("[unique-product-id={$product.id_product|intval}-{$product.id_product_attribute|intval}-{$product.id_customization|intval}]").val(parseFloat(window["q" + "{$product.id_product|intval}-" + "{$product.id_product_attribute|intval}-" + "{$product.id_customization|intval}"]).toFixed(4));
|
||||
}, 100);
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
@@ -0,0 +1,48 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{block name='cart_detailed_product'}
|
||||
<div class="cart-overview js-cart" data-refresh-url="{url entity='cart' params=['ajax' => true, 'action' => 'refresh']}">
|
||||
{if $cart.products}
|
||||
<ul class="cart-items">
|
||||
{foreach from=$cart.products item=product}
|
||||
<li class="cart-item">
|
||||
{block name='cart_detailed_product_line'}
|
||||
{*MEG Venture*}
|
||||
{if (Configuration::get('squaremeter_cartupdate') == 'on')}
|
||||
{include file='checkout/_partials/cart-detailed-product-line-override.tpl' product=$product}
|
||||
{else}
|
||||
{include file='checkout/_partials/cart-detailed-product-line.tpl' product=$product}
|
||||
{/if}
|
||||
{*MEG Venture*}
|
||||
{/block}
|
||||
</li>
|
||||
{if $product.customizations|count >1}<hr>{/if}
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<span class="no-items">{l s='There are no more items in your cart' d='Shop.Theme.Checkout'}</span>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
@@ -0,0 +1,53 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{block name='cart_summary_product_line'}
|
||||
<div class="media-left">
|
||||
<a href="{$product.url}" title="{$product.name}">
|
||||
<img class="media-object" src="{$product.cover.small.url}" alt="{$product.name}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<span class="product-name">{$product.name}</span>
|
||||
{* <span class="product-quantity">x{$product.quantity}</span> *}
|
||||
{* MEG Venture *}
|
||||
{if isset($dimension_data)}
|
||||
{foreach from=$dimension_data item="ddata"}
|
||||
{foreach from=$customization_added_to_cart item="cdata"}
|
||||
{if $cdata.0.id_customization == $product.id_customization}
|
||||
{if $ddata.0.displayquantity == 'decimalok'}
|
||||
{$dimension_text = $cdata.0.value}
|
||||
{$dimension_quantity = $cdata.0.total_dimension}
|
||||
{$dimension_unit = $cdata.0.unittype_module}
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<span class="product-quantity">x{if isset($dimension_text)}{$dimension_quantity|string_format:"%.2f"} {$dimension_unit|escape:'htmlall':'UTF-8'}{else}{$product.quantity}{/if}</span>
|
||||
{* MEG Venture *}
|
||||
<span class="product-price float-xs-right">{$product.price}</span>
|
||||
{hook h='displayProductPriceBlock' product=$product type="unit_price"}
|
||||
</div>
|
||||
{/block}
|
||||
@@ -0,0 +1,84 @@
|
||||
{**
|
||||
* 2007-2017 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2017 PrestaShop SA
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<section id="js-checkout-summary" class="card js-cart cart-summary" data-refresh-url="{$urls.pages.cart}?ajax=1&action=refresh">
|
||||
<div class="cart-detailed-totals">
|
||||
|
||||
<h4>{l s='Subtotal' d='Shop.Theme.Checkout'} - {$cart.summary_string}</h4>
|
||||
|
||||
{block name='cart_summary_products'}
|
||||
<div class="cart-summary-products">
|
||||
<p>
|
||||
<a href="#" data-toggle="collapse" class="collapsed noeffect" data-target="#cart-summary-product-list">
|
||||
{l s='Show details' d='Shop.Theme.Actions'}
|
||||
</a>
|
||||
</p>
|
||||
{block name='cart_summary_product_list'}
|
||||
<div class="collapse" id="cart-summary-product-list">
|
||||
<ul class="media-list">
|
||||
{foreach from=$cart.products item=product}
|
||||
{*MEG Venture*}
|
||||
{if (Configuration::get('squaremeter_cartupdate') == 'on')}
|
||||
<li class="media">{include file='checkout/_partials/cart-summary-product-line-override.tpl' product=$product}</li>
|
||||
{else}
|
||||
<li class="media">{include file='checkout/_partials/cart-summary-product-line.tpl' product=$product}</li>
|
||||
{/if}
|
||||
{*MEG Venture*}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<div class="card-block">
|
||||
{block name='hook_checkout_summary_top'}
|
||||
{hook h='displayCheckoutSummaryTop'}
|
||||
{/block}
|
||||
|
||||
{block name='cart_summary_subtotals'}
|
||||
{foreach from=$cart.subtotals item="subtotal"}
|
||||
{if $subtotal && $subtotal.type !== 'tax'}
|
||||
<div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-{$subtotal.type}">
|
||||
<span class="label">{$subtotal.label}</span>
|
||||
<span class="value">{$subtotal.value}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
|
||||
{block name='cart_summary_voucher'}
|
||||
{include file='checkout/_partials/cart-voucher.tpl'}
|
||||
{/block}
|
||||
|
||||
<hr class="separator">
|
||||
|
||||
{block name='cart_summary_totals'}
|
||||
{include file='checkout/_partials/cart-summary-totals.tpl' cart=$cart}
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This module is not a free module and all rights are reserved. It is prohibited to sell or redistribute this module for any purpose. Each license can be used only in one website. For multishop environment, a new license is required for each e-shop managed.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author MEG Venture <info@megventure.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This module is not a free module and all rights are reserved. It is prohibited to sell or redistribute this module for any purpose. Each license can be used only in one website. For multishop environment, a new license is required for each e-shop managed.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author MEG Venture <info@megventure.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This module is not a free module and all rights are reserved. It is prohibited to sell or redistribute this module for any purpose. Each license can be used only in one website. For multishop environment, a new license is required for each e-shop managed.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author MEG Venture <info@megventure.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
Reference in New Issue
Block a user