{#** * 2007-2018 PrestaShop * * 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.txt. * 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 http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2018 PrestaShop SA * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *#} {% import '@PrestaShop/Admin/macros.html.twig' as ps %} {% trans_default_domain 'Admin.Advparameters.Feature' %} {{ form_start(importForm, {'attr': { 'data-file-upload-url': importFileUploadUrl, 'data-delete-confirm-message': ('Are you sure that you would like to delete this entity:'|trans({}, 'Admin.Advparameters.Notification')), 'class': 'js-import-form' }}) }}

import_export {{ 'Import'|trans({}, 'Admin.Actions') }}


{{ form_errors(importForm.entity) }} {{ form_widget(importForm.entity, {'attr': {'class': 'js-entity-select'}}) }}

{{ form_errors(importForm.csv) }} {{ form_widget(importForm.csv, {'attr': {'class': 'js-import-file-input'}}) }}
{{ form_errors(importForm.file) }} {{ form_widget(importForm.file, {'attr': {'class': 'js-import-file', 'data-max-file-upload-size': maxFileUploadSize }}) }} {{ 'or'|trans({}, 'Admin.Global') }} {{ 'Allowed formats: .csv, .xls, .xlsx, .xlst, .ods, .ots'|trans({}, 'Admin.Advparameters.Help') }} {{ 'Only UTF-8 and ISO 8859-1 encodings are allowed'|trans({}, 'Admin.Advparameters.Help') }} {{ 'You can also upload your file via FTP to the following directory: %s .'|trans({'%s': importDirectory}, 'Admin.Advparameters.Help') }}
{% block import_file_history_block %} {% include '@PrestaShop/Admin/Configure/AdvancedParameters/Blocks/import_file_history.html.twig' %} {% endblock %}
{{ ps.label_with_help(('Language of the file'|trans), ('The locale must be installed'|trans({}, 'Admin.Advparameters.Notification'))) }} {{ form_errors(importForm.iso_lang) }} {{ form_widget(importForm.iso_lang) }}
{{ form_errors(importForm.separator) }} {{ form_widget(importForm.separator) }} {{ 'e.g. '|trans({}, 'Admin.Advparameters.Help') }} 1; Blouse; 129.90; 5
{{ form_errors(importForm.multiple_value_separator) }} {{ form_widget(importForm.multiple_value_separator) }} {{ 'e.g. '|trans({}, 'Admin.Advparameters.Help') }} Blouse; red.jpg, blue.jpg, green.jpg; 129.90

{{ form_errors(importForm.truncate) }} {{ form_widget(importForm.truncate) }}
{{ ps.label_with_help(('Use product reference as key'|trans), ('If enabled, the product\'s reference number MUST be unique!'|trans({}, 'Admin.Advparameters.Help'))) }} {{ form_errors(importForm.match_ref) }} {{ form_widget(importForm.match_ref) }}
{{ form_errors(importForm.regenerate) }} {{ form_widget(importForm.regenerate) }}
{{ ps.label_with_help(('Force all ID numbers'|trans), ("If you enable this option, your imported items' ID number will be used as is. If you do not enable this option, the imported ID numbers will be ignored, and PrestaShop will instead create auto-incremented ID numbers for all the imported items."|trans({}, 'Admin.Advparameters.Help'))) }} {{ form_errors(importForm.forceIDs) }} {{ form_widget(importForm.forceIDs) }}
{{ ps.label_with_help(('Send notification email'|trans), ('Sends an email to let you know your import is complete. It can be useful when handling large files, as the import may take some time.'|trans({}, 'Admin.Advparameters.Help'))) }} {{ form_errors(importForm.sendemail) }} {{ form_widget(importForm.sendemail) }}
{{ form_rest(importForm) }}
{{ form_end(importForm) }}