<%- _.__('webkul_prestashop_connector.form.configuration.group.mapping.other.help') %>
<%- _.__('webkul_prestashop_connector.form.configuration.group.mapping.other.button.title') %>
<%- _.__('webkul_prestashop_connector.form.configuration.group.mapping.field.prestashop') %>
<%- _.__('webkul_prestashop_connector.form.configuration.group.mapping.field.simple_product_field_in_akeneo') %>
<%- _.__('webkul_prestashop_connector.form.configuration.group.mapping.field.model_product_field_in_akeneo') %>
<%- _.__('webkul_prestashop_connector.form.configuration.group.mapping.field.variant_product_field_in_akeneo') %>
<%- _.__('webkul_prestashop_connector.form.configuration.group.mapping.field.default_value') %>
<% _.each(fields, function (field, key) { disabled_for_simple = field.disabled_for_simple; disabled_for_model = field.disabled_for_model; disabled_for_variant = field.disabled_for_variant; %>
<%- _.__('undefined' !== typeof(field.label) ? field.label : field.name) %>
[<%- field.name %>]
<%- field.required ? '*' : '' %>
<% datawrapper = typeof(field.simple_data_wrapper) != 'undefined' ? field.simple_data_wrapper : 'prestaSimpleProductMapping' %>
<%- field.required ? 'required' : '' %>>
<%- _.__('Select Attribute') %>
<% if(field.isPredefined) { selectVal = mapping && typeof(mapping) !== 'undefined' && typeof(mapping[field.name]) !== 'undefined' ? mapping[field.name] : '' } else { selectVal = model && typeof(model['simpleExtraMappings']) !== 'undefined' && typeof(model['simpleExtraMappings'][field.name]) !== 'undefined' ? model['simpleExtraMappings'][field.name] : '' } %> <% _.each(attributes, function(attribute) { %> <% if(!field.types || field.types.indexOf(attribute.type) !== -1 ) { %>
selected="selected"<% } %> > <%- 'undefined' !== typeof(attribute.labels[currentLocale]) ? attribute.labels[currentLocale] : attribute.code %>
<% } %> <% }); %>
<% if('undefined' !== typeof(field.tooltip) ) { %>
<% } %>
<% datawrapper = typeof(field.model_data_wrapper) != 'undefined' ? field.model_data_wrapper : 'prestaModelProductMapping' %>
<%- field.required ? 'required' : '' %>>
<%- _.__('Select Attribute') %>
<% if(field.isPredefined) { selectVal = modelmapping && typeof(modelmapping) !== 'undefined' && typeof(modelmapping[field.name]) !== 'undefined' ? modelmapping[field.name] : '' } else { selectVal = model && typeof(model['modelExtraMappings']) !== 'undefined' && typeof(model['modelExtraMappings'][field.name]) !== 'undefined' ? model['modelExtraMappings'][field.name] : '' } %> <% _.each(attributes, function(attribute) { %> <% if(!field.types || field.types.indexOf(attribute.type) !== -1 ) { %>
selected="selected"<% } %> <% if((attribute.code != selectVal && _.indexOf(['reference', 'upc'], field.name) == -1 && _.indexOf(mappedModelAttributesCode, attribute.code) != -1) && !disabled_for_variant ) { %> disabled <% } %> > <%- 'undefined' !== typeof(attribute.labels[currentLocale]) ? attribute.labels[currentLocale] : attribute.code %>
<% } %> <% }); %>
<% if('undefined' !== typeof(field.tooltip) ) { %>
<% } %>
<% datawrapper = typeof(field.data_wrapper) != 'undefined' ? field.data_wrapper : 'prestaCombinationMapping' %>
<%- field.required ? 'required' : '' %>>
<%- _.__('Select Attribute') %>
<% selectVal = childmapping && typeof(childmapping) !== 'undefined' && typeof(childmapping[field.name]) !== 'undefined' ? childmapping[field.name] : '' %> <% _.each(attributes, function(attribute) { %> <% if(!field.types || field.types.indexOf(attribute.type) !== -1 ) { %>
selected="selected"<% } %> <% if((attribute.code != selectVal && _.indexOf(['reference', 'upc'], field.name) == -1 && _.indexOf(mappedChildAttributesCode, attribute.code) != -1) ) { %> disabled <% } %> > <%- 'undefined' !== typeof(attribute.labels[currentLocale]) ? attribute.labels[currentLocale] : attribute.code %>
<% } %> <% }); %>
<% if('undefined' !== typeof(field.tooltip) ) { %>
<% } %>
style="width: 90% !important">
<% if(!field.isPredefined) { %>
<% } %>
<% }); %>
<%- _.__('Map more standard attributes') %>
Prestashop Field Code
<%- _.__('pim_common.required_label') %>
Add Field
<%- _.__('Other Mappings') %>
Drag To Change Position
Image Attribute
Attribute As main Image
Actions
<% _.each(imagesRows, function(imageRow, index) { %>
<% selectVal = model && typeof(model['otherMappings']) !== 'undefined' && typeof(model['otherMappings']['images']) !== 'undefined' && typeof(model['otherMappings']['images'][index]) !== 'undefined' && typeof(model['otherMappings']['images'][index]['image_attr']) !== 'undefined' ? model['otherMappings']['images'][index]['image_attr'] : '' %>
<%- _.__('Select Image Attribute') %>
<% _.each(attributes, function(attribute) { %> <% if(['pim_catalog_asset_group' , 'pim_catalog_image'].indexOf(attribute.type) != -1) { %>
selected="selected" <% } %> <% if(attribute.code != selectVal && mappedImageAttribute.indexOf(attribute.code) != -1 ) { %>disabled<% } %>> <%- 'undefined' !== typeof(attribute.labels[currentLocale]) ? attribute.labels[currentLocale] : attribute.code %>
<% } %> <% }); %>
<% mainImage = model && typeof(model['otherMappings']) !== 'undefined' && typeof(model['otherMappings']['main_image']) !== 'undefined' ? model['otherMappings']['main_image'] : '' %>
data-wrapper="otherMappings">
<% }); %>
Add Image Mapping
<%- _.__('Attributes to be used as feature attribute (For Export)') %>
<% selectVal = model && typeof(model['otherMappings']['feature_attributes']) !== 'undefined' && model['otherMappings']['feature_attributes'] ? model['otherMappings']['feature_attributes'] : '' %> <% _.each(attributes, function(attribute) { %> <% if(['pim_catalog_identifier', 'pim_catalog_file', 'pim_catalog_image', 'pim_reference_data_multiselect', 'pim_reference_data_simpleselect'].indexOf(attribute.type) === -1) { %>
selected="selected" <% } %> <% if((attribute.code != selectVal && _.indexOf(mappedAttributesCode, attribute.code) !== -1)) { %> disabled <% } %>> <%- 'undefined' !== typeof(attribute.labels[currentLocale]) ? attribute.labels[currentLocale] : attribute.code %>
<% } %> <% }); %>
<%- _.__('Select all') %>
<%- _.__('Deselect all') %>
<%- _.__('Specific Price Mapping') %>
Specific Price Attribute
Discount Type
Tax
<% specific_price_attribute = ''; reduction_type = ''; reduction_tax = ''; if(model && typeof(model['specific_price_mappping']) !== 'undefined' ) { specific_price_attribute = typeof(model['specific_price_mappping']['attribute']) !== 'undefined' ? model['specific_price_mappping']['attribute'] : ''; reduction_type = typeof(model['specific_price_mappping']['reduction_type']) !== 'undefined' ? model['specific_price_mappping']['reduction_type'] : ''; reduction_tax = typeof(model['specific_price_mappping']['reduction_tax']) !== 'undefined' ? model['specific_price_mappping']['reduction_tax'] : ''; } %>
<%- _.__('Select Specific Price Attribute') %>
<% _.each(attributes, function(attribute) { %> <% if(attribute.type == 'pim_catalog_price_collection' ) { %>
selected="selected"<% } %> > <%- 'undefined' !== typeof(attribute.labels[currentLocale]) ? attribute.labels[currentLocale] : attribute.code %>
<% } %> <% }); %>
<% if(specific_price_attribute) { %>
<%- _.__('Select Discout Type') %>
>Amount
>Percentage
<% } else { %>
<%- _.__('Select Specific Price Attribute First') %>
<% } %>
<% if(errors['reduction_type']) { %> <% } %>
<% if(reduction_type != 'percentage') { %>
<% if(specific_price_attribute) { %>
<%- _.__('Select Tax') %>
>Tax Included
>Tax Excluded
<% } else { %>
<%- _.__('Select Specific Price Attribute First') %>
<% } %>
<% if(errors['reduction_tax']) { %> <% } %> <% } %>