124 lines
11 KiB
Smarty
124 lines
11 KiB
Smarty
{*
|
|
* 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.0
|
|
* 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> |