first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/OSL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../../../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/OSL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../../../../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,146 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/OSL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||||
*}
|
||||
{extends file="helpers/view/view.tpl"}
|
||||
{block name="override_tpl"}
|
||||
<script type="text/javascript">
|
||||
var errorEmpty = '{l s='Please name your data matching configuration in order to save it.' js=1}';
|
||||
var current = 0;
|
||||
function showTable(nb) {
|
||||
$('#btn_left').disabled = null;
|
||||
$('#btn_right').disabled = null;
|
||||
if (nb <= 0) {
|
||||
nb = 0;
|
||||
$('#btn_left').disabled = 'true';
|
||||
}
|
||||
if (nb >= {$nb_table} - 1) {
|
||||
nb = {$nb_table} - 1;
|
||||
$('#btn_right').disabled = 'true';
|
||||
}
|
||||
$('#table' + current).hide();
|
||||
current = nb;
|
||||
$('#table' + current).show();
|
||||
}
|
||||
$(document).ready(function() {
|
||||
var btn_save_import = $('span[class~="process-icon-save-import"]').parent();
|
||||
var btn_submit_import = $('#import');
|
||||
if (btn_save_import.length > 0 && btn_submit_import.length > 0) {
|
||||
btn_submit_import.closest('.form-group').hide();
|
||||
btn_save_import.find('span').removeClass('process-icon-save-import');
|
||||
btn_save_import.find('span').addClass('process-icon-save');
|
||||
btn_save_import.click(function(){
|
||||
btn_submit_import.before('<input type="hidden" name="' + btn_submit_import.attr("name") + '" value="1" />');
|
||||
$('#import_form').submit();
|
||||
});
|
||||
}
|
||||
showTable(current);
|
||||
});
|
||||
</script>
|
||||
<div id="container-customer" class="panel">
|
||||
<h3><i class="icon-list-alt"></i> {l s='Match your data'}</h3>
|
||||
<div class="alert alert-info">
|
||||
<p>{l s='Please match each column of your source file to one of the destination columns.'}</p>
|
||||
</div>
|
||||
<div class="form-horizontal">
|
||||
<div class="form-group" {if !$import_matchs}style="display:none"{/if}>
|
||||
<label class="control-label col-lg-3">{l s='Load a data matching configuration'}</label>
|
||||
<div id="selectDivImportMatchs" class="col-lg-7">
|
||||
<select id="valueImportMatchs">
|
||||
{foreach $import_matchs as $match}
|
||||
<option id="{$match.id_import_match}" value="{$match.match}">{$match.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
<a id="loadImportMatchs" href="#" class="btn btn-default"><i class="icon-cogs"></i> {l s='Load'}</a>
|
||||
<a id="deleteImportMatchs" href="#" class="btn btn-default"><i class="icon-remove"></i> {l s='Delete' d='Admin.Actions'}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="newImportMatchs">{l s='Save your data matching configuration'}</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" name="newImportMatchs" id="newImportMatchs" />
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
<a id="saveImportMatchs" class="btn btn-default" href="#"><i class="icon-save"></i> {l s='Save' d='Admin.Actions'}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="error_duplicate_type" class="alert alert-warning" style="display:none;">
|
||||
{l s='Two columns cannot have the same type of values'}
|
||||
</div>
|
||||
<div id="required_column" class="alert alert-warning" style="display:none;">
|
||||
{l s='This column must be set:'} <span id="missing_column"> </span>
|
||||
</div>
|
||||
<form action="{$current|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}" method="post" id="import_form" name="import_form" class="form-horizontal">
|
||||
<input type="hidden" name="csv" value="{$fields_value.csv}" />
|
||||
<input type="hidden" name="regenerate" value="{$fields_value.regenerate}" />
|
||||
<input type="hidden" name="entity" value="{$fields_value.entity}" />
|
||||
<input type="hidden" name="iso_lang" value="{$fields_value.iso_lang}" />
|
||||
<input type="hidden" name="sendemail" value="{$fields_value.sendemail}" />
|
||||
{if $fields_value.truncate}
|
||||
<input type="hidden" name="truncate" value="1" />
|
||||
{/if}
|
||||
{if $fields_value.forceIDs}
|
||||
<input type="hidden" name="forceIDs" value="1" />
|
||||
{/if}
|
||||
{if $fields_value.match_ref}
|
||||
<input type="hidden" name="match_ref" value="1" />
|
||||
{/if}
|
||||
<input type="hidden" name="separator" value="{$fields_value.separator}" />
|
||||
<input type="hidden" name="multiple_value_separator" value="{$fields_value.multiple_value_separator}" />
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="skip">{l s='Rows to skip'}</label>
|
||||
<div class="col-lg-9">
|
||||
<input class="fixed-width-sm" type="text" name="skip" id="skip" value="1" />
|
||||
<p class="help-block">{l s='Indicate how many of the first rows of your file should be skipped when importing the data. For instance set it to 1 if the first row of your file contains headers.'}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-12">
|
||||
{section name=nb_i start=0 loop=$nb_table step=1}
|
||||
{assign var=i value=$smarty.section.nb_i.index}
|
||||
{$data.$i}
|
||||
{/section}
|
||||
<button id="btn_left" type="button" class="btn btn-default pull-left" onclick="showTable(current - 1);">
|
||||
<i class="icon-chevron-sign-left"></i>
|
||||
</button>
|
||||
<button id="btn_right" type="button" class="btn btn-default pull-right" onclick="showTable(current + 1);">
|
||||
<i class="icon-chevron-sign-right"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<button type="button" class="btn btn-default" onclick="window.history.back();">
|
||||
<i class="process-icon-cancel text-danger"></i>
|
||||
{l s='Cancel' d='Admin.Actions'}
|
||||
</button>
|
||||
<button id="import" name="import" type="submit" onclick="return (validateImportation(new Array({$res})));" class="btn btn-default pull-right">
|
||||
<i class="process-icon-ok text-success"></i>
|
||||
{l s='Import' d='Admin.Actions'}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/OSL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../../../../');
|
||||
exit;
|
||||
@@ -0,0 +1,112 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/OSL-3.0
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||||
*
|
||||
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
||||
*}
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning" id="import_details_stop" style="display:none;">
|
||||
{l s="Aborting, please wait..." d="Admin.Advparameters.Notification"}
|
||||
</div>
|
||||
<p id="import_details_progressing">
|
||||
{l s="Importing your data..." d="Admin.Advparameters.Notification"}
|
||||
</p>
|
||||
<div class="alert alert-success" id="import_details_finished" style="display:none;">
|
||||
{l s="Data imported!" d="Admin.Advparameters.Notification"}
|
||||
<br/>
|
||||
{l s="Look at your listings to make sure it's all there as you wished." d="Admin.Advparameters.Notification"}
|
||||
</div>
|
||||
<div id="import_messages_div" style="max-height:250px; overflow:auto;">
|
||||
<div class="alert alert-danger" id="import_details_error" style="display:none;">
|
||||
{l s="Errors occurred:" d="Admin.Advparameters.Notification"}<br/><ul></ul>
|
||||
</div>
|
||||
<div class="alert alert-warning" id="import_details_post_limit" style="display:none;">
|
||||
{l s="Warning, the current import may require a PHP setting update, to allow more data to be transferred. If the current import stops before the end, you should increase your PHP \"post_max_size\" setting to [1]%size%[/1]MB at least, and try again." sprintf=[
|
||||
'[1]' => '<span id="import_details_post_limit_value">',
|
||||
'%size%' => '16MB',
|
||||
'[/1]' => '</span>'
|
||||
] d="Admin.Advparameters.Notification"}
|
||||
</div>
|
||||
<div class="alert alert-warning" id="import_details_warning" style="display:none;">
|
||||
{l s="Some errors were detected. Please check the details:" d="Admin.Advparameters.Notification"}<br/><ul></ul>
|
||||
</div>
|
||||
<div class="alert alert-info" id="import_details_info" style="display:none;">
|
||||
{l s="We made the following adjustments:" d="Admin.Advparameters.Notification"}<br/><ul></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="import_validate_div" style="margin-top:17px;">
|
||||
<div class="pull-right" id="import_validation_details" default-value="{l s="Validating data..." d="Admin.Advparameters.Notification"}">
|
||||
|
||||
</div>
|
||||
<div class="progress active progress-striped" style="display: block; width: 100%">
|
||||
<div class="progress-bar progress-bar-info" role="progressbar" style="width: 0%" id="validate_progressbar_done">
|
||||
<span>{l s="[1]%percentage%[/1]% validated" sprintf=[
|
||||
'[1]' => '<span id="validate_progression_done">',
|
||||
'%percentage%' => '0',
|
||||
'[/1]' => '</span>'
|
||||
] d="Admin.Advparameters.Notification"}
|
||||
</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-info" role="progressbar" id="validate_progressbar_next" style="opacity: 0.5 ;width: 0%">
|
||||
<span class="sr-only">{l s="Processing next page..." d="Admin.Advparameters.Notification"}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="import_progress_div" style="display:none;">
|
||||
<div class="pull-right" id="import_progression_details" default-value="{l s="Importing your data..." d="Admin.Advparameters.Notification"}">
|
||||
|
||||
</div>
|
||||
<div class="progress active progress-striped" style="display: block; width: 100%">
|
||||
<div class="progress-bar progress-bar-info" role="progressbar" style="width: 0%" id="import_progressbar_done2">
|
||||
<span>{l s="Linking accessories..." d="Admin.Advparameters.Notification"}</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" style="width: 0%" id="import_progressbar_done">
|
||||
<span>{l s="[1]%size%[/1]% imported" sprintf=[
|
||||
'[1]' => '<span id="import_progression_done">',
|
||||
'%size%' => '0',
|
||||
'[/1]' => '</span>'
|
||||
] d="Admin.Advparameters.Notification"}
|
||||
</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-success progress-bar-stripes active" role="progressbar" id="import_progressbar_next" style="opacity: 0.5 ;width: 0%">
|
||||
<span class="sr-only">{l s="Processing next page..." d="Admin.Advparameters.Notification"}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="input-group pull-right">
|
||||
<button type="button" class="btn btn-primary" tabindex="-1" id="import_continue_button" style="display: none;">
|
||||
{l s="Ignore warnings and continue?" d="Admin.Advparameters.Notification"}
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-default" tabindex="-1" id="import_stop_button">
|
||||
{l s="Abort import" d="Admin.Advparameters.Notification"}
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal" tabindex="-1" id="import_close_button" style="display: none;">
|
||||
{l s="Close" d="Admin.Actions"}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user