first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
@CHARSET "UTF-8";
#tax_incl_color, #tax_excl_color, #old_prices_color {
width: 120px;
float:left
}
.mColorPickerTrigger {
width:196px !important;
left:17px;
position:relative;
height:31px;
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,32 @@
@CHARSET "UTF-8";
.dualDisplayPro.productCatalog {
padding: 10px;
display: block;
}
.dualDisplayPro, .dualDisplayPro span {
display: block;
}
.priceWrapper, .labelWrapper {
display: inline !important;
}
#dualDisplayProWrapperModel, .productDetailDualDisplayProWrapper {
display: none;
}
.addToCartModal, .addToCartModal span {
display: inline;
margin-bottom: 0px !important;
}
.priceWithTax, .priceWithoutTax {
display: block !important;
}
.dualDisplayPro .lineThrough {
text-decoration: line-through;
}
.productCatalogDualPriceModel {
display:none !important;
}
.product_list .dualDisplayPro.moved, .product_list .dualDisplayPro.moved span {
display: block !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,28 @@
@CHARSET "UTF-8";
.dualDisplayPro.productCatalog {
padding: 10px;
background-color: white;
display: block;
}
.dualDisplayPro, .dualDisplayPro span {
display: block;
}
.priceWrapper, .labelWrapper {
display: inline !important;
}
#dualDisplayProWrapperModel, .productDetailDualDisplayProWrapper {
display: none;
}
.addToCartModal, .addToCartModal span {
display: inline;
margin-bottom: 0px !important;
}
.priceWithTax, .priceWithoutTax {
display: block !important;
}
.dualDisplayPro .lineThrough {
text-decoration: line-through;
}
.dualDisplayPro.productDetail {
font-weight: 700;
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,168 @@
/*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*/
$(document).ready(function() {
$('#tax_excl_color, #tax_incl_color, #old_prices_color').prop('readonly', true);
$('.taxInclColor, .taxExclColor, #old_prices_color').mColorPicker({
'imageFolder' : '../img/admin/'
});
$('#mColorPickerImg').css({
'background-image':"url('../img/admin/colorpicker.png')"
});
$('#mColorPickerImgGray').css({
'background-image':"url('../img/admin/graybar.jpg')"
});
$('#mColorPickerFooter').css({
'background-image':"url('../img/admin/grid.gif')",
});
$('#mColorPickerInput').css({
'color':'black',
});
displayOldPricesSection(parseInt($("input[name='show_old_prices']:checked").val()) == 1);
$("input[name='show_old_prices']").click(function() {
displayOldPricesSection(parseInt($("input[name='show_old_prices']:checked").val()) == 1);
});
displayAdvancedSettingsSection(parseInt($("input[name='show_advanced_settings']:checked").val()) == 1);
$("input[name='show_advanced_settings']").click(function() {
displayAdvancedSettingsSection(parseInt($("input[name='show_advanced_settings']:checked").val()) == 1);
});
$('form.dualpricedisplaypro').before(getElementsMenu());
wrapElements();
$('.nav-tabs a').click(function() {
selectedCategory = $(this).attr('data-category');
$('#opened_tab').val($(this).attr('data-category'));
$.each(getCategories(), function (index, value) {
if (value['class'] == selectedCategory) {
$('form.dualpricedisplaypro .panel-heading').html(value['title'] + ' Configuration');
}
});
});
});
function wrapElements() {
$.each(getAllElementsByCategories(), function (index, value) {
$(value['element']).parents(".form-group").last().addClass(value['category']);
});
$.each(getCategories(), function (index, value) {
$('.' + value['class']).wrapAll('<div id="' + value['class'] + '_parent" class="tab-pane fade in elementsParents' + ($('#opened_tab').val() == value['class'] ? ' active' : '') + '"></div>');
});
$('.elementsParents').wrapAll('<div class="tab-content"></div>');
}
function getElementsMenu() {
menu = '<ul class="nav nav-tabs">';
$.each(getCategories(), function (index, value) {
menu += '<li' + ($('#opened_tab').val() == value['class'] ? ' class="active"' : '') + '><a data-toggle="tab" href="#' + value['class'] + '_parent" data-category="' + value['class'] + '">' + value['title'] + '</a></li>';
});
menu += '</ul>';
return menu;
}
function getCategories() {
categories = [];
categories.push({'class' : 'places_of_display', 'title' : trans.placesOfDisplay});
categories.push({'class' : 'advanced_settings_of_display', 'title' : trans.advancedSettingsOfDisplay});
categories.push({'class' : 'standard_prices', 'title' : trans.standardPrices});
categories.push({'class' : 'old_prices', 'title' : trans.oldPrices});
categories.push({'class' : 'dom_elements_paths', 'title' : trans.domElementsPaths});
return categories;
}
function getAllElementsByCategories() {
elementsByCategories = [];
elementsByCategories.push({'element' : 'input[name="show_on_home_page"]:eq(0)', 'category' : 'places_of_display'});
elementsByCategories.push({'element' : 'input[name="show_in_product_detail"]:eq(0)', 'category' : 'places_of_display'});
elementsByCategories.push({'element' : 'input[name="show_in_categories"]:eq(0)', 'category' : 'places_of_display'});
elementsByCategories.push({'element' : 'input[name="show_in_add_to_cart_popup"]:eq(0)', 'category' : 'places_of_display'});
elementsByCategories.push({'element' : 'input[name="show_in_asociative_products"]:eq(0)', 'category' : 'places_of_display'});
elementsByCategories.push({'element' : '.customerGroups:eq(0)', 'category' : 'advanced_settings_of_display'});
elementsByCategories.push({'element' : '.languages:eq(0)', 'category' : 'advanced_settings_of_display'});
elementsByCategories.push({'element' : '.currencies:eq(0)', 'category' : 'advanced_settings_of_display'});
elementsByCategories.push({'element' : 'input[name="show_price_if"]:eq(0)', 'category' : 'advanced_settings_of_display'});
elementsByCategories.push({'element' : '.pricesToShow:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : 'input[name="tax_excl_first"]:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : '#size_ratio_between_prices:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : '.taxInclColor:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : '.taxExclColor:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : 'input[name="show_tax_incl_label"]:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : '.taxInclLabelName:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : 'input[name="show_tax_excl_label"]:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : '.taxExclLabelName:eq(0)', 'category' : 'standard_prices'});
elementsByCategories.push({'element' : 'input[name="show_old_prices"]:eq(0)', 'category' : 'old_prices'});
elementsByCategories.push({'element' : '.oldPricesToShow:eq(0)', 'category' : 'old_prices'});
elementsByCategories.push({'element' : 'input[name="old_price_tax_excl_first"]:eq(0)', 'category' : 'old_prices'});
elementsByCategories.push({'element' : 'input[name="old_price_before_standard_price"]:eq(0)', 'category' : 'old_prices'});
elementsByCategories.push({'element' : '#size_ratio_old_prices:eq(0)', 'category' : 'old_prices'});
elementsByCategories.push({'element' : '.oldPricesColor:eq(0)', 'category' : 'old_prices'});
elementsByCategories.push({'element' : 'input[name="show_line_through_old_prices"]:eq(0)', 'category' : 'old_prices'});
elementsByCategories.push({'element' : 'input[name="show_advanced_settings"]:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#miniature_root_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#detail_price_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#detail_quantity_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#detail_parent_path:eq(0)', 'category' : 'dom_elements_paths'});
if (isPs17) {
elementsByCategories.push({'element' : '#miniature_price_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#miniature_old_price_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#quickview_parent_path:eq(0)', 'category' : 'dom_elements_paths'});
} else {
elementsByCategories.push({'element' : '#catalog_price_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#side_product_miniature_parent_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#side_product_miniature_price_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#accessories_miniature_parent_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#accessories_miniature_price_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#compared_product_miniature_parent_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#compared_product_miniature_price_path:eq(0)', 'category' : 'dom_elements_paths'});
}
elementsByCategories.push({'element' : '#summary_popup_parent_path:eq(0)', 'category' : 'dom_elements_paths'});
elementsByCategories.push({'element' : '#summary_popup_product_path:eq(0)', 'category' : 'dom_elements_paths'});
return elementsByCategories;
}
function displayOldPricesSection(isDisplay) {
displayField(".oldPricesToShow:eq(0)", isDisplay);
displayField("#old_prices_color:eq(0)", isDisplay);
displayField("input[name='show_line_through_old_prices']:eq(0)", isDisplay);
displayField("input[name='old_price_tax_excl_first']:eq(0)", isDisplay);
displayField("#size_ratio_old_prices:eq(0)", isDisplay);
displayField("input[name='old_price_before_standard_price']:eq(0)", isDisplay);
}
function displayAdvancedSettingsSection(isDisplay) {
displayField("#miniature_root_path:eq(0)", isDisplay);
displayField("#miniature_price_path:eq(0)", isDisplay);
displayField("#miniature_old_price_path:eq(0)", isDisplay);
displayField("#detail_price_path:eq(0)", isDisplay);
displayField("#detail_quantity_path:eq(0)", isDisplay);
displayField("#detail_parent_path:eq(0)", isDisplay);
if (isPs17) {
displayField("#miniature_price_path:eq(0)", isDisplay);
displayField("#miniature_old_price_path:eq(0)", isDisplay);
displayField("#quickview_parent_path:eq(0)", isDisplay);
} else {
displayField("#catalog_price_path:eq(0)", isDisplay);
displayField("#side_product_miniature_parent_path:eq(0)", isDisplay);
displayField("#side_product_miniature_price_path:eq(0)", isDisplay);
displayField("#accessories_miniature_parent_path:eq(0)", isDisplay);
displayField("#accessories_miniature_price_path:eq(0)", isDisplay);
displayField("#compared_product_miniature_parent_path:eq(0)", isDisplay);
displayField("#compared_product_miniature_price_path:eq(0)", isDisplay);
}
displayField("#summary_popup_parent_path:eq(0)", isDisplay);
displayField("#summary_popup_product_path:eq(0)", isDisplay);
}
function displayField(identification, isDisplay) {
if (isDisplay) {
$(identification).parents(".form-group").show();
} else {
$(identification).parents(".form-group").hide();
}
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,323 @@
/*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*/
//v detaile produktu - pri nacitani produktu, pri zmene atributu produktu alebo pocte produktov
var selectedCombination = 0;
if (typeof updatePrice !== 'undefined') {
var updatePriceOrig = updatePrice;
updatePrice = function () {
updatePriceOrig();
if (parseInt(dualPriceConfigData.show_in_product_detail) == 1 && (selectedCombination != parseInt($('#idCombination').val()))) {
selectedCombination = parseInt($('#idCombination').val());
quantity = parseInt($(getCorrectPathFromConfiguration('detail_quantity_path')).val());
if (parseInt(quantity) == 0 || isNaN(quantity) || typeof quantity === 'undefined') {
quantity = 1;
}
moveFreshPrices(productID, false);
getProductCombinationPrices(productID, selectedCombination, quantity, false);
}
};
}
//zabezpeci aby po prepnuti na listove zobrazenie katalogu, bola volba kombinacii pod cenou na pravo
if (typeof window.display !== 'undefined') {
var displayOrig = window.display;
window.display = function(view) {
displayOrig(view);
moveFreshPricesInCatalog();
}
}
//pretazenie funkcie updateProductUrl() ktora sa vola po manipulovani s filtrom
//vnutry sa zavola original funkcia updateProductUrl() a za nou sa vykona vykreslenie cien
if (typeof updateProductUrl !== 'undefined') {
var origUpdateProductUrl = updateProductUrl;
updateProductUrl = function(str) {
origUpdateProductUrl(str);
moveFreshPricesInCatalog();
}
}
//pretazenie funkcie ajaxCart.updateLayer() ktora sa vola po vyskoceni popupu po pridani produktu do kosika
//po jej zbehnuti sa zavolaju moje funkcie na vykrelesnie cien
if (typeof ajaxCart !== 'undefined' && ajaxCart.updateLayer !== 'undefined') {
var updateLayerOrig = ajaxCart.updateLayer;
ajaxCart.updateLayer = function(product) {
updateLayerOrig(product);
if (parseInt(dualPriceConfigData.show_in_add_to_cart_popup) == 1) {
var counter = 20;
var checkIfElementExistRepeatedly = setInterval(function() {
counter--;
if (counter === 0 || $(getCorrectPathFromConfiguration('summary_popup_parent_path')).length > 0) {
getProductCombinationPrices(product.id, product.idCombination, product.quantity, true);
clearInterval(checkIfElementExistRepeatedly);
}
}, 200);
}
}
}
$(document).ready(function() {
moveFreshPricesInCatalog();
moveFreshPricesInMinithumbs();
showAllPrices();
if (parseInt(dualPriceConfigData.show_in_product_detail) == 1) {
$(document).on('change', getCorrectPathFromConfiguration('detail_quantity_path'), function() {
quantity = parseInt($(this).val());
if (parseInt(quantity) != 0 && !isNaN(quantity) && typeof quantity !== 'undefined') {
getProductCombinationPrices(productID, parseInt($('#idCombination').val()), quantity, false);
}
});
$(document).on('click', '.product_quantity_down, .product_quantity_up', function() {
quantity = parseInt($(getCorrectPathFromConfiguration('detail_quantity_path')).val());
if (parseInt(quantity) != 0 && !isNaN(quantity) && typeof quantity !== 'undefined') {
getProductCombinationPrices(productID, parseInt($('#idCombination').val()), quantity, false);
}
});
}
});
function moveFreshPricesInCatalog() {
$('.productCatalogDualPriceModel.catalog').each(function() {
freshPricesModel = $(this);
$(this).parents(getCorrectPathFromConfiguration('miniature_root_path') + ':eq(0)').find(getCorrectPathFromConfiguration('catalog_price_path')).each(function() {
$(this).empty();
freshPricesModelForProduct = freshPricesModel.clone();
freshPricesModelForProduct.removeClass('productCatalogDualPriceModel');
freshPricesModelForProduct.addClass('moved');
freshPricesModelForProduct.clone().appendTo($(this));
$(this).css('visibility', 'visible');
});
});
setPriceSizeRatio('Catalog');
}
function moveFreshPricesInMinithumbs() {
findSomeAccessories = false;
$('.productCatalogDualPriceModel.minithumbs').each(function() {
freshPricesModel = $(this);
findPathInSideProducts = false;
findPathInAccessories = false;
findPathInCompare = false;
if (freshPricesModel.parents(getCorrectPathFromConfiguration('side_product_miniature_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('side_product_miniature_price_path')).length > 0) {
findPathInSideProducts = true;
parentElement = freshPricesModel.parents(getCorrectPathFromConfiguration('side_product_miniature_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('side_product_miniature_price_path')).parents(getCorrectPathFromConfiguration('side_product_miniature_parent_path') + ':eq(0)');
priceElement = parentElement.find(getCorrectPathFromConfiguration('side_product_miniature_price_path'));
} else if ($(this).parents(getCorrectPathFromConfiguration('accessories_miniature_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('accessories_miniature_price_path')).length > 0) {
findPathInAccessories = true;
findSomeAccessories = true;
parentElement = freshPricesModel.parents(getCorrectPathFromConfiguration('accessories_miniature_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('accessories_miniature_price_path')).parents(getCorrectPathFromConfiguration('accessories_miniature_parent_path') + ':eq(0)');
priceElement = parentElement.find(getCorrectPathFromConfiguration('accessories_miniature_price_path'));
} else if ($(this).parents(getCorrectPathFromConfiguration('compared_product_miniature_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('compared_product_miniature_price_path')).length > 0) {
findPathInCompare = true;
parentElement = freshPricesModel.parents(getCorrectPathFromConfiguration('compared_product_miniature_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('compared_product_miniature_price_path')).parents(getCorrectPathFromConfiguration('compared_product_miniature_parent_path') + ':eq(0)');
priceElement = parentElement.find(getCorrectPathFromConfiguration('compared_product_miniature_price_path'));
}
if (findPathInAccessories || findPathInSideProducts || findPathInCompare) {
freshPrices = freshPricesModel.clone();
freshPrices.appendTo(parentElement);
priceElement.empty();
freshPrices.appendTo(priceElement);
parentElement.find('.dualDisplayPro').removeClass('productCatalogDualPriceModel');
if (!findPathInCompare) {
parentElement.find('.dualDisplayPro').removeClass('product-price');
parentElement.find('.dualDisplayPro').removeClass('price');
}
priceElement.show();
}
});
if (findSomeAccessories) {
// pri accessories je po pridani cien schovany add to cart. Preto treba trosku zvacsit height.
if ($('.bx-viewport').length > 0) {
$('.bx-viewport').height(function (index, height) {
return (height + 100);
});
}
}
setPriceSizeRatio('Catalog');
}
function showAllPrices() {
$(dualPriceConfigData.miniature_root_path + ' ' + dualPriceConfigData.catalog_price_path).css('visibility', 'visible');
$(dualPriceConfigData.side_product_miniature_parent_path + ' ' + dualPriceConfigData.side_product_miniature_price_path).show();
$(dualPriceConfigData.accessories_miniature_parent_path + ' ' + dualPriceConfigData.accessories_miniature_price_path).show();
$(dualPriceConfigData.compared_product_miniature_parent_path + ' ' + dualPriceConfigData.compared_product_miniature_price_path).show();
}
function setPriceSizeRatio(type) {
$('.dualDisplayPro.product' + type).each(function() {
fontSizeOfFirstPrice = parseInt($(this).find('.priceDisplay').children('span:eq(0)').css('font-size'));
if ($(this).find('.priceDisplay').children('span:eq(1)').length > 0) {
$(this).find('.priceDisplay').children('span:eq(1)').css('font-size', (fontSizeOfFirstPrice/getSizeRatioFromConfig('standard')) + 'px');
}
if ($(this).find('.originalPriceDisplay').length > 0) {
$(this).find('.originalPriceDisplay').css('font-size', (fontSizeOfFirstPrice/getSizeRatioFromConfig('old')) + 'px');
}
});
}
function getSizeRatioFromConfig(priceType) {
if (priceType == 'standard') {
configSizeRation = dualPriceConfigData.size_ratio_between_prices;
} else {
configSizeRation = dualPriceConfigData.size_ratio_old_prices;
}
sizeRatio = 1.5;
if (parseInt(configSizeRation) == 1) {
sizeRatio = 1;
} else if (parseInt(configSizeRation) == 2) {
sizeRatio = 1.5;
} else if (parseInt(configSizeRation) == 3) {
sizeRatio = 1.666;
} else {
sizeRatio = 1.75;
}
return sizeRatio;
}
function getProductCombinationPrices(productID, productAttributeID, quantity, isAddToCartPopup) {
$.ajax({
type: "POST",
url: productCombinationsControllerLink,
async: false,
data : {
ajax: true,
action: 'getProductCombinationPrice',
productID : productID,
productAttributeID : productAttributeID,
quantity: quantity
},
dataType: 'json',
beforeSend: function() {
if (!isAddToCartPopup) {
displayProgresWheel(true, productID);
} else {
displayProgresWheelInAddToCartModal(true);
}
},
success: function(res) {
if (!isAddToCartPopup) {
displayProductDetailPrice(res.productID, res.productPriceInDetail);
} else {
displayProductPriceInAddToCartModal(res.productID, res.productPriceInDetail);
}
}
})
.always(function (dataOrjqXHR, textStatus, jqXHRorErrorThrown) {
if (!isAddToCartPopup) {
displayProgresWheel(false, productID);
} else {
displayProgresWheelInAddToCartModal(false);
}
});
}
function displayProductDetailPrice(productID, combinationPrices) {
$('.productDetailDualDisplayProWrapper[data-id="' + productID + '"].moved').each(function() {
freshPrices = $(this).html();
productPricesElement = $(this).parents(getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('detail_price_path'));
productPricesElement.empty();
productPricesElement.append(freshPrices);
if (combinationPrices != null) {
if (typeof combinationPrices.taxInclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .priceWithTax .priceWrapper').html(combinationPrices.taxInclPrice);
}
if (typeof combinationPrices.taxExclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .priceWithoutTax .priceWrapper').html(combinationPrices.taxExclPrice);
}
if (combinationPrices.hasDiscount) {
if (typeof combinationPrices.originalTaxInclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .originalPriceWithTax .priceWrapper').html(combinationPrices.originalTaxInclPrice);
}
if (typeof combinationPrices.originalTaxExclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .originalPriceWithoutTax .priceWrapper').html(combinationPrices.originalTaxExclPrice);
}
}
}
productPricesElement.show();
setPriceSizeRatio('Detail');
});
}
function displayProductPriceInAddToCartModal(productID, combinationPrices) {
freshPricesModelElement = $('#dualDisplayProWrapperModel');
productPricesElement = freshPricesModelElement.find('.dualDisplayPro').clone();
productPricesElement.addClass('addToCartModal');
productPricesElement.find('.originalPriceDisplay').remove();
appentToElement = $(getCorrectPathFromConfiguration('summary_popup_product_path'));
appentToElement.empty();
productPricesElement.appendTo(appentToElement);
if (combinationPrices != null) {
if (typeof combinationPrices.taxInclPrice !== 'undefined') {
productPricesElement.find('.priceWithTax .priceWrapper').html(combinationPrices.taxInclPrice);
}
if (typeof combinationPrices.taxExclPrice !== 'undefined') {
productPricesElement.find('.priceWithoutTax .priceWrapper').html(combinationPrices.taxExclPrice);
}
}
setPriceSizeRatio('InModal');
}
function moveFreshPrices(productID, isModal) {
if (isModal) {
$('.productDetailDualDisplayProWrapper[data-id="' + productID + '"][data-type="modal"].moved').remove();
}
originalPriceWrapper = $('.productDetailDualDisplayProWrapper[data-id="' + productID + '"][data-type="' + (isModal ? 'modal' : 'classic') + '"]:not(.moved)');
appendToElement = $('.productDetailDualDisplayProWrapper[data-id="' + productID + '"][data-type="' + (isModal ? 'modal' : 'classic') + '"]:not(.moved)').parents(getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)');
clonedElement = originalPriceWrapper.clone();
clonedElement.appendTo(appendToElement);
clonedElement.addClass('moved');
originalPriceWrapper.remove();
}
function displayProgresWheel(display, productID) {
$('.productDetailDualDisplayProWrapper[data-id="' + productID + '"].moved').each(function() {
productPricesElement = $(this).parents(getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('detail_price_path'));
if (display) {
productPricesElement.after(getLoadingSpinnerElement());
productPricesElement.siblings('.loadingSpinner').css({
'text-align': 'center',
'padding' : '10px'
});
productPricesElement.hide();
} else {
productPricesElement.show();
productPricesElement.siblings('.loadingSpinner').remove();
}
});
}
function displayProgresWheelInAddToCartModal(display) {
appentToElement = $(getCorrectPathFromConfiguration('summary_popup_product_path'));
if (display) {
appentToElement.empty();
appentToElement.append(getLoadingSpinnerElement());
appentToElement.show();
} else {
appentToElement.find('.loadingSpinner').remove();
}
}
function getCorrectPathFromConfiguration(name) {
correctValue = '.product-miniature';
if (dualPriceConfigData[name].length > 0) {
correctValue = dualPriceConfigData[name];
} else {
$(domElementPaths).each(function(key, value){
if (value['name'] == name) {
correctValue = value['init_value'];
}
});
}
return correctValue;
}
function getLoadingSpinnerElement() {
return "<div class='loadingSpinner'><img src='" + baseDir + "modules/dualpricedisplaypro/views/img/spinner.gif' alt='loading spinner' style='height: 40px;' /></div>";
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,259 @@
/*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*/
$(document).ready(function() {
resizePriceSection();
setPriceSizeRatio('Catalog');
removeOriginalPrices();
prestashop.on('updateProductList', function (resp) {
resizePriceSection();
setPriceSizeRatio('Catalog');
removeOriginalPrices();
});
prestashop.on('updatedProduct', function (resp) {
if (parseInt(dualPriceConfigData.show_in_product_detail) == 1) {
quantity = 1;
if (typeof getProductParentObject(resp.id_product) !== 'undefined') {
quantity = parseInt(getProductParentObject(resp.id_product).find(getCorrectPathFromConfiguration('detail_quantity_path')).val());
if (parseInt(quantity) == 0 || isNaN(quantity) || typeof quantity === 'undefined') {
quantity = 1;
}
}
getProductCombinationPrices(resp.id_product, resp.id_product_attribute, quantity, false, null);
}
});
if (ltPs1740) {
$(document).on('change', getCorrectPathFromConfiguration('detail_quantity_path'), function() {
if ($(this).parents(getCorrectPathFromConfiguration('quickview_parent_path') + ':eq(0)').length > 0) {
quantity = parseInt($(this).val());
if (parseInt(quantity) != 0 && !isNaN(quantity) && typeof quantity !== 'undefined') {
getProductCombinationPrices(0, 0, 0, false, $(this).parents('form:eq(0)').serialize());
}
}
});
}
prestashop.on('updateCart', function (event) {
if (event.reason.linkAction == 'add-to-cart' && parseInt(dualPriceConfigData.show_in_add_to_cart_popup) == 1) {
var counter = 20;
var checkIfElementExistRepeatedly = setInterval(function() {
counter--;
if (counter === 0 || $(getCorrectPathFromConfiguration('summary_popup_parent_path')).length > 0) {
if (typeof event.resp !== 'undefined') {
quantity = event.resp.quantity;
} else {
quantity = 1;
if (typeof getProductParentObject(event.reason.idProduct) !== 'undefined') {
quantity = parseInt(getProductParentObject(event.reason.idProduct).find(getCorrectPathFromConfiguration('detail_quantity_path')).val());
}
}
if (parseInt(quantity) == 0 || isNaN(quantity) || typeof quantity === 'undefined') {
quantity = 1;
}
getProductCombinationPrices(event.reason.idProduct, event.reason.idProductAttribute, quantity, true, null);
clearInterval(checkIfElementExistRepeatedly);
}
}, 200);
}
});
});
function resizePriceSection() {
$('.dualDisplayPro').each(function() {
$(this).parents(getCorrectPathFromConfiguration('miniature_root_path') + ':eq(0)').css('margin-bottom', ($(this).height() + 50) + 'px');
});
}
function setPriceSizeRatio(type) {
$('.dualDisplayPro.product' + type).each(function() {
fontSizeOfFirstPrice = parseInt($(this).find('.priceDisplay').children('span:eq(0)').css('font-size'));
if ($(this).find('.priceDisplay').children('span:eq(1)').length > 0) {
$(this).find('.priceDisplay').children('span:eq(1)').css('font-size', (fontSizeOfFirstPrice/getSizeRatioFromConfig('standard')) + 'px');
}
if ($(this).find('.originalPriceDisplay').length > 0) {
$(this).find('.originalPriceDisplay').css('font-size', (fontSizeOfFirstPrice/getSizeRatioFromConfig('old')) + 'px');
}
});
}
function removeOriginalPrices() {
$('.dualDisplayPro').each(function() {
$(this).parents(getCorrectPathFromConfiguration('miniature_root_path') + ':eq(0)').find(getCorrectPathFromConfiguration('miniature_old_price_path')).remove();
$(this).parents(getCorrectPathFromConfiguration('miniature_root_path') + ':eq(0)').find(getCorrectPathFromConfiguration('miniature_price_path')).remove();
});
}
function getSizeRatioFromConfig(priceType) {
if (priceType == 'standard') {
configSizeRation = dualPriceConfigData.size_ratio_between_prices;
} else {
configSizeRation = dualPriceConfigData.size_ratio_old_prices;
}
sizeRatio = 1.5;
if (parseInt(configSizeRation) == 1) {
sizeRatio = 1;
} else if (parseInt(configSizeRation) == 2) {
sizeRatio = 1.5;
} else if (parseInt(configSizeRation) == 3) {
sizeRatio = 1.666;
} else {
sizeRatio = 1.75;
}
return sizeRatio;
}
function getProductCombinationPrices(productID, productAttributeID, quantity, isAddToCartPopup, formParams) {
if (formParams != null) {
data = formParams + '&ajax=1&action=getProductCombinationPrice';
} else {
data = {
ajax: true,
action: 'getProductCombinationPrice',
productID : productID,
productAttributeID : productAttributeID,
quantity: quantity
}
}
$.ajax({
type: "POST",
url: productCombinationsControllerLink,
async: false,
data : data,
dataType: 'json',
beforeSend: function() {
if (!isAddToCartPopup) {
displayProgresWheel(true, productID);
} else {
displayProgresWheelInAddToCartModal(true);
}
},
success: function(res) {
if (!isAddToCartPopup) {
displayProductDetailPrice(res.productID, res.productPriceInDetail);
} else {
displayProductPriceInAddToCartModal(res.productID, res.productPriceInDetail);
}
}
})
.always(function (dataOrjqXHR, textStatus, jqXHRorErrorThrown) {
if (!isAddToCartPopup) {
displayProgresWheel(false, productID);
} else {
displayProgresWheelInAddToCartModal(false);
}
});
}
function displayProductDetailPrice(productID, combinationPrices) {
$('.productDetailDualDisplayProWrapper[data-id="' + productID + '"].moved').each(function() {
freshPrices = $(this).html();
productPricesElement = $(this).parents(($(this).attr('data-type') == 'classic') ? getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)' : getCorrectPathFromConfiguration('quickview_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('detail_price_path'));
productPricesElement.empty();
productPricesElement.append(freshPrices);
if (combinationPrices != null) {
if (typeof combinationPrices.taxInclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .priceWithTax .priceWrapper').html(combinationPrices.taxInclPrice);
}
if (typeof combinationPrices.taxExclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .priceWithoutTax .priceWrapper').html(combinationPrices.taxExclPrice);
}
if (combinationPrices.hasDiscount) {
if (typeof combinationPrices.originalTaxInclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .originalPriceWithTax .priceWrapper').html(combinationPrices.originalTaxInclPrice);
}
if (typeof combinationPrices.originalTaxExclPrice !== 'undefined') {
productPricesElement.find('.dualDisplayPro .originalPriceWithoutTax .priceWrapper').html(combinationPrices.originalTaxExclPrice);
}
}
}
productPricesElement.show();
setPriceSizeRatio('Detail');
});
}
function displayProductPriceInAddToCartModal(productID, combinationPrices) {
freshPricesModelElement = $('#dualDisplayProWrapperModel');
productPricesElement = freshPricesModelElement.find('.dualDisplayPro').clone();
productPricesElement.addClass('addToCartModal');
productPricesElement.find('.originalPriceDisplay').remove();
appentToElement = $(getCorrectPathFromConfiguration('summary_popup_product_path'));
appentToElement.empty();
productPricesElement.appendTo(appentToElement);
if (combinationPrices != null) {
if (typeof combinationPrices.taxInclPrice !== 'undefined') {
productPricesElement.find('.priceWithTax .priceWrapper').html(combinationPrices.taxInclPrice);
}
if (typeof combinationPrices.taxExclPrice !== 'undefined') {
productPricesElement.find('.priceWithoutTax .priceWrapper').html(combinationPrices.taxExclPrice);
}
}
setPriceSizeRatio('InModal');
}
function moveFreshPrices(productID, isModal) {
if (isModal) {
$('.productDetailDualDisplayProWrapper[data-id="' + productID + '"][data-type="modal"].moved').remove();
}
originalPriceWrapper = $('.productDetailDualDisplayProWrapper[data-id="' + productID + '"][data-type="' + (isModal ? 'modal' : 'classic') + '"]:not(.moved)');
appendToElement = $('.productDetailDualDisplayProWrapper[data-id="' + productID + '"][data-type="' + (isModal ? 'modal' : 'classic') + '"]:not(.moved)').parents((isModal ? getCorrectPathFromConfiguration('quickview_parent_path') + ':eq(0)' : getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)'));
clonedElement = originalPriceWrapper.clone();
clonedElement.appendTo(appendToElement);
clonedElement.addClass('moved');
originalPriceWrapper.remove();
}
function getProductParentObject(productID) {
freshPricesElement = $('.productDetailDualDisplayProWrapper[data-id="' + productID + '"].moved:eq(0)');
freshPricesElement.parents((freshPricesElement.attr('data-type') == 'classic') ? getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)' : getCorrectPathFromConfiguration('quickview_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('detail_price_path'));
if (freshPricesElement.parents(getCorrectPathFromConfiguration('quickview_parent_path') + ':eq(0)').length == 1) {
return freshPricesElement.parents(getCorrectPathFromConfiguration('quickview_parent_path') + ':eq(0)');
}
if (freshPricesElement.parents(getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)').length == 1) {
return freshPricesElement.parents(getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)');
}
}
function displayProgresWheel(display, productID) {
$('.productDetailDualDisplayProWrapper[data-id="' + productID + '"].moved').each(function() {
productPricesElement = $(this).parents(($(this).attr('data-type') == 'classic') ? getCorrectPathFromConfiguration('detail_parent_path') + ':eq(0)' : getCorrectPathFromConfiguration('quickview_parent_path') + ':eq(0)').find(getCorrectPathFromConfiguration('detail_price_path'));
if (display) {
productPricesElement.after(getLoadingSpinnerElement());
} else {
productPricesElement.siblings('.loadingSpinner').remove();
}
});
}
function displayProgresWheelInAddToCartModal(display) {
if (display) {
appentToElement = $(getCorrectPathFromConfiguration('summary_popup_product_path'));
appentToElement.empty();
appentToElement.append(getLoadingSpinnerElement());
} else {
appentToElement.find('.loadingSpinner').remove();
}
}
function getCorrectPathFromConfiguration(name) {
correctValue = '.product-miniature';
if (dualPriceConfigData[name].length > 0) {
correctValue = dualPriceConfigData[name];
} else {
$(domElementPaths).each(function(key, value){
if (value['name'] == name) {
correctValue = value['init_value'];
}
});
}
return correctValue;
}
function getLoadingSpinnerElement() {
return "<span class='loadingSpinner'><img src='" + baseDir + "modules/dualpricedisplaypro/views/img/spinner.gif' alt='loading spinner' style='height: 40px;' /></span>";
}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,11 @@
/*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*/
$(document).ready(function() {
moveFreshPrices(productID, false);
displayProductDetailPrice(productID, null);
});

View File

@@ -0,0 +1,15 @@
{*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*}
<script type="text/javascript">
//<![CDATA[
var trans = JSON.parse('{$translate|escape:"javascript":"UTF-8"}');
var isPs17 = Boolean('{$isPs17|escape:"javascript":"UTF-8"}');
//]]>
</script>
<link rel='stylesheet' type='text/css' href='{$moduleDir|escape:"javascript":"UTF-8"}dualpricedisplaypro/views/css/admin.css' />
<script type="text/javascript" src='{$moduleDir|escape:"javascript":"UTF-8"}dualpricedisplaypro/views/js/admin.js'></script>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,80 @@
{*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*}
<style>
{$dualPriceConfigData['miniature_root_path']} {$dualPriceConfigData['catalog_price_path']} {
visibility: hidden;
padding: 0 !important;
}
{$dualPriceConfigData['side_product_miniature_parent_path']} {$dualPriceConfigData['side_product_miniature_price_path']} {
display:none;
}
{$dualPriceConfigData['accessories_miniature_parent_path']} {$dualPriceConfigData['accessories_miniature_price_path']} {
display:none;
}
{$dualPriceConfigData['compared_product_miniature_parent_path']} {$dualPriceConfigData['compared_product_miniature_price_path']} {
display:none;
}
</style>
<span class="dualDisplayPro productCatalog productCatalogDualPriceModel price product-price {$type|escape:"javascript":"UTF-8"}">
{if $hasDiscount && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 1}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{/if}
</span>
{/if}
<span class="priceDisplay">
{if $dualPriceConfigData['tax_excl_first'] == 0}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price">{$priceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax">{$priceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{else}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax">{$priceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price">{$priceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{/if}
</span>
{if $hasDiscount && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 0}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{/if}
</span>
{/if}
</span>

View File

@@ -0,0 +1,45 @@
{*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*}
{if $dualPriceConfigData['show_in_add_to_cart_popup'] == 1}
<style>
{$dualPriceConfigData['summary_popup_parent_path']|escape:"javascript":"UTF-8"} {$dualPriceConfigData['summary_popup_product_path']|escape:"javascript":"UTF-8"} {
display:none;
}
</style>
{/if}
<script type="text/javascript">
//<![CDATA[
var dualPriceConfigData = JSON.parse('{$dualPriceConfigDataJson|escape:"javascript":"UTF-8" nofilter}');
var domElementPaths = JSON.parse('{$domElementPaths|escape:"javascript":"UTF-8" nofilter}');
var productCombinationsControllerLink = '{$productCombinationsControllerLink|escape:"javascript":"UTF-8" nofilter}';
var baseDir = '{$base_dir|escape:"javascript":"UTF-8"}';
//]]>
</script>
{* model pre zobrazenie ceny v modal po pridani do kosika *}
<div id="dualDisplayProWrapperModel">
<span class="dualDisplayPro productInModal">
<span class="priceDisplay">
{if $dualPriceConfigData['tax_excl_first'] == 0}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
<span>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,78 @@
{*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*}
<style>
{$dualPriceConfigData['detail_parent_path']|escape:"javascript":"UTF-8"} {$dualPriceConfigData['detail_price_path']|escape:"javascript":"UTF-8"} {
display:none;
}
</style>
<script type="text/javascript">
//<![CDATA[
var productID = '{$productID|escape:"javascript":"UTF-8"}';
//]]>
</script>
<div class="productDetailDualDisplayProWrapper" data-id="{$productID|escape:"javascript":"UTF-8"}" data-type="{if $isModal}modal{else}classic{/if}">
<span class="dualDisplayPro productDetail our_price_display">
{if $productPriceInDetail['hasDiscount'] && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 1}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
{/if}
<span class="priceDisplay">
{if $dualPriceConfigData['tax_excl_first'] == 0}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price"><span class="priceWrapper">{$productPriceInDetail['taxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper">{$productPriceInDetail['taxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper">{$productPriceInDetail['taxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price"><span class="priceWrapper">{$productPriceInDetail['taxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
{if $productPriceInDetail['hasDiscount'] && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 0}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
{/if}
</span>
</div>

View File

@@ -0,0 +1,64 @@
{*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*}
<span class="dualDisplayPro productCatalog">
{if $hasDiscount && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 1}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{/if}
</span>
{/if}
<span class="priceDisplay">
{if $dualPriceConfigData['tax_excl_first'] == 0}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price">{$priceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax">{$priceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{else}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax">{$priceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price">{$priceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{/if}
</span>
{if $hasDiscount && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 0}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithoutTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}">{$originalPriceWithTax|escape:"javascript":"UTF-8"}{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span>
{/if}
{/if}
</span>
{/if}
</span>

View File

@@ -0,0 +1,39 @@
{*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*}
<script type="text/javascript">
//<![CDATA[
var dualPriceConfigData = JSON.parse('{$dualPriceConfigDataJson|escape:"javascript":"UTF-8" nofilter}');
var domElementPaths = JSON.parse('{$domElementPaths|escape:"javascript":"UTF-8" nofilter}');
var productCombinationsControllerLink = '{$productCombinationsControllerLink|escape:"javascript":"UTF-8" nofilter}';
var baseDir = '{$urls.base_url|escape:"javascript":"UTF-8"}';
var ltPs1740 = Boolean('{$ltPs1740|escape:"javascript":"UTF-8"}');
//]]>
</script>
{* model pre zobrazenie ceny v modal po pridani do kosika *}
<div id="dualDisplayProWrapperModel">
<span class="dualDisplayPro productInModal">
<span class="priceDisplay">
{if $dualPriceConfigData['tax_excl_first'] == 0}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax"><span class="priceWrapper"></span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
<span>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;

View File

@@ -0,0 +1,92 @@
s{*
* 2018 Singleton software
*
* @author Singleton software <info@singleton-software.com>
* @copyright 2018 Singleton software
*}
<style>
{$dualPriceConfigData['detail_price_path']|escape:"javascript":"UTF-8"} {
display:none;
}
</style>
<script type="text/javascript">
//<![CDATA[
var productID = '{$productID|escape:"javascript":"UTF-8"}';
//]]>
</script>
<div class="productDetailDualDisplayProWrapper" data-id="{$productID|escape:"javascript":"UTF-8"}" data-type="{if $isModal}modal{else}classic{/if}">
<span class="dualDisplayPro productDetail">
{if $productPriceInDetail['hasDiscount'] && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 1}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
{/if}
<span class="priceDisplay">
{if $dualPriceConfigData['tax_excl_first'] == 0}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price"><span class="priceWrapper">{$productPriceInDetail['taxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper">{$productPriceInDetail['taxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['tax_excl_color']|escape:"javascript":"UTF-8"}" class="priceWithoutTax"><span class="priceWrapper">{$productPriceInDetail['taxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['tax_incl_color']|escape:"javascript":"UTF-8"}" class="priceWithTax" itemprop="price"><span class="priceWrapper">{$productPriceInDetail['taxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
{if $productPriceInDetail['hasDiscount'] && $dualPriceConfigData['show_old_prices'] == 1 && $dualPriceConfigData['old_price_before_standard_price'] == 0}
<span class="originalPriceDisplay">
{if $dualPriceConfigData['old_price_tax_excl_first'] == 0}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{else}
{if $dualPriceConfigData['old_prices_to_show'] != 1}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithoutTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxExclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_excl_label'] == 1} {$dualPriceConfigData['tax_excl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{if $dualPriceConfigData['old_prices_to_show'] != 2}
<span style="color: {$dualPriceConfigData['old_prices_color']|escape:"javascript":"UTF-8"}" class="originalPriceWithTax{if $dualPriceConfigData['show_line_through_old_prices'] == 1} lineThrough{/if}"><span class="priceWrapper">{$productPriceInDetail['originalTaxInclPrice']}</span> <span class="labelWrapper">{if $dualPriceConfigData['show_tax_incl_label'] == 1} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}{/if}</span></span>
{/if}
{/if}
</span>
{/if}
{if ( $productPriceInDetail['price'] ) }
<span class="detal-price">
{if $language.iso_code == 'pl'}Cena detaliczna{else}The retail price{/if}: {$productPriceInDetail['price']} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}
</span>
{/if}
</span>
</div>
{if $isModal}
<script type="text/javascript">
//<![CDATA[
moveFreshPrices(productID, true);
displayProductDetailPrice(productID, null);
//]]>
</script>
{/if}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (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:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 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;