first commit
This commit is contained in:
688
modules/squaremeter/views/templates/admin/admintab.tpl
Normal file
688
modules/squaremeter/views/templates/admin/admintab.tpl
Normal file
@@ -0,0 +1,688 @@
|
||||
{*
|
||||
* Module Name: Perimeter / Length / Surface (Area) / Volume / Weight Calculator for Prestashop
|
||||
* Module URI: Please contact with info@megventure.com
|
||||
* Description: A utility to calculate quantity in perimeter, length, area, volume or weight units
|
||||
* Version: 5.5.1
|
||||
* Author: MEG Venture
|
||||
*
|
||||
* Copyright 2013, MEG Venture (info@megventure.com)
|
||||
*
|
||||
* This program is not a free software: you can't redistribute it and/or modify
|
||||
* it. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This copyright notice and licence should be retained in all modules based on this framework.
|
||||
* This does not affect your rights to assert copyright over your own original work.
|
||||
*}
|
||||
|
||||
<!-- Square Meter Calculation Module -->
|
||||
{if $psversion == ''}
|
||||
{assign var='psversion' value=Configuration::get('PS_VERSION_DB')}
|
||||
{/if}
|
||||
|
||||
<div class="panel">
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item active">
|
||||
<a
|
||||
class="nav-link active"
|
||||
data-toggle="tab"
|
||||
href="#displayOptions"
|
||||
role="tab"
|
||||
>{l s='Display Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#calculationOptions"
|
||||
role="tab"
|
||||
>{l s='Calculation Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#conversionOptions"
|
||||
role="tab"
|
||||
>{l s='Conversion Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#pricingOptions"
|
||||
role="tab"
|
||||
>{l s='Pricing Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#minMaxLimits"
|
||||
role="tab"
|
||||
>{l s='Min/Max Limits' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<div class="tab-content" id="tabContent">
|
||||
<div class="tab-pane active" id="displayOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-group">
|
||||
<label for="squaremeter_display"> {* Module Display Option *}
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="squaremeter_display"
|
||||
id="squaremeter_display"
|
||||
value="1"
|
||||
{if $admintab_display == '1'}checked{/if}>
|
||||
{l s='Display Applet' mod='squaremeter'}
|
||||
<span
|
||||
class="help-box"
|
||||
data-container="body"
|
||||
data-toggle="popover"
|
||||
data-trigger="hover"
|
||||
data-placement="right"
|
||||
title="{l s='Applet Display Option' mod='squaremeter'}"
|
||||
data-content="{l s='If the checkbox is unchecked, then the calculation applet is not diplayed on the product page.' mod='squaremeter'}"
|
||||
>
|
||||
</span>
|
||||
</label>
|
||||
<small class="form-text">{l s='Enable the applet on the product page.' mod='squaremeter'}</small>
|
||||
</div> {* Module Display Option *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Calculation Type *}
|
||||
<label class="form-control-label" for="calculation_type">{l s='Applet Type:' mod='squaremeter'}</label>
|
||||
<select class="form-control" id="calculation_type" name="calculation_type" data-toggle="calculation_type" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_type == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option value="surface" {if $admintab_type == 'surface'}selected="selected"{/if} >{l s='Surface' mod='squaremeter'}</option>
|
||||
<option value="volume" {if $admintab_type == 'volume'}selected="selected"{/if} >{l s='Volume' mod='squaremeter'}</option>
|
||||
<option value="linear" {if $admintab_type == 'linear'}selected="selected"{/if} >{l s='Linear' mod='squaremeter'}</option>
|
||||
<option value="perimeter" {if $admintab_type == 'perimeter'}selected="selected"{/if} >{l s='Perimeter' mod='squaremeter'}</option>
|
||||
<option value="weight" {if $admintab_type == 'weight'}selected="selected"{/if} >{l s='Weight' mod='squaremeter'}</option>
|
||||
</select>
|
||||
<small class="form-text">{l s='Calculation input fields change accordingly.' mod='squaremeter'}</small>
|
||||
</div>
|
||||
<p style="color:red;" id="errort3_"></p>
|
||||
<p style="color:red;" id="errort4_"></p>
|
||||
<p style="color:red;" id="errort6_"></p>
|
||||
<p style="color:red;" id="errort8_"></p>
|
||||
<p style="color:red;" id="errort9_"></p>
|
||||
<p style="color:red;" id="errort3__"></p>
|
||||
<p style="color:red;" id="errort4__"></p>
|
||||
<p style="color:red;" id="errort6__"></p>
|
||||
<p style="color:red;" id="errort7__"></p>
|
||||
<p style="color:red;" id="errort9__"></p>
|
||||
{* Calculation Type *}
|
||||
<hr>
|
||||
<div class="form-group"> {* Descriptive Image *}
|
||||
<div class="form-group">
|
||||
<img class="image-preview" src="{if $image_src != ''}{$image_src|escape:'html':'UTF-8'}{else}{$module_dir|escape:'html':'UTF-8'}views/img/noimage.png{/if}" class="upload-preview" />
|
||||
</div>
|
||||
<div id="refresh"></div>
|
||||
<label for="squaremeter_picture">
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="squaremeter_picture"
|
||||
id="squaremeter_picture"
|
||||
value="1"
|
||||
{if $admintab_picture == '1'}checked{/if}>
|
||||
{l s='Enable picture hint on the product page.' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="custom-file">
|
||||
<input
|
||||
type="file"
|
||||
class="custom-file-input"
|
||||
name="inputfile1"
|
||||
id="inputfile1"
|
||||
data-multiple-files-text="%count% files"
|
||||
/>
|
||||
<label class="custom-file-label" for="inputfile1">{l s='Choose file...' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<small class="form-text">{l s='This picture is used to describe the dimensions needed for the product with a picture depiction. Not mandatory. If no picture is selected, there will be no picture hint button displayed on the product page. A width of 400px is suggested.' mod='squaremeter'}</small>
|
||||
</div> {* Descriptive Image *}
|
||||
<hr>
|
||||
<div class="form-group"> {* Display of "Disable Applet Checkbox" Option *}
|
||||
<label for="disableapplet">
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="disableapplet"
|
||||
id="disableapplet"
|
||||
value="1"
|
||||
{if $disableapplet == '1'}checked{/if}>
|
||||
{l s='"Order by Quantity" option' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='Present an option to use standard quantity and close the calculator.' mod='squaremeter'}</small>
|
||||
</div> {* Display of "Disable Applet Checkbox" Option *}
|
||||
<hr>
|
||||
<div class="form-group"> {* Allow ordering from product listing pages option *}
|
||||
<label for="allow_ordering_from_listing">
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="allow_ordering_from_listing"
|
||||
id="allow_ordering_from_listing"
|
||||
value="1"
|
||||
{if $allow_ordering_from_listing == '1'}checked{/if}>
|
||||
{l s='Allow ordering from product listing pages' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='If checked, product can be ordered from the product listing pages by entering the required dimension.' mod='squaremeter'}</small>
|
||||
</div> {* Allow ordering from product listing pages option *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="calculationOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-row"> {* Price Calculation *}
|
||||
<label class="form-control-label" for="display_quantity">{l s='Order Quantity Display and Price Calculation Options:' mod='squaremeter'}</label>
|
||||
<select class="form-control" id="display_quantity" name="display_quantity" data-toggle="display_quantity" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_dispquan == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option value="decimalok" {if $admintab_dispquan == 'decimalok'}selected="selected"{/if} >{l s='Quantity overridden, decimals allowed (Recommended)' mod='squaremeter'}</option>
|
||||
<option value="onevisible" {if $admintab_dispquan == 'onevisible'}selected="selected"{/if} >{l s='Quantity always 1 and visible, price constant' mod='squaremeter'}</option>
|
||||
<option value="oneinvisible" {if $admintab_dispquan == 'oneinvisible'}selected="selected"{/if} >{l s='Quantity always 1 and invisible, price constant' mod='squaremeter'}</option>
|
||||
<option value="calcvisible" {if $admintab_dispquan == 'calcvisible'}selected="selected"{/if} >{l s='Quantity calculated and visible, price calculated by applet' mod='squaremeter'}</option>
|
||||
<option value="calcinvisible" {if $admintab_dispquan == 'calcinvisible'}selected="selected"{/if} >{l s='Quantity calculated and invisible, price calculated by applet' mod='squaremeter'}</option>
|
||||
<option value="onewithcalcvisible" {if $admintab_dispquan == 'onewithcalcvisible'}selected="selected"{/if} >{l s='Quantity always 1 and visible, price calculated by applet' mod='squaremeter'}</option>
|
||||
<option value="onewithcalcinvisible" {if $admintab_dispquan == 'onewithcalcinvisible'}selected="selected"{/if} >{l s='Quantity always 1 and invisible, price calculated by applet' mod='squaremeter'}</option>
|
||||
</select>
|
||||
<small class="form-text">{l s='Choose the appropriate one according to your case.' mod='squaremeter'}</small>
|
||||
</div> {* Price Calculation *}
|
||||
<hr>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;" id="req_quan"> {* Manual Quantity Input *}
|
||||
<label for="additional_quantity">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="additional_quantity" id="additional_quantity" value="1" {if $admintab_addquan == '1'}checked{/if}>
|
||||
{l s='Manual quantity input field' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text col-md-12">{l s='Recommended if you don\'t want to use the default quantity option of Prestashop.' mod='squaremeter'}</small>
|
||||
</div> {* Manual Quantity Input *}
|
||||
<hr>
|
||||
<div class="form-row" id="direct_input_field"> {* Direct Input *}
|
||||
<label for="direct_input">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="direct_input" id="direct_input" value="1" {if $admintab_directinput == '1'}checked{/if}>
|
||||
{l s='Allow direct input' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='If enabled, the final total is asked from the customer, instead of entering the dimensions and calculation the required total. For the minimum and maximum limits, the first dimension parameter\'s minimums and maximums will be assigned. For example if you are using the surface applet, it is the width limits to be used.' mod='squaremeter'}</small>
|
||||
</div> {* Direct Input *}
|
||||
<hr>
|
||||
<div class="form-row" id="ratio_field"> {* Dimension Ratio *}
|
||||
<label for="ratio">{l s='Ratio:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="ratio" id="ratio" size="10" value="{if isset($admintab_ratio)}{$admintab_ratio|escape:'htmlall':'UTF-8'}{/if}" placeholder="Surface H:W, Volume H:W:D, Perimeter H:W."/>
|
||||
<small class="form-text">{l s='Not mandatory, leave it blank if not required. Valid only applet having more than 1 dimensions like surface, volume and perimeter. If direct input is used, ratio is cancelled. Ratios cannot be decimal, but integer. If a ratio is entered, the dimensions are set based on the ratio delimited by colon. For example, a ratio of 3:2 for the surface applet means, 3 times Height requires 2 times Width (3x2). Surface H:W, Volume H:W:D, Perimeter H:W.' mod='squaremeter'}</small>
|
||||
<hr>
|
||||
</div> {* Dimension Ratio *}
|
||||
<div class="form-row" id="step_field"> {* Increase/Decrease Step Value *}
|
||||
<label for="step">{l s='Increase/Decrease Step Value' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step" id="step" size="10" value="{if isset($step)}{$step|escape:'htmlall':'UTF-8'}{/if}" placeholder="{l s='(Default: 1)' mod='squaremeter'}" onchange="checkstep()" />
|
||||
<small class="form-text">{l s='When the customer clicks on the up/down buttons, the value will be changed by the step value.' mod='squaremeter'}</small>
|
||||
</div>
|
||||
<p style="color:red;" id="error_step"></p>
|
||||
{* Increase/Decrease Step Value *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="conversionOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-row">
|
||||
<label>{l s='Conversion Setup:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;" id="attselect_conv"> {* Conversion Value Setup (Normal) *}
|
||||
<div class="col-sm-4">
|
||||
<label>{l s='1 piece (quantity) equals to:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control edit" name="conversion" id="conversion" size="10" value="{if isset($admintab_conversion)}{$admintab_conversion|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="conversion_unit" name="conversion_unit" data-toggle="conversion_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_conversion_unit == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<optgroup label="Perimeter Units">
|
||||
<option text="perimeter" id="perimeter" value="mm" {if $admintab_conversion_unit == 'mm'}selected="selected"{/if} >{l s='mm' mod='squaremeter'}</option>
|
||||
<option text="perimeter" id="perimeter" value="cm" {if $admintab_conversion_unit == 'cm'}selected="selected"{/if} >{l s='cm' mod='squaremeter'}</option>
|
||||
<option text="perimeter" id="perimeter" value="dm" {if $admintab_conversion_unit == 'dm'}selected="selected"{/if} >{l s='dm' mod='squaremeter'}</option>
|
||||
<option text="perimeter" id="perimeter" value="m" {if $admintab_conversion_unit == 'm'}selected="selected"{/if} >{l s='m' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Linear Units">
|
||||
<option id="linear" value="mm" {if $admintab_conversion_unit == 'mm'}selected="selected"{/if} >{l s='mm' mod='squaremeter'}</option>
|
||||
<option id="linear" value="cm" {if $admintab_conversion_unit == 'cm'}selected="selected"{/if} >{l s='cm' mod='squaremeter'}</option>
|
||||
<option id="linear" value="dm" {if $admintab_conversion_unit == 'dm'}selected="selected"{/if} >{l s='dm' mod='squaremeter'}</option>
|
||||
<option id="linear" value="m" {if $admintab_conversion_unit == 'm'}selected="selected"{/if} >{l s='m' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Surface Units">
|
||||
<option id="surface" value="mm2" {if $admintab_conversion_unit == 'mm2'}selected="selected"{/if} >{l s='mm2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="cm2" {if $admintab_conversion_unit == 'cm2'}selected="selected"{/if} >{l s='cm2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="dm2" {if $admintab_conversion_unit == 'dm2'}selected="selected"{/if} >{l s='dm2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="m2" {if $admintab_conversion_unit == 'm2'}selected="selected"{/if} >{l s='m2' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Volume Units">
|
||||
<option id="volume" value="mm3" {if $admintab_conversion_unit == 'mm3'}selected="selected"{/if} >{l s='mm3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="cm3" {if $admintab_conversion_unit == 'cm3'}selected="selected"{/if} >{l s='cm3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="dm3" {if $admintab_conversion_unit == 'dm3'}selected="selected"{/if} >{l s='dm3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="m3" {if $admintab_conversion_unit == 'm3'}selected="selected"{/if} >{l s='m3' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Weight Units">
|
||||
<option id="weight" value="mg" {if $admintab_conversion_unit == 'mg'}selected="selected"{/if} >{l s='mg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="cg" {if $admintab_conversion_unit == 'cg'}selected="selected"{/if} >{l s='cg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="dg" {if $admintab_conversion_unit == 'dg'}selected="selected"{/if} >{l s='dg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="g" {if $admintab_conversion_unit == 'g'}selected="selected"{/if} >{l s='g' mod='squaremeter'}</option>
|
||||
<option id="weight" value="dag" {if $admintab_conversion_unit == 'dag'}selected="selected"{/if} >{l s='dag' mod='squaremeter'}</option>
|
||||
<option id="weight" value="hg" {if $admintab_conversion_unit == 'hg'}selected="selected"{/if} >{l s='hg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="kg" {if $admintab_conversion_unit == 'kg'}selected="selected"{/if} >{l s='kg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="ton" {if $admintab_conversion_unit == 'ton'}selected="selected"{/if} >{l s='ton' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
<small class="form-text">{l s='If you write 1 piece equals to 100 m2, the quantity field will be adjusted accordingly. To simply put, quantity will change 1 ea on every 100 m2 calculation. Ex: Width is entered 10 m. and height is entered 5 m., it makes 10x5 = 50 m2. It is roundedup to 100m2 and quantity field will be 1. If width is entered 10 m. and height is entered 20 m., it makes 10x20 = 200 m2, so the quantity will be 2.' mod='squaremeter'}</small>
|
||||
</div> {* Conversion Value Setup (Normal) *}
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;" id="attselect_attr"> {* Conversion Value Setup (Attribute) *}
|
||||
<div class="col-sm-4">
|
||||
<label>{l s='Attribute group name and attribute unit:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="attribute" name="attribute" data-toggle="attribute" data-minimumresultsforsearch="3" aria-hidden="true" onchange="checktest()">
|
||||
{foreach from=$admintab_attributesListProduct key=k item=attributes}
|
||||
<option value="{$attributes.id_attribute_group|escape:'htmlall':'UTF-8'}" {if ($admintab_attribute == $attributes.id_attribute_group)}selected="selected"{/if} >{$attributes.public_name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="attribute_unit" name="attribute_unit" data-toggle="attribute_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_attribute_unit == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option id="perimeter" value="mm" {if $admintab_attribute_unit == 'mm'}selected="selected"{/if} >{l s='mm' mod='squaremeter'}</option>
|
||||
<option id="perimeter" value="cm" {if $admintab_attribute_unit == 'cm'}selected="selected"{/if} >{l s='cm' mod='squaremeter'}</option>
|
||||
<option id="perimeter" value="dm" {if $admintab_attribute_unit == 'dm'}selected="selected"{/if} >{l s='dm' mod='squaremeter'}</option>
|
||||
<option id="perimeter" value="m" {if $admintab_attribute_unit == 'm'}selected="selected"{/if} >{l s='m' mod='squaremeter'}</option>
|
||||
<option id="linear" value="mm" {if $admintab_attribute_unit == 'mm'}selected="selected"{/if} >{l s='mm' mod='squaremeter'}</option>
|
||||
<option id="linear" value="cm" {if $admintab_attribute_unit == 'cm'}selected="selected"{/if} >{l s='cm' mod='squaremeter'}</option>
|
||||
<option id="linear" value="dm" {if $admintab_attribute_unit == 'dm'}selected="selected"{/if} >{l s='dm' mod='squaremeter'}</option>
|
||||
<option id="linear" value="m" {if $admintab_attribute_unit == 'm'}selected="selected"{/if} >{l s='m' mod='squaremeter'}</option>
|
||||
<option id="surface" value="mm2" {if $admintab_attribute_unit == 'mm2'}selected="selected"{/if} >{l s='mm2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="cm2" {if $admintab_attribute_unit == 'cm2'}selected="selected"{/if} >{l s='cm2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="dm2" {if $admintab_attribute_unit == 'dm2'}selected="selected"{/if} >{l s='dm2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="m2" {if $admintab_attribute_unit == 'm2'}selected="selected"{/if} >{l s='m2' mod='squaremeter'}</option>
|
||||
<option id="volume" value="mm3" {if $admintab_attribute_unit == 'mm3'}selected="selected"{/if} >{l s='mm3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="cm3" {if $admintab_attribute_unit == 'cm3'}selected="selected"{/if} >{l s='cm3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="dm3" {if $admintab_attribute_unit == 'dm3'}selected="selected"{/if} >{l s='dm3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="m3" {if $admintab_attribute_unit == 'm3'}selected="selected"{/if} >{l s='m3' mod='squaremeter'}</option>
|
||||
<option id="weight" value="mg" {if $admintab_attribute_unit == 'mg'}selected="selected"{/if} >{l s='mg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="cg" {if $admintab_attribute_unit == 'cg'}selected="selected"{/if} >{l s='cg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="dg" {if $admintab_attribute_unit == 'dg'}selected="selected"{/if} >{l s='dg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="g" {if $admintab_attribute_unit == 'g'}selected="selected"{/if} >{l s='g' mod='squaremeter'}</option>
|
||||
<option id="weight" value="dag" {if $admintab_attribute_unit == 'dag'}selected="selected"{/if} >{l s='dag' mod='squaremeter'}</option>
|
||||
<option id="weight" value="hg" {if $admintab_attribute_unit == 'hg'}selected="selected"{/if} >{l s='hg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="kg" {if $admintab_attribute_unit == 'kg'}selected="selected"{/if} >{l s='kg' mod='squaremeter'}</option>
|
||||
<option id="weight" value="ton" {if $admintab_attribute_unit == 'ton'}selected="selected"{/if} >{l s='ton' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</div>
|
||||
<small class="form-text">{l s='Please enter the attribute id number and the unit of the attribute for the calculated dimension to be converted.' mod='squaremeter'}</small>
|
||||
</div> {* Conversion Value Setup (Attribute) *}
|
||||
<p style="color:red;" id="errort7"></p>
|
||||
<p style="color:red;" id="errort"></p>
|
||||
<hr>
|
||||
<div class="form-row" id="direct_input_field"> {* Attribute Selection *}
|
||||
<label for="attselect">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="attselect" id="attselect" value="1" {if $admintab_attselect}checked{/if}>
|
||||
{l s='Use an attribute group for the conversion.' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='With the attribute conversion, you can enter as many conversion values as you want in condition, they are gathered under one attribute id.' mod='squaremeter'}</small>
|
||||
</div> {* Attribute Selection *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Second Conversion Option *}
|
||||
<label>{l s='Second Conversion Option:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-5">
|
||||
<label for="secconversionselect">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="secconversionselect" id="secconversionselect" value="1" {if $admintab_secconversionselect}checked{/if}>
|
||||
{l s='Use a second conversion step' mod='squaremeter'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-5" id="second_conversion">
|
||||
<label>{l s='1 piece (quantity) of first conversion unit equals to:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="secconversion" id="secconversion" size="10" value="{if isset($admintab_secconversion)}{$admintab_secconversion|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()" />
|
||||
</div>
|
||||
<small class="form-text">{l s='Description: You have different liters of color boxes like 1L, 4L, 8L. Each liters covers wall of 10 m2. Then the entered/calculated dimension of surface is divided by the box conversion (Ex:1,4,8) which is the primary conversion, then the coming result should be divided to the secondary conversion which is 10 to find the quantity needed. The conversion unit should be m2 in this example.' mod='squaremeter'}</small>
|
||||
</div>
|
||||
{* Second Conversion Option *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="pricingOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-row"> {* Total Price Display *}
|
||||
<label class="form-control-label" for="display_price">{l s='Total Price Display Options:' mod='squaremeter'}</label>
|
||||
<select class="form-control" id="display_price" name="display_price" data-toggle="display_price" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_dispprice == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option value="pricebutton" {if $admintab_dispprice == 'pricebutton'}selected="selected"{/if} >{l s='Native price is visible and total price with button click' mod='squaremeter'}</option>
|
||||
<option value="nopricebutton" {if $admintab_dispprice == 'nopricebutton'}selected="selected"{/if} >{l s='Native price is hidden and total price with button click' mod='squaremeter'}</option>
|
||||
<option value="pricetotalprice" {if $admintab_dispprice == 'pricetotalprice'}selected="selected"{/if} >{l s='Native price and total price are visible (Recommended)' mod='squaremeter'}</option>
|
||||
<option value="nopricetotalprice" {if $admintab_dispprice == 'nopricetotalprice'}selected="selected"{/if} >{l s='Native price is hidden and total price is visible' mod='squaremeter'}</option>
|
||||
<option value="pricenototalprice" {if $admintab_dispprice == 'pricenototalprice'}selected="selected"{/if} >{l s='(Normal) Native price is visible and no total price' mod='squaremeter'}</option>
|
||||
</select>
|
||||
<small class="form-text">{l s='Choose the appropriate one according to your case.' mod='squaremeter'}</small>
|
||||
</div> {* Total Price Display *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Custom Base Price *}
|
||||
<label for="reserve">{l s='Custom Base price:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="reserve" id="reserve" size="10" value="{if isset($admintab_reserve)}{$admintab_reserve|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
<small class="form-text">{l s='If the total price calculated is below the base price, the total price is equal to the base price. For example, if 1 m is $5 and the customer orders 2m, and if the base price is $20, then the calculated total will be $20 as 2 x 5 < 20. If empty, base price is ignored.' mod='squaremeter'}</small>
|
||||
</div> {* Custom Base Price *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Unit Price as Base Price *}
|
||||
<label for="unit_baseprice">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="unit_baseprice" id="unit_baseprice" value="1" {if $admintab_unit_baseprice == '1'}checked{/if}>
|
||||
{l s='Use Unit Price as Base Price' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='If enabled, the unit price will be used as base price. If the total price calculated is below the unit price, the total price is equal to the unit price. For example, if 1 unit is $5 and the customer enters a dimension having a total price of $3, then the calculated total will be $5 as 3 < 5.' mod='squaremeter'}</small>
|
||||
</div> {* Unit Price as Starting Price *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Starting Price *}
|
||||
<label for="startingprice">{l s='Starting price:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="startingprice" id="startingprice" size="10" value="{if isset($admintab_startingprice)}{$admintab_startingprice|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
<small class="form-text">{l s='The calculated price will start from the starting price. For example, if 1 m is $5 and the customer orders 2m, and if the starting price is $10, then the calculated total will be 10 + 2 x 5 = $20. If empty, starting price is ignored. ' mod='squaremeter'}</small>
|
||||
</div> {* Starting Price *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Extra Fee Option *}
|
||||
<label>{l s='Extra Fee:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-5">
|
||||
<label for="extrafee_select">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="extrafee_select" id="extrafee_select" value="1" {if $admintab_extrafee_select}checked{/if}>
|
||||
{l s='If checked, extra fee option will be visible.' mod='squaremeter'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" class="form-control edit" name="displayextrafee" id="displayextrafee" size="10" value="{if isset($admintab_extrafee)}{$admintab_extrafee|escape:'htmlall':'UTF-8'}{/if}" placeholder="{l s='Fee Value' mod='squaremeter'}"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='The stated extra fee will be added to the total price, if the checkbox is selected by the customer.' mod='squaremeter'}</small>
|
||||
</div> {* Extra Fee Option *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Waste Percentage Option *}
|
||||
<label>{l s='Waste Percentage Increase Option:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-6">
|
||||
<label for="waste_select">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="waste_select" id="waste_select" value="1" {if $admintab_waste_select}checked{/if}>
|
||||
{l s='If checked, percentage increase for waste option will be visible.' mod='squaremeter'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-4 input-group">
|
||||
<input type="text" class="form-control edit" name="displaywaste" id="displaywaste" size="10" value="{if isset($admintab_waste)}{$admintab_waste|escape:'htmlall':'UTF-8'}{/if}" placeholder="{l s='Waste Percentage Amount:' mod='squaremeter'}"/>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">%</span>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='The stated percentage will be added to the total dimension for the waste, if the checkbox is selected by the customer.' mod='squaremeter'}</small>
|
||||
</div> {* Waste Percentage Option *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="minMaxLimits" role="tabpanel">
|
||||
<div class="panel">
|
||||
{* Height Settings *}
|
||||
<fieldset id="height" style="border:none;">
|
||||
<p>{l s='Height Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_height">{l s='Min. Height Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_height" id="minimum_height" size="10" value="{if isset($admintab_minheight)}{$admintab_minheight|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_height">{l s='Max. Height Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_height" id="maximum_height" size="10" value="{if isset($admintab_maxheight)}{$admintab_maxheight|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_height_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_height_unit" id="maximum_height_unit" data-toggle="maximum_height_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxheight_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="mm" {if $admintab_maxheight_unit == 'mm'}selected="selected"{/if} >{l s='mm' mod='squaremeter'}</option>
|
||||
<option value="cm" {if $admintab_maxheight_unit == 'cm'}selected="selected"{/if} >{l s='cm' mod='squaremeter'}</option>
|
||||
<option value="dm" {if $admintab_maxheight_unit == 'dm'}selected="selected"{/if} >{l s='dm' mod='squaremeter'}</option>
|
||||
<option value="m" {if $admintab_maxheight_unit == 'm'}selected="selected"{/if} >{l s='m' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="step_height">{l s='Height Step Value:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step_height" id="step_height" size="10" value="{if isset($step_height)}{$step_height|escape:'htmlall':'UTF-8'}{/if}" onchange="checkstep_height()"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='If a step value is entered, this value will be used for the input field instead of the global step value. Leave it empty to use the global step value.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_heightcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="heightcheck" id="_heightcheck" value="1" {if $admintab_heightcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="height_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort1"></p>
|
||||
<p style="color:red;" id="errort1_"></p>
|
||||
<p style="color:red;" id="error_height"></p>
|
||||
<p style="color:red;" id="error_step_height"></p>
|
||||
<hr>
|
||||
</fieldset>
|
||||
{* Height Settings *}
|
||||
|
||||
{* Width Settings *}
|
||||
<fieldset id="width" style="border:none;">
|
||||
<p>{l s='Width Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_width">{l s='Min. Width Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_width" id="minimum_width" size="10" value="{if isset($admintab_minwidth)}{$admintab_minwidth|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_width">{l s='Max. Width Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_width" id="maximum_width" size="10" value="{if isset($admintab_maxwidth)}{$admintab_maxwidth|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_width_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_width_unit" id="maximum_width_unit" data-toggle="maximum_width_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxwidth_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="mm" {if $admintab_maxwidth_unit == 'mm'}selected="selected"{/if} >{l s='mm' mod='squaremeter'}</option>
|
||||
<option value="cm" {if $admintab_maxwidth_unit == 'cm'}selected="selected"{/if} >{l s='cm' mod='squaremeter'}</option>
|
||||
<option value="dm" {if $admintab_maxwidth_unit == 'dm'}selected="selected"{/if} >{l s='dm' mod='squaremeter'}</option>
|
||||
<option value="m" {if $admintab_maxwidth_unit == 'm'}selected="selected"{/if} >{l s='m' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="step_width">{l s='Width Step Value:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step_width" id="step_width" size="10" value="{if isset($step_width)}{$step_width|escape:'htmlall':'UTF-8'}{/if}" onchange="checkstep_width()"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='If a step value is entered, this value will be used for the input field instead of the global step value. Leave it empty to use the global step value.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_widthcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="widthcheck" id="_widthcheck" value="1" {if $admintab_widthcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="width_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort2"></p>
|
||||
<p style="color:red;" id="errort2_"></p>
|
||||
<p style="color:red;" id="error_width"></p>
|
||||
<p style="color:red;" id="error_step_width"></p>
|
||||
<hr>
|
||||
</fieldset>
|
||||
{* Width Settings *}
|
||||
|
||||
{* Depth Settings *}
|
||||
<fieldset id="depth" style="border:none;">
|
||||
<p>{l s='Depth Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_depth">{l s='Min. Depth Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_depth" id="minimum_depth" size="10" value="{if isset($admintab_mindepth)}{$admintab_mindepth|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_depth">{l s='Max. Depth Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_depth" id="maximum_depth" size="10" value="{if isset($admintab_maxdepth)}{$admintab_maxdepth|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_depth_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_depth_unit" id="maximum_depth_unit" data-toggle="maximum_depth_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxdepth_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="mm" {if $admintab_maxdepth_unit == 'mm'}selected="selected"{/if} >{l s='mm' mod='squaremeter'}</option>
|
||||
<option value="cm" {if $admintab_maxdepth_unit == 'cm'}selected="selected"{/if} >{l s='cm' mod='squaremeter'}</option>
|
||||
<option value="dm" {if $admintab_maxdepth_unit == 'dm'}selected="selected"{/if} >{l s='dm' mod='squaremeter'}</option>
|
||||
<option value="m" {if $admintab_maxdepth_unit == 'm'}selected="selected"{/if} >{l s='m' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="step_depth">{l s='Depth Step Value:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step_depth" id="step_depth" size="10" value="{if isset($step_depth)}{$step_depth|escape:'htmlall':'UTF-8'}{/if}" onchange="checkstep_depth()"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='If a step value is entered, this value will be used for the input field instead of the global step value. Leave it empty to use the global step value.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_depthcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="depthcheck" id="_depthcheck" value="1" {if $admintab_depthcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="depth_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort4"></p>
|
||||
<p style="color:red;" id="errort5_"></p>
|
||||
<p style="color:red;" id="error_depth"></p>
|
||||
<p style="color:red;" id="error_step_depth"></p>
|
||||
</fieldset>
|
||||
{* Depth Settings *}
|
||||
{* Weight Settings *}
|
||||
<fieldset id="weight" style="border:none;">
|
||||
<p>{l s='Weight Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_weight">{l s='Min. Weight Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_weight" id="minimum_weight" size="10" value="{if isset($admintab_minweight)}{$admintab_minweight|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_weight">{l s='Max. Weight Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_weight" id="maximum_weight" size="10" value="{if isset($admintab_maxweight)}{$admintab_maxweight|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_weight_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_weight_unit" id="maximum_weight_unit" data-toggle="maximum_weight_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxweight_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="mg" {if $admintab_maxweight_unit == 'mg'}selected="selected"{/if} >{l s='mg' mod='squaremeter'}</option>
|
||||
<option value="cg" {if $admintab_maxweight_unit == 'cg'}selected="selected"{/if} >{l s='cg' mod='squaremeter'}</option>
|
||||
<option value="dg" {if $admintab_maxweight_unit == 'dg'}selected="selected"{/if} >{l s='dg' mod='squaremeter'}</option>
|
||||
<option value="g" {if $admintab_maxweight_unit == 'g'}selected="selected"{/if} >{l s='g' mod='squaremeter'}</option>
|
||||
<option value="dag" {if $admintab_maxweight_unit == 'dag'}selected="selected"{/if} >{l s='dag' mod='squaremeter'}</option>
|
||||
<option value="hg" {if $admintab_maxweight_unit == 'hg'}selected="selected"{/if} >{l s='hg' mod='squaremeter'}</option>
|
||||
<option value="kg" {if $admintab_maxweight_unit == 'kg'}selected="selected"{/if} >{l s='kg' mod='squaremeter'}</option>
|
||||
<option value="t" {if $admintab_maxweight_unit == 't'}selected="selected"{/if} >{l s='t' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_weightcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="weightcheck" id="_weightcheck" value="1" {if $admintab_weightcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="weight_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort8"></p>
|
||||
<p style="color:red;" id="error_weight"></p>
|
||||
</fieldset>
|
||||
{* Weight Settings *}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if ($psversion > '1.6.0.0') && ($psversion < '1.7.0.0')}
|
||||
<div class="separation"></div>
|
||||
<div class="clear"> </div>
|
||||
<div class="panel-footer"> <a href="{$link->getAdminLink('AdminProducts')|escape:'htmlall':'UTF-8'}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel' mod='squaremeter'}</a>
|
||||
<button type="submit" name="submitAddproduct" id="desc-product-save" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save' mod='squaremeter'}</button>
|
||||
<button type="submit" name="submitAddproductAndStay" id="desc-product-save-and-stay" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save and stay' mod='squaremeter'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript" src="{$module_dir|escape:'html':'UTF-8'}views/js/product_admin.js"></script>
|
||||
<script>
|
||||
$(window).on('load', function(){
|
||||
calc_type();
|
||||
var IsChecked = $('input[name="attselect"]:checked').length > 0;
|
||||
if (IsChecked)
|
||||
checktest4();
|
||||
else
|
||||
checktest3();
|
||||
{if $admintab_attselect}
|
||||
$('#attselect').attr('checked', true);
|
||||
{else}
|
||||
$('#attselect').attr('checked', false);
|
||||
{/if}
|
||||
{if $admintab_secconversionselect}
|
||||
$('#secconversionselect').attr('checked', true);
|
||||
{else}
|
||||
$('#secconversionselect').attr('checked', false);
|
||||
{/if}
|
||||
checkconversion();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.image-preview {
|
||||
width:100px;
|
||||
height:auto;
|
||||
}
|
||||
.col-sm-6, .col-sm-5, .col-sm-4, .col-sm-3 {
|
||||
float:left;
|
||||
}
|
||||
.form-group {
|
||||
display:grid;
|
||||
}
|
||||
.form-row {
|
||||
margin-right: 10px;
|
||||
}
|
||||
#myTab {
|
||||
left:0;
|
||||
}
|
||||
.panel {
|
||||
overflow:auto;
|
||||
overflow-x:hidden;
|
||||
padding-left:10px;
|
||||
padding-top:2px;
|
||||
}
|
||||
.tab-pane {
|
||||
overflow:auto;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
.product-page .nav-tabs {
|
||||
height: 3.625rem;
|
||||
width: unset;
|
||||
}
|
||||
</style>
|
||||
<!-- Square Meter Calculation Module -->
|
||||
666
modules/squaremeter/views/templates/admin/admintab_e.tpl
Normal file
666
modules/squaremeter/views/templates/admin/admintab_e.tpl
Normal file
@@ -0,0 +1,666 @@
|
||||
{*
|
||||
* Module Name: Perimeter / Length / Surface (Area) / Volume / Weight Calculator for Prestashop
|
||||
* Module URI: Please contact with info@megventure.com
|
||||
* Description: A utility to calculate quantity in perimeter, length, area, volume or weight units
|
||||
* Version: 5.5.1
|
||||
* Author: MEG Venture
|
||||
*
|
||||
* Copyright 2013, MEG Venture (info@megventure.com)
|
||||
*
|
||||
* This program is not a free software: you can't redistribute it and/or modify
|
||||
* it. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This copyright notice and licence should be retained in all modules based on this framework.
|
||||
* This does not affect your rights to assert copyright over your own original work.
|
||||
*}
|
||||
|
||||
<!-- Square Meter Calculation Module -->
|
||||
{if $psversion == ''}
|
||||
{assign var='psversion' value=Configuration::get('PS_VERSION_DB')}
|
||||
{/if}
|
||||
|
||||
<div class="panel">
|
||||
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
||||
<li class="nav-item active">
|
||||
<a
|
||||
class="nav-link active"
|
||||
data-toggle="tab"
|
||||
href="#displayOptions"
|
||||
role="tab"
|
||||
>{l s='Display Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#calculationOptions"
|
||||
role="tab"
|
||||
>{l s='Calculation Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#conversionOptions"
|
||||
role="tab"
|
||||
>{l s='Conversion Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#pricingOptions"
|
||||
role="tab"
|
||||
>{l s='Pricing Options' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a
|
||||
class="nav-link"
|
||||
data-toggle="tab"
|
||||
href="#minMaxLimits"
|
||||
role="tab"
|
||||
>{l s='Min/Max Limits' mod='squaremeter'}</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<div class="tab-content" id="tabContent">
|
||||
<div class="tab-pane active" id="displayOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-group">
|
||||
<label for="squaremeter_display"> {* Module Display Option *}
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="squaremeter_display"
|
||||
id="squaremeter_display"
|
||||
value="1"
|
||||
{if $admintab_display == '1'}checked{/if}>
|
||||
{l s='Display Applet' mod='squaremeter'}
|
||||
<span
|
||||
class="help-box"
|
||||
data-container="body"
|
||||
data-toggle="popover"
|
||||
data-trigger="hover"
|
||||
data-placement="right"
|
||||
title="{l s='Applet Display Option' mod='squaremeter'}"
|
||||
data-content="{l s='If the checkbox is unchecked, then the calculation applet is not diplayed on the product page.' mod='squaremeter'}"
|
||||
>
|
||||
</span>
|
||||
</label>
|
||||
<small class="form-text">{l s='Enable the applet on the product page.' mod='squaremeter'}</small>
|
||||
</div> {* Module Display Option *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Calculation Type *}
|
||||
<label class="form-control-label" for="calculation_type">{l s='Applet Type:' mod='squaremeter'}</label>
|
||||
<select class="form-control" id="calculation_type" name="calculation_type" data-toggle="calculation_type" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_type == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option value="surface" {if $admintab_type == 'surface'}selected="selected"{/if} >{l s='Surface' mod='squaremeter'}</option>
|
||||
<option value="volume" {if $admintab_type == 'volume'}selected="selected"{/if} >{l s='Volume' mod='squaremeter'}</option>
|
||||
<option value="linear" {if $admintab_type == 'linear'}selected="selected"{/if} >{l s='Linear' mod='squaremeter'}</option>
|
||||
<option value="perimeter" {if $admintab_type == 'perimeter'}selected="selected"{/if} >{l s='Perimeter' mod='squaremeter'}</option>
|
||||
<option value="weight" {if $admintab_type == 'weight'}selected="selected"{/if} >{l s='Weight' mod='squaremeter'}</option>
|
||||
</select>
|
||||
<small class="form-text">{l s='Calculation input fields change accordingly.' mod='squaremeter'}</small>
|
||||
</div>
|
||||
<p style="color:red;" id="errort3_"></p>
|
||||
<p style="color:red;" id="errort4_"></p>
|
||||
<p style="color:red;" id="errort6_"></p>
|
||||
<p style="color:red;" id="errort8_"></p>
|
||||
<p style="color:red;" id="errort9_"></p>
|
||||
<p style="color:red;" id="errort3__"></p>
|
||||
<p style="color:red;" id="errort4__"></p>
|
||||
<p style="color:red;" id="errort6__"></p>
|
||||
<p style="color:red;" id="errort7__"></p>
|
||||
<p style="color:red;" id="errort9__"></p>
|
||||
{* Calculation Type *}
|
||||
<hr>
|
||||
<div class="form-group"> {* Descriptive Image *}
|
||||
<div class="form-group">
|
||||
<img class="image-preview" src="{if $image_src != ''}{$image_src|escape:'html':'UTF-8'}{else}{$module_dir|escape:'html':'UTF-8'}views/img/noimage.png{/if}" class="upload-preview" />
|
||||
</div>
|
||||
<div id="refresh"></div>
|
||||
<label for="squaremeter_picture">
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="squaremeter_picture"
|
||||
id="squaremeter_picture"
|
||||
value="1"
|
||||
{if $admintab_picture == '1'}checked{/if}>
|
||||
{l s='Enable picture hint on the product page.' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="custom-file">
|
||||
<input
|
||||
type="file"
|
||||
class="custom-file-input"
|
||||
name="inputfile1"
|
||||
id="inputfile1"
|
||||
data-multiple-files-text="%count% files"
|
||||
/>
|
||||
<label class="custom-file-label" for="inputfile1">{l s='Choose file...' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<small class="form-text">{l s='This picture is used to describe the dimensions needed for the product with a picture depiction. Not mandatory. If no picture is selected, there will be no picture hint button displayed on the product page. A width of 400px is suggested.' mod='squaremeter'}</small>
|
||||
</div> {* Descriptive Image *}
|
||||
<hr>
|
||||
<div class="form-group"> {* Display of "Disable Applet Checkbox" Option *}
|
||||
<label for="disableapplet">
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="disableapplet"
|
||||
id="disableapplet"
|
||||
value="1"
|
||||
{if $disableapplet == '1'}checked{/if}>
|
||||
{l s='"Order by Quantity" option' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='Present an option to use standard quantity and close the calculator.' mod='squaremeter'}</small>
|
||||
</div> {* Display of "Disable Applet Checkbox" Option *}
|
||||
<hr>
|
||||
<div class="form-group"> {* Allow ordering from product listing pages option *}
|
||||
<label for="allow_ordering_from_listing">
|
||||
<input
|
||||
data-toggle="switch"
|
||||
class=""
|
||||
data-inverse="true"
|
||||
type="checkbox"
|
||||
name="allow_ordering_from_listing"
|
||||
id="allow_ordering_from_listing"
|
||||
value="1"
|
||||
{if $allow_ordering_from_listing == '1'}checked{/if}>
|
||||
{l s='Allow ordering from product listing pages' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='If checked, product can be ordered from the product listing pages by entering the required dimension.' mod='squaremeter'}</small>
|
||||
</div> {* Allow ordering from product listing pages option *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="calculationOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-row"> {* Price Calculation *}
|
||||
<label class="form-control-label" for="display_quantity">{l s='Order Quantity Display and Price Calculation Options:' mod='squaremeter'}</label>
|
||||
<select class="form-control" id="display_quantity" name="display_quantity" data-toggle="display_quantity" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_dispquan == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option value="decimalok" {if $admintab_dispquan == 'decimalok'}selected="selected"{/if} >{l s='Quantity overridden, decimals allowed (Recommended)' mod='squaremeter'}</option>
|
||||
<option value="onevisible" {if $admintab_dispquan == 'onevisible'}selected="selected"{/if} >{l s='Quantity always 1 and visible, price constant' mod='squaremeter'}</option>
|
||||
<option value="oneinvisible" {if $admintab_dispquan == 'oneinvisible'}selected="selected"{/if} >{l s='Quantity always 1 and invisible, price constant' mod='squaremeter'}</option>
|
||||
<option value="calcvisible" {if $admintab_dispquan == 'calcvisible'}selected="selected"{/if} >{l s='Quantity calculated and visible, price calculated by applet' mod='squaremeter'}</option>
|
||||
<option value="calcinvisible" {if $admintab_dispquan == 'calcinvisible'}selected="selected"{/if} >{l s='Quantity calculated and invisible, price calculated by applet' mod='squaremeter'}</option>
|
||||
<option value="onewithcalcvisible" {if $admintab_dispquan == 'onewithcalcvisible'}selected="selected"{/if} >{l s='Quantity always 1 and visible, price calculated by applet' mod='squaremeter'}</option>
|
||||
<option value="onewithcalcinvisible" {if $admintab_dispquan == 'onewithcalcinvisible'}selected="selected"{/if} >{l s='Quantity always 1 and invisible, price calculated by applet' mod='squaremeter'}</option>
|
||||
</select>
|
||||
<small class="form-text">{l s='Choose the appropriate one according to your case.' mod='squaremeter'}</small>
|
||||
</div> {* Price Calculation *}
|
||||
<hr>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;" id="req_quan"> {* Manual Quantity Input *}
|
||||
<label for="additional_quantity">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="additional_quantity" id="additional_quantity" value="1" {if $admintab_addquan == '1'}checked{/if}>
|
||||
{l s='Manual quantity input field' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text col-md-12">{l s='Recommended if you don\'t want to use the default quantity option of Prestashop.' mod='squaremeter'}</small>
|
||||
</div> {* Manual Quantity Input *}
|
||||
<hr>
|
||||
<div class="form-row" id="direct_input_field"> {* Direct Input *}
|
||||
<label for="direct_input">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="direct_input" id="direct_input" value="1" {if $admintab_directinput == '1'}checked{/if}>
|
||||
{l s='Allow direct input' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='If enabled, the final total is asked from the customer, instead of entering the dimensions and calculation the required total. For the minimum and maximum limits, the first dimension parameter\'s minimums and maximums will be assigned. For example if you are using the surface applet, it is the width limits to be used.' mod='squaremeter'}</small>
|
||||
</div> {* Direct Input *}
|
||||
<hr>
|
||||
<div class="form-row" id="ratio_field"> {* Dimension Ratio *}
|
||||
<label for="ratio">{l s='Ratio:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="ratio" id="ratio" size="10" value="{if isset($admintab_ratio)}{$admintab_ratio|escape:'htmlall':'UTF-8'}{/if}" placeholder="Surface H:W, Volume H:W:D, Perimeter H:W."/>
|
||||
<small class="form-text">{l s='Not mandatory, leave it blank if not required. Valid only applet having more than 1 dimensions like surface, volume and perimeter. If direct input is used, ratio is cancelled. Ratios cannot be decimal, but integer. If a ratio is entered, the dimensions are set based on the ratio delimited by colon. For example, a ratio of 3:2 for the surface applet means, 3 times Height requires 2 times Width (3x2). Surface H:W, Volume H:W:D, Perimeter H:W.' mod='squaremeter'}</small>
|
||||
<hr>
|
||||
</div> {* Dimension Ratio *}
|
||||
<div class="form-row" id="step_field"> {* Increase/Decrease Step Value *}
|
||||
<label for="step">{l s='Increase/Decrease Step Value' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step" id="step" size="10" value="{if isset($step)}{$step|escape:'htmlall':'UTF-8'}{/if}" placeholder="{l s='(Default: 1)' mod='squaremeter'}" onchange="checkstep()" />
|
||||
<small class="form-text">{l s='When the customer clicks on the up/down buttons, the value will be changed by the step value.' mod='squaremeter'}</small>
|
||||
</div>
|
||||
<p style="color:red;" id="error_step"></p>
|
||||
{* Increase/Decrease Step Value *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="conversionOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-row">
|
||||
<label>{l s='Conversion Setup:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;" id="attselect_conv"> {* Conversion Value Setup (Normal) *}
|
||||
<div class="col-sm-4">
|
||||
<label>{l s='1 piece (quantity) equals to:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control edit" name="conversion" id="conversion" size="10" value="{if isset($admintab_conversion)}{$admintab_conversion|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="conversion_unit" name="conversion_unit" data-toggle="conversion_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_conversion_unit == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<optgroup label="Perimeter Units">
|
||||
<option text="perimeter" id="perimeter" value="in" {if $admintab_conversion_unit == 'in'}selected="selected"{/if} >{l s='in' mod='squaremeter'}</option>
|
||||
<option text="perimeter" id="perimeter" value="ft" {if $admintab_conversion_unit == 'ft'}selected="selected"{/if} >{l s='ft' mod='squaremeter'}</option>
|
||||
<option text="perimeter" id="perimeter" value="yd" {if $admintab_conversion_unit == 'yd'}selected="selected"{/if} >{l s='yd' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Linear Units">
|
||||
<option id="linear" value="in" {if $admintab_conversion_unit == 'in'}selected="selected"{/if} >{l s='in' mod='squaremeter'}</option>
|
||||
<option id="linear" value="ft" {if $admintab_conversion_unit == 'ft'}selected="selected"{/if} >{l s='ft' mod='squaremeter'}</option>
|
||||
<option id="linear" value="yd" {if $admintab_conversion_unit == 'yd'}selected="selected"{/if} >{l s='yd' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Surface Units">
|
||||
<option id="surface" value="in2" {if $admintab_conversion_unit == 'in2'}selected="selected"{/if} >{l s='in2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="ft2" {if $admintab_conversion_unit == 'ft2'}selected="selected"{/if} >{l s='ft2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="yd2" {if $admintab_conversion_unit == 'yd2'}selected="selected"{/if} >{l s='yd2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="acre" {if $admintab_conversion_unit == 'acre'}selected="selected"{/if} >{l s='acre' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Volume Units">
|
||||
<option id="volume" value="in3" {if $admintab_conversion_unit == 'in3'}selected="selected"{/if} >{l s='in3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="ft3" {if $admintab_conversion_unit == 'ft3'}selected="selected"{/if} >{l s='ft3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="yd3" {if $admintab_conversion_unit == 'yd3'}selected="selected"{/if} >{l s='yd3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="acre-feet" {if $admintab_conversion_unit == 'acre-feet'}selected="selected"{/if} >{l s='acre-feet' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
<optgroup label="Weight Units">
|
||||
<option id="weight" value="oz" {if $admintab_conversion_unit == 'oz'}selected="selected"{/if} >{l s='oz' mod='squaremeter'}</option>
|
||||
<option id="weight" value="lbs" {if $admintab_conversion_unit == 'lbs'}selected="selected"{/if} >{l s='lbs' mod='squaremeter'}</option>
|
||||
<option id="weight" value="tn" {if $admintab_conversion_unit == 'tn'}selected="selected"{/if} >{l s='tn' mod='squaremeter'}</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
<small class="form-text">{l s='If you write 1 piece equals to 100 m2, the quantity field will be adjusted accordingly. To simply put, quantity will change 1 ea on every 100 m2 calculation. Ex: Width is entered 10 m. and height is entered 5 m., it makes 10x5 = 50 m2. It is roundedup to 100m2 and quantity field will be 1. If width is entered 10 m. and height is entered 20 m., it makes 10x20 = 200 m2, so the quantity will be 2.' mod='squaremeter'}</small>
|
||||
</div> {* Conversion Value Setup (Normal) *}
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;" id="attselect_attr"> {* Conversion Value Setup (Attribute) *}
|
||||
<div class="col-sm-4">
|
||||
<label>{l s='Attribute group name and attribute unit:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="attribute" name="attribute" data-toggle="attribute" data-minimumresultsforsearch="3" aria-hidden="true" onchange="checktest()">
|
||||
{foreach from=$admintab_attributesListProduct key=k item=attributes}
|
||||
<option value="{$attributes.id_attribute_group|escape:'htmlall':'UTF-8'}" {if ($admintab_attribute == $attributes.id_attribute_group)}selected="selected"{/if} >{$attributes.public_name|escape:'htmlall':'UTF-8'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control" id="attribute_unit" name="attribute_unit" data-toggle="attribute_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_attribute_unit == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option id="perimeter" value="in" {if $admintab_attribute_unit == 'in'}selected="selected"{/if} >{l s='in' mod='squaremeter'}</option>
|
||||
<option id="perimeter" value="ft" {if $admintab_attribute_unit == 'ft'}selected="selected"{/if} >{l s='ft' mod='squaremeter'}</option>
|
||||
<option id="perimeter" value="yd" {if $admintab_attribute_unit == 'yd'}selected="selected"{/if} >{l s='yd' mod='squaremeter'}</option>
|
||||
<option id="linear" value="in" {if $admintab_attribute_unit == 'in'}selected="selected"{/if} >{l s='in' mod='squaremeter'}</option>
|
||||
<option id="linear" value="ft" {if $admintab_attribute_unit == 'ft'}selected="selected"{/if} >{l s='ft' mod='squaremeter'}</option>
|
||||
<option id="linear" value="yd" {if $admintab_attribute_unit == 'yd'}selected="selected"{/if} >{l s='yd' mod='squaremeter'}</option>
|
||||
<option id="surface" value="in2" {if $admintab_attribute_unit == 'in2'}selected="selected"{/if} >{l s='in2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="ft2" {if $admintab_attribute_unit == 'ft2'}selected="selected"{/if} >{l s='ft2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="yd2" {if $admintab_attribute_unit == 'yd2'}selected="selected"{/if} >{l s='yd2' mod='squaremeter'}</option>
|
||||
<option id="surface" value="acre" {if $admintab_attribute_unit == 'acre'}selected="selected"{/if} >{l s='acre' mod='squaremeter'}</option>
|
||||
<option id="volume" value="in3" {if $admintab_attribute_unit == 'in3'}selected="selected"{/if} >{l s='in3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="ft3" {if $admintab_attribute_unit == 'ft3'}selected="selected"{/if} >{l s='ft3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="yd3" {if $admintab_attribute_unit == 'yd3'}selected="selected"{/if} >{l s='yd3' mod='squaremeter'}</option>
|
||||
<option id="volume" value="acre-feet" {if $admintab_attribute_unit == 'acre-feet'}selected="selected"{/if} >{l s='acre-feet' mod='squaremeter'}</option>
|
||||
<option id="weight" value="oz" {if $admintab_attribute_unit == 'oz'}selected="selected"{/if} >{l s='oz' mod='squaremeter'}</option>
|
||||
<option id="weight" value="lbs" {if $admintab_attribute_unit == 'lbs'}selected="selected"{/if} >{l s='lbs' mod='squaremeter'}</option>
|
||||
<option id="weight" value="tn" {if $admintab_attribute_unit == 'tn'}selected="selected"{/if} >{l s='tn' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</div>
|
||||
<small class="form-text">{l s='Please enter the attribute id number and the unit of the attribute for the calculated dimension to be converted.' mod='squaremeter'}</small>
|
||||
</div> {* Conversion Value Setup (Attribute) *}
|
||||
<p style="color:red;" id="errort7"></p>
|
||||
<p style="color:red;" id="errort"></p>
|
||||
<hr>
|
||||
<div class="form-row" id="direct_input_field"> {* Attribute Selection *}
|
||||
<label for="attselect">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="attselect" id="attselect" value="1" {if $admintab_attselect}checked{/if}>
|
||||
{l s='Use an attribute group for the conversion.' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='With the attribute conversion, you can enter as many conversion values as you want in condition, they are gathered under one attribute id.' mod='squaremeter'}</small>
|
||||
</div> {* Attribute Selection *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Second Conversion Option *}
|
||||
<label>{l s='Second Conversion Option:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-5">
|
||||
<label for="secconversionselect">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="secconversionselect" id="secconversionselect" value="1" {if $admintab_secconversionselect}checked{/if}>
|
||||
{l s='Use a second conversion step' mod='squaremeter'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-5" id="second_conversion">
|
||||
<label>{l s='1 piece (quantity) of first conversion unit equals to:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="secconversion" id="secconversion" size="10" value="{if isset($admintab_secconversion)}{$admintab_secconversion|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()" />
|
||||
</div>
|
||||
<small class="form-text">{l s='Description: You have different liters of color boxes like 1L, 4L, 8L. Each liters covers wall of 10 m2. Then the entered/calculated dimension of surface is divided by the box conversion (Ex:1,4,8) which is the primary conversion, then the coming result should be divided to the secondary conversion which is 10 to find the quantity needed. The conversion unit should be m2 in this example.' mod='squaremeter'}</small>
|
||||
</div>
|
||||
{* Second Conversion Option *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="pricingOptions" role="tabpanel">
|
||||
<div class="panel">
|
||||
<div class="form-row"> {* Total Price Display *}
|
||||
<label class="form-control-label" for="display_price">{l s='Total Price Display Options:' mod='squaremeter'}</label>
|
||||
<select class="form-control" id="display_price" name="display_price" data-toggle="display_price" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_dispprice == ''}selected="selected"{/if} >{l s='Please choose' mod='squaremeter'}</option>
|
||||
<option value="pricebutton" {if $admintab_dispprice == 'pricebutton'}selected="selected"{/if} >{l s='Native price is visible and total price with button click' mod='squaremeter'}</option>
|
||||
<option value="nopricebutton" {if $admintab_dispprice == 'nopricebutton'}selected="selected"{/if} >{l s='Native price is hidden and total price with button click' mod='squaremeter'}</option>
|
||||
<option value="pricetotalprice" {if $admintab_dispprice == 'pricetotalprice'}selected="selected"{/if} >{l s='Native price and total price are visible (Recommended)' mod='squaremeter'}</option>
|
||||
<option value="nopricetotalprice" {if $admintab_dispprice == 'nopricetotalprice'}selected="selected"{/if} >{l s='Native price is hidden and total price is visible' mod='squaremeter'}</option>
|
||||
<option value="pricenototalprice" {if $admintab_dispprice == 'pricenototalprice'}selected="selected"{/if} >{l s='(Normal) Native price is visible and no total price' mod='squaremeter'}</option>
|
||||
</select>
|
||||
<small class="form-text">{l s='Choose the appropriate one according to your case.' mod='squaremeter'}</small>
|
||||
</div> {* Total Price Display *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Custom Base Price *}
|
||||
<label for="reserve">{l s='Custom Base price:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="reserve" id="reserve" size="10" value="{if isset($admintab_reserve)}{$admintab_reserve|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
<small class="form-text">{l s='If the total price calculated is below the base price, the total price is equal to the base price. For example, if 1 m is $5 and the customer orders 2m, and if the base price is $20, then the calculated total will be $20 as 2 x 5 < 20. If empty, base price is ignored.' mod='squaremeter'}</small>
|
||||
</div> {* Custom Base Price *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Unit Price as Base Price *}
|
||||
<label for="unit_baseprice">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="unit_baseprice" id="unit_baseprice" value="1" {if $admintab_unit_baseprice == '1'}checked{/if}>
|
||||
{l s='Use Unit Price as Base Price' mod='squaremeter'}
|
||||
</label>
|
||||
<small class="form-text">{l s='If enabled, the unit price will be used as base price. If the total price calculated is below the unit price, the total price is equal to the unit price. For example, if 1 unit is $5 and the customer enters a dimension having a total price of $3, then the calculated total will be $5 as 3 < 5.' mod='squaremeter'}</small>
|
||||
</div> {* Unit Price as Starting Price *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Starting Price *}
|
||||
<label for="startingprice">{l s='Starting price:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="startingprice" id="startingprice" size="10" value="{if isset($admintab_startingprice)}{$admintab_startingprice|escape:'htmlall':'UTF-8'}{/if}"/>
|
||||
<small class="form-text">{l s='The calculated price will start from the starting price. For example, if 1 ft is $5 and the customer orders 2 ft, and if the starting price is $10, then the calculated total will be 10 + 2 x 5 = $20. If empty, starting price is ignored.' mod='squaremeter'}</small>
|
||||
</div> {* Starting Price *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Extra Fee Option *}
|
||||
<label>{l s='Extra Fee:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-5">
|
||||
<label for="extrafee_select">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="extrafee_select" id="extrafee_select" value="1" {if $admintab_extrafee_select}checked{/if}>
|
||||
{l s='If checked, extra fee option will be visible.' mod='squaremeter'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" class="form-control edit" name="displayextrafee" id="displayextrafee" size="10" value="{if isset($admintab_extrafee)}{$admintab_extrafee|escape:'htmlall':'UTF-8'}{/if}" placeholder="{l s='Fee Value' mod='squaremeter'}"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='The stated extra fee will be added to the total price, if the checkbox is selected by the customer.' mod='squaremeter'}</small>
|
||||
</div> {* Extra Fee Option *}
|
||||
<hr>
|
||||
<div class="form-row"> {* Waste Percentage Option *}
|
||||
<label>{l s='Waste Percentage Increase Option:' mod='squaremeter'}</label>
|
||||
</div>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-6">
|
||||
<label for="waste_select">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="waste_select" id="waste_select" value="1" {if $admintab_waste_select}checked{/if}>
|
||||
{l s='If checked, percentage increase for waste option will be visible.' mod='squaremeter'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-4 input-group">
|
||||
<input type="text" class="form-control edit" name="displaywaste" id="displaywaste" size="10" value="{if isset($admintab_waste)}{$admintab_waste|escape:'htmlall':'UTF-8'}{/if}" placeholder="{l s='Waste Percentage Amount:' mod='squaremeter'}"/>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">%</span>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='The stated percentage will be added to the total dimension for the waste, if the checkbox is selected by the customer.' mod='squaremeter'}</small>
|
||||
</div> {* Waste Percentage Option *}
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" id="minMaxLimits" role="tabpanel">
|
||||
<div class="panel">
|
||||
{* Height Settings *}
|
||||
<fieldset id="height" style="border:none;">
|
||||
<p>{l s='Height Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_height">{l s='Min. Height Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_height" id="minimum_height" size="10" value="{if isset($admintab_minheight)}{$admintab_minheight|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_height">{l s='Max. Height Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_height" id="maximum_height" size="10" value="{if isset($admintab_maxheight)}{$admintab_maxheight|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_height_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_height_unit" id="maximum_height_unit" data-toggle="maximum_height_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxheight_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="in" {if $admintab_maxheight_unit == 'in'}selected="selected"{/if} >{l s='in' mod='squaremeter'}</option>
|
||||
<option value="ft" {if $admintab_maxheight_unit == 'ft'}selected="selected"{/if} >{l s='ft' mod='squaremeter'}</option>
|
||||
<option value="yd" {if $admintab_maxheight_unit == 'yd'}selected="selected"{/if} >{l s='yd' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="step_height">{l s='Height Step Value:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step_height" id="step_height" size="10" value="{if isset($step_height)}{$step_height|escape:'htmlall':'UTF-8'}{/if}" onchange="checkstep_height()"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='If a step value is entered, this value will be used for the input field instead of the global step value. Leave it empty to use the global step value.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_heightcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="heightcheck" id="_heightcheck" value="1" {if $admintab_heightcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="height_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort1"></p>
|
||||
<p style="color:red;" id="errort1_"></p>
|
||||
<p style="color:red;" id="error_height"></p>
|
||||
<p style="color:red;" id="error_step_height"></p>
|
||||
<hr>
|
||||
</fieldset>
|
||||
{* Height Settings *}
|
||||
|
||||
{* Width Settings *}
|
||||
<fieldset id="width" style="border:none;">
|
||||
<p>{l s='Width Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_width">{l s='Min. Width Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_width" id="minimum_width" size="10" value="{if isset($admintab_minwidth)}{$admintab_minwidth|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_width">{l s='Max. Width Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_width" id="maximum_width" size="10" value="{if isset($admintab_maxwidth)}{$admintab_maxwidth|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_width_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_width_unit" id="maximum_width_unit" data-toggle="maximum_width_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxwidth_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="in" {if $admintab_maxwidth_unit == 'in'}selected="selected"{/if} >{l s='in' mod='squaremeter'}</option>
|
||||
<option value="ft" {if $admintab_maxwidth_unit == 'ft'}selected="selected"{/if} >{l s='ft' mod='squaremeter'}</option>
|
||||
<option value="yd" {if $admintab_maxwidth_unit == 'yd'}selected="selected"{/if} >{l s='yd' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="step_width">{l s='Width Step Value:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step_width" id="step_width" size="10" value="{if isset($step_width)}{$step_width|escape:'htmlall':'UTF-8'}{/if}" onchange="checkstep_width()"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='If a step value is entered, this value will be used for the input field instead of the global step value. Leave it empty to use the global step value.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_widthcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="widthcheck" id="_widthcheck" value="1" {if $admintab_widthcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="width_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort2"></p>
|
||||
<p style="color:red;" id="errort2_"></p>
|
||||
<p style="color:red;" id="error_width"></p>
|
||||
<p style="color:red;" id="error_step_width"></p>
|
||||
<hr>
|
||||
</fieldset>
|
||||
{* Width Settings *}
|
||||
|
||||
{* Depth Settings *}
|
||||
<fieldset id="depth" style="border:none;">
|
||||
<p>{l s='Depth Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_depth">{l s='Min. Depth Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_depth" id="minimum_depth" size="10" value="{if isset($admintab_mindepth)}{$admintab_mindepth|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_depth">{l s='Max. Depth Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_depth" id="maximum_depth" size="10" value="{if isset($admintab_maxdepth)}{$admintab_maxdepth|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_depth_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_depth_unit" id="maximum_depth_unit" data-toggle="maximum_depth_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxdepth_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="in" {if $admintab_maxdepth_unit == 'in'}selected="selected"{/if} >{l s='in' mod='squaremeter'}</option>
|
||||
<option value="ft" {if $admintab_maxdepth_unit == 'ft'}selected="selected"{/if} >{l s='ft' mod='squaremeter'}</option>
|
||||
<option value="yd" {if $admintab_maxdepth_unit == 'yd'}selected="selected"{/if} >{l s='yd' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="step_depth">{l s='Depth Step Value:' mod='squaremeter'}</label>
|
||||
<input type="text" class="form-control edit" name="step_depth" id="step_depth" size="10" value="{if isset($step_depth)}{$step_depth|escape:'htmlall':'UTF-8'}{/if}" onchange="checkstep_depth()"/>
|
||||
</div>
|
||||
<small class="form-text">{l s='If a step value is entered, this value will be used for the input field instead of the global step value. Leave it empty to use the global step value.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_depthcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="depthcheck" id="_depthcheck" value="1" {if $admintab_depthcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="depth_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort4"></p>
|
||||
<p style="color:red;" id="errort5_"></p>
|
||||
<p style="color:red;" id="error_depth"></p>
|
||||
<p style="color:red;" id="error_step_depth"></p>
|
||||
</fieldset>
|
||||
{* Depth Settings *}
|
||||
{* Weight Settings *}
|
||||
<fieldset id="weight" style="border:none;">
|
||||
<p>{l s='Weight Limits' mod='squaremeter'}</p>
|
||||
<div class="form-row align-items-center" style="display:flex;padding-top:5px;padding-bottom:5px;">
|
||||
<div class="col-sm-3">
|
||||
<label for="minimum_weight">{l s='Min. Weight Value (Ex: 1):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="minimum_weight" id="minimum_weight" size="10" value="{if isset($admintab_minweight)}{$admintab_minweight|escape:'html':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_weight">{l s='Max. Weight Value (Ex: 20):' mod='squaremeter'}
|
||||
<input type="text" class="form-control edit" name="maximum_weight" id="maximum_weight" size="10" value="{if isset($admintab_maxweight)}{$admintab_maxweight|escape:'htmlall':'UTF-8'}{/if}" onchange="checktest()"/>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<label for="maximum_weight_unit">{l s='Unit:' mod='squaremeter'}
|
||||
<select class="form-control" name="maximum_weight_unit" id="maximum_weight_unit" data-toggle="maximum_weight_unit" data-minimumresultsforsearch="3" aria-hidden="true">
|
||||
<option value="" {if $admintab_maxweight_unit == ''}selected="selected"{/if} >{l s='Please choose unit' mod='squaremeter'}</option>
|
||||
<option value="oz" {if $admintab_maxweight_unit == 'oz'}selected="selected"{/if} >{l s='oz' mod='squaremeter'}</option>
|
||||
<option value="lbs" {if $admintab_maxweight_unit == 'lbs'}selected="selected"{/if} >{l s='lbs' mod='squaremeter'}</option>
|
||||
<option value="tn" {if $admintab_maxweight_unit == 'tn'}selected="selected"{/if} >{l s='tn' mod='squaremeter'}</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text">{l s='Customer will not be allowed to increase or decrease the applet\'s value above/below the limits.' mod='squaremeter'}</small>
|
||||
<div class="form-row">
|
||||
<label for="_weightcheck">
|
||||
<input data-toggle="switch" class="" data-inverse="true" type="checkbox" name="weightcheck" id="_weightcheck" value="1" {if $admintab_weightcheck == '1'}checked{/if}>
|
||||
{l s='Use Dropdown box' mod='squaremeter'}
|
||||
</label>
|
||||
<div class="warning-feedback" id="weight_dropdown_warning"></div>
|
||||
</div>
|
||||
<small class="form-text">{l s='If checked, select options in between min. and max. values are generated using the step values.' mod='squaremeter'}</small>
|
||||
<p style="color:red;" id="errort8"></p>
|
||||
<p style="color:red;" id="error_weight"></p>
|
||||
</fieldset>
|
||||
{* Weight Settings *}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if ($psversion > '1.6.0.0') && ($psversion < '1.7.0.0')}
|
||||
<div class="separation"></div>
|
||||
<div class="clear"> </div>
|
||||
<div class="panel-footer"> <a href="{$link->getAdminLink('AdminProducts')|escape:'htmlall':'UTF-8'}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel' mod='squaremeter'}</a>
|
||||
<button type="submit" name="submitAddproduct" id="desc-product-save" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save' mod='squaremeter'}</button>
|
||||
<button type="submit" name="submitAddproductAndStay" id="desc-product-save-and-stay" class="btn btn-default pull-right"><i class="process-icon-save"></i> {l s='Save and stay' mod='squaremeter'}</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript" src="{$module_dir|escape:'html':'UTF-8'}views/js/product_admin_e.js"></script>
|
||||
<script>
|
||||
$(window).on('load', function(){
|
||||
calc_type();
|
||||
var IsChecked = $('input[name="attselect"]:checked').length > 0;
|
||||
if (IsChecked)
|
||||
checktest4();
|
||||
else
|
||||
checktest3();
|
||||
{if $admintab_attselect}
|
||||
$('#attselect').attr('checked', true);
|
||||
{else}
|
||||
$('#attselect').attr('checked', false);
|
||||
{/if}
|
||||
{if $admintab_secconversionselect}
|
||||
$('#secconversionselect').attr('checked', true);
|
||||
{else}
|
||||
$('#secconversionselect').attr('checked', false);
|
||||
{/if}
|
||||
checkconversion();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.image-preview {
|
||||
width:100px;
|
||||
height:auto;
|
||||
}
|
||||
.col-sm-6, .col-sm-5, .col-sm-4, .col-sm-3 {
|
||||
float:left;
|
||||
}
|
||||
.form-group {
|
||||
display:grid;
|
||||
}
|
||||
.form-row {
|
||||
margin-right: 10px;
|
||||
}
|
||||
#myTab {
|
||||
left:0;
|
||||
}
|
||||
.panel {
|
||||
overflow:auto;
|
||||
overflow-x:hidden;
|
||||
padding-left:10px;
|
||||
padding-top:2px;
|
||||
}
|
||||
.tab-pane {
|
||||
overflow:auto;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
.product-page .nav-tabs {
|
||||
height: 3.625rem;
|
||||
width: unset;
|
||||
}
|
||||
</style>
|
||||
<!-- Square Meter Calculation Module -->
|
||||
124
modules/squaremeter/views/templates/admin/exportimport.tpl
Normal file
124
modules/squaremeter/views/templates/admin/exportimport.tpl
Normal file
@@ -0,0 +1,124 @@
|
||||
{*
|
||||
* Module Name: Perimeter / Length / Surface (Area) / Volume / Weight Calculator for Prestashop
|
||||
* Module URI: Please contact with info@megventure.com
|
||||
* Description: A utility to calculate quantity in perimeter, length, area, volume or weight units
|
||||
* Version: 5.5.1
|
||||
* Author: MEG Venture
|
||||
*
|
||||
* Copyright 2013, MEG Venture (info@megventure.com)
|
||||
*
|
||||
* This program is not a free software: you can't redistribute it and/or modify
|
||||
* it. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This copyright notice and licence should be retained in all modules based on this framework.
|
||||
* This does not affect your rights to assert copyright over your own original work.
|
||||
*}
|
||||
|
||||
<div class="panel">
|
||||
<h3><i class="icon icon-folder-open-alt"></i> {l s='Mass Update and Documents' mod='squaremeter'}</h3>
|
||||
<div class="alert alert-info" role="alert">
|
||||
<p class="alert-text">{l s='You can add surface/volume/length/perimeter/weight applet to the selected products at once. All previous entries will be replaced. To do this, Please export a sample CSV file first. By playing on this, import the CSV. If you need help for CSV file creation, click on the import CSV to MySQL button.' mod='squaremeter'}</p>
|
||||
</div>
|
||||
<fieldset class="field_container align_right">
|
||||
<span class="import"
|
||||
onclick="show_popup('popup_upload')">{l s='Import CSV to MySQL' mod='squaremeter'}</span>
|
||||
<a href="{$path|escape:'htmlall':'UTF-8'}modules/squaremeter/controllers/admin/export.php" class="export">{l s='Export from MySQL to CSV' mod='squaremeter'}</a>
|
||||
</fieldset>
|
||||
<p>
|
||||
» {l s='You can get a PDF documentation to configure this module' mod='squaremeter'} :
|
||||
<ul>
|
||||
<li><a href="../modules/squaremeter/libs/readme_nl.pdf" target="_blank">{l s='Dutch' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_en.pdf" target="_blank">{l s='English' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_fr.pdf" target="_blank">{l s='French' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_de.pdf" target="_blank">{l s='German' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_it.pdf" target="_blank">{l s='Italian' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_pl.pdf" target="_blank">{l s='Polish' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_pl.pdf" target="_blank">{l s='Portuguese' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_es.pdf" target="_blank">{l s='Spanish' mod='squaremeter'}</a></li>
|
||||
<li><a href="../modules/squaremeter/libs/readme_tr.pdf" target="_blank">{l s='Turkish' mod='squaremeter'}</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- The popup for upload a csv file -->
|
||||
<div id="popup_upload">
|
||||
<div class="form_upload">
|
||||
<span class="close" onclick="close_popup('popup_upload')">x</span>
|
||||
<h2>{l s='Upload CSV file' mod='squaremeter'}</h2>
|
||||
<form action="{$path|escape:'htmlall':'UTF-8'}modules/squaremeter/controllers/admin/import.php" method="post" enctype="multipart/form-data" target="_blank">
|
||||
<input type="file" name="csv_file" id="csv_file" class="file_input">
|
||||
<input value="{l s='Quick help' mod='squaremeter'}" id="help_btn" data-toggle="modal" data-target="#myModal" style="width:90px;">
|
||||
<input type="submit" value="{l s='Upload file' mod='squaremeter'}" id="upload_btn" onclick="close_popup('popup_upload')">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" 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" id="myModalLabel">{l s='IMPORTING INSTRUCTIONS' mod='squaremeter'}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>{l s='1. Please be sure that you have backed-up the ps_squaremeteradmin table.' mod='squaremeter'}</p>
|
||||
<p>{l s='2. You can have a sample CSV file by clicking to the \'Export from MySQL to CSV\' button.' mod='squaremeter'}</p>
|
||||
<p>{l s='3. CSV file data should be separated by commas.' mod='squaremeter'}</p>
|
||||
<p>{l s='4. Document shape should be UNIX and encoding should be UTF-8 without BOM.' mod='squaremeter'}</p>
|
||||
<p>{l s='5. id_shop: The shop id to which the product will be configured (integer and manadatory). Use 1 if you do not have multistore.' mod='squaremeter'}</p>
|
||||
<p>{l s='6. id_product: The product id to which the dimensions will be added (integer and mandatory).' mod='squaremeter'}</p>
|
||||
<p>{l s='7. displaycalculator: 1/empty to display the applet on the product page.' mod='squaremeter'}</p>
|
||||
<p>{l s='8. displaypicture: 1/empty to display the hint picture on the dimension applet.' mod='squaremeter'}</p>
|
||||
<p>{l s='9. calculationtype: surface/volume/linear/perimeter/weight type of the applet' mod='squaremeter'}</p>
|
||||
<p>{l s='10. additionalquantity: 1/empty to display the additional quantity field on the dimension applet.' mod='squaremeter'}</p>
|
||||
<p>{l s='11. directinput: 1/empty, if enabled, the final total is asked from the customer, instead of entering the dimensions and calculation the required total.' mod='squaremeter'}</p>
|
||||
<p>{l s='12. displayquantity: decimalok/onevisible/oneinvisible/calcvisible/calcinvisible/onewithcalcvisible/onewithcalcinvisible order quantity display and price calculation options' mod='squaremeter'}</p>
|
||||
<p>{l s='13. displayprice: pricebutton/nopricebutton/pricetotalprice/nopricetotalprice/pricenototalprice total price display options' mod='squaremeter'}</p>
|
||||
<p>{l s='14. displayreserve: Base price with no currency if available (Ex: 20)' mod='squaremeter'}</p>
|
||||
<p>{l s='15. unit_baseprice: This is a checkbox 1/empty, if the unit price will be used as base price, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='16. displaystartingprice: Starting price with no currency if available (Ex: 20)' mod='squaremeter'}</p>
|
||||
<p>{l s='17. displayextrafee: Extra fee option to be added onto the total cost (Ex: 20)' mod='squaremeter'}</p>
|
||||
<p>{l s='18. displayextrafeeselect: This is a checkbox 1/empty, if extra fee option will be used, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='19. displaywaste: Percentage increase amount which will be added on the total dimension (Ex: 10)' mod='squaremeter'}</p>
|
||||
<p>{l s='20. displaywasteselect: This is a checkbox 1/empty, if waste increase option will be used, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='21. conversion: Conversion value (Ex: 1)' mod='squaremeter'}</p>
|
||||
<p>{l s='22. secconversionselect: This is a checkbox 1/empty, if second conversion scheme will be used, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='23. secconversion: Conversion value (Ex: 10)' mod='squaremeter'}</p>
|
||||
<p>{l s='24. conversionunit: Conversion unit based on the calculation type selected (Ex: m)' mod='squaremeter'}</p>
|
||||
<p>{l s='25. attribute: Integer attribute id for the conversion (Ex: 4)' mod='squaremeter'}</p>
|
||||
<p>{l s='26. attributeunit: Attribute unit based on the calculation type selected (Ex: m2)' mod='squaremeter'}</p>
|
||||
<p>{l s='27. step: When the customer clicks on the up/down buttons, the value will be changed by the step value. (Ex: 0.5)' mod='squaremeter'}</p>
|
||||
<p>{l s='28. disableapplet: 1/empty to display the "close calculator and use standard quantity" checkbox on the product page.' mod='squaremeter'}</p>
|
||||
<p>{l s='29. allow_ordering_from_listing: 1/empty to allow ordering from product listing pages.' mod='squaremeter'}</p>
|
||||
<p>{l s='30. attselect: This is a checkbox 1/empty, if attribute conversion will be used, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='31. minheight: (Integer) Minimum height value (Ex: 0)' mod='squaremeter'}</p>
|
||||
<p>{l s='32. maxheight: (Integer) Maximum height value (Ex: 99999)' mod='squaremeter'}</p>
|
||||
<p>{l s='33. maxheightunit: Height unit based on the calculation type selected (Ex: m)' mod='squaremeter'}</p>
|
||||
<p>{l s='34. heightcheck: This is a checkbox 1/empty, if dropdown box will be used to enter dimensions, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='35. step_height: When the customer clicks on the up/down buttons, the value will be changed by the height step value. If empty, global step value is used. (Ex: 0.5)' mod='squaremeter'}</p>
|
||||
<p>{l s='36. minwidth: (Integer) Minimum width value (Ex: 0)' mod='squaremeter'}</p>
|
||||
<p>{l s='37. maxwidth: (Integer) Maximum width value (Ex: 99999)' mod='squaremeter'}</p>
|
||||
<p>{l s='38. maxwidthunit: Width unit based on the calculation type selected (Ex: m)' mod='squaremeter'}</p>
|
||||
<p>{l s='39. widthcheck: This is a checkbox 1/empty, if dropdown box will be used to enter dimensions, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='40. step_width: When the customer clicks on the up/down buttons, the value will be changed by the width step value. If empty, global step value is used. (Ex: 0.5)' mod='squaremeter'}</p>
|
||||
<p>{l s='41. mindepth: (Integer) Minimum depth value (Ex: 0)' mod='squaremeter'}</p>
|
||||
<p>{l s='42. maxdepth: (Integer) Maximum depth value (Ex: 99999)' mod='squaremeter'}</p>
|
||||
<p>{l s='43. maxdepthunit: Depth unit based on the calculation type selected (Ex: m)' mod='squaremeter'}</p>
|
||||
<p>{l s='44. depthcheck: This is a checkbox 1/empty, if dropdown box will be used to enter dimensions, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='45. step_depth: When the customer clicks on the up/down buttons, the value will be changed by the depth step value. If empty, global step value is used. (Ex: 0.5)' mod='squaremeter'}</p>
|
||||
<p>{l s='46. minweight: (Integer) Minimum weight value (Ex: 0)' mod='squaremeter'}</p>
|
||||
<p>{l s='47. maxweight: (Integer) Maximum weight value (Ex: 99999)' mod='squaremeter'}</p>
|
||||
<p>{l s='48. maxweightunit: Weight unit based on the calculation type selected (Ex: kg)' mod='squaremeter'}</p>
|
||||
<p>{l s='49. weightcheck: This is a checkbox 1/empty, if dropdown box will be used to enter dimensions, it should be 1, empty otherwise.' mod='squaremeter'}</p>
|
||||
<p>{l s='50. ratio: Integer delimeted with colon. Not mandatory, leave it blank if not required. Valid only applet having more than 1 dimensions like surface, volume and perimeter. If direct input is used, ratio is cancelled. Ratios cannot be decimal, but integer. If a ratio is entered, the dimensions are set based on the ratio delimited by colon. For example, a ratio of 3:2 for the surface applet means, 3 times Height requires 2 times Width (3x2). Surface H:W, Volume H:W:D, Perimeter H:W.' mod='squaremeter'}</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-tertiary-outline btn-lg" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* Module Name: Perimeter / Length / Surface (Area) / Volume / Weight Calculator for Prestashop
|
||||
* Module URI: Please contact with info@megventure.com
|
||||
* Description: A utility to calculate quantity in perimeter, length, area, volume or weight units
|
||||
* Version: 5.5.1
|
||||
* Author: MEG Venture
|
||||
*
|
||||
* Copyright 2013, MEG Venture (info@megventure.com)
|
||||
*
|
||||
* This program is not a free software: you can't redistribute it and/or modify
|
||||
* it. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This copyright notice and licence should be retained in all modules based on this framework.
|
||||
* This does not affect your rights to assert copyright over your own original work.
|
||||
*}
|
||||
|
||||
<p>{l s='Something went wrong. Please read the quick help and try again.' mod='squaremeter'}</p>
|
||||
<p><input type="button" value="Close this window" onclick="self.close()"></p>
|
||||
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* Module Name: Perimeter / Length / Surface (Area) / Volume / Weight Calculator for Prestashop
|
||||
* Module URI: Please contact with info@megventure.com
|
||||
* Description: A utility to calculate quantity in perimeter, length, area, volume or weight units
|
||||
* Version: 5.5.1
|
||||
* Author: MEG Venture
|
||||
*
|
||||
* Copyright 2013, MEG Venture (info@megventure.com)
|
||||
*
|
||||
* This program is not a free software: you can't redistribute it and/or modify
|
||||
* it. All rights reserved.
|
||||
*
|
||||
*
|
||||
* This copyright notice and licence should be retained in all modules based on this framework.
|
||||
* This does not affect your rights to assert copyright over your own original work.
|
||||
*}
|
||||
|
||||
<p>{l s='CSV file is imported successfully.' mod='squaremeter'}</p>
|
||||
<p><input type="button" value="Close this window" onclick="self.close()"></p>
|
||||
63
modules/squaremeter/views/templates/admin/import/index.php
Normal file
63
modules/squaremeter/views/templates/admin/import/index.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
|
||||
* 2007-2021 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-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;
|
||||
29
modules/squaremeter/views/templates/admin/index.php
Normal file
29
modules/squaremeter/views/templates/admin/index.php
Normal file
@@ -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