Files
interblue.pl/modules/pshowimporter/import-options/en_product.yml
2024-10-25 14:16:28 +02:00

305 lines
14 KiB
YAML

#weight
weight:
skipGtWeight: {type: 'text', label: 'Skip product when weight is larger than', desc: '0 - disabled', required: true, pattern: '/[0-9\.]/'}
#images
image:
image_quality: {type: 'text', label: 'Image quality', desc: 'The percentage value from 25 to 100', value: '75', required: true}
imgNotForAlreadyHas: {type: 'switch', label: 'Do not import images if product already has some'}
imgNotForExisting: {type: 'switch', label: 'Do not import images for existing products'}
updateGenThumbnails: {type: 'switch', label: 'Generate thumbnails', desc: 'Thumbnails will be automatically generated during import', value: '1'}
updateAndRemoveImages: {type: 'switch', label: 'Remove old products images', desc: 'All products images will be removed'}
single_image0:
image_quality: {type: 'text', label: 'Image quality', desc: 'The percentage value from 25 to 100', value: '75', required: true}
imgNotForAlreadyHas: {type: 'switch', label: 'Do not import images if product already has some'}
imgNotForExisting: {type: 'switch', label: 'Do not import images for existing products'}
updateGenThumbnails: {type: 'switch', label: 'Generate thumbnails', desc: 'Thumbnails will be automatically generated during import', value: '1'}
updateAndRemoveImages: {type: 'switch', label: 'Remove old products images', desc: 'All products images will be removed'}
images:
image_quality: {type: 'text', label: 'Image quality', desc: 'The percentage value from 25 to 100', value: '75', required: true}
images_separator: {type: 'text', label: 'Images separator', desc: 'Photos delimiter if in one field there are several', required: true}
imgNotForAlreadyHas: {type: 'switch', label: 'Do not import images if product already has some'}
imgNotForExisting: {type: 'switch', label: 'Do not import images for existing products'}
updateGenThumbnails: {type: 'switch', label: 'Generate thumbnails', desc: 'Thumbnails will be automatically generated during import', value: '1'}
updateAndRemoveImages: {type: 'switch', label: 'Remove old products images', desc: 'All products images will be removed'}
#accessories
accessories_id:
accessories_separator: {type: 'text', label: 'Accessories separator', required: true}
accessories_ref:
accessories_separator: {type: 'text', label: 'Accessories separator', required: true}
#categories
category:
category_unlink_old: {type: 'switch', label: 'Remove old relations between product and categories?', desc: 'Works only if you are importing new category relations for product'}
addToParentCategories: {type: 'switch', label: 'Add the product to the parent categories?'}
doNotAddToHomeCategory: {type: 'switch', label: 'Do not add product to home category'}
parent_id: {type: 'text', label: 'ID of the parent category', value: '2', desc: '(must exists, default: 2, the lowest: 1) Categories from path will be added into category with this ID', required: true}
category_id:
category_unlink_old: {type: 'switch', label: 'Remove old relations between product and categories?', desc: 'Works only if you are importing new category relations for product'}
addToParentCategories: {type: 'switch', label: 'Add the product to the parent categories?'}
doNotAddToHomeCategory: {type: 'switch', label: 'Do not add product to home category'}
category_ids:
category_unlink_old: {type: 'switch', label: 'Remove old relations between product and categories?', desc: 'Works only if you are importing new category relations for product'}
addToParentCategories: {type: 'switch', label: 'Add the product to the parent categories?'}
doNotAddToHomeCategory: {type: 'switch', label: 'Do not add product to home category'}
category_path:
category_separator: {type: 'text', label: 'Category path separator', desc: 'The last category in the path will be the default product category', required: true}
category_unlink_old: {type: 'switch', label: 'Remove old relations between product and categories?', desc: 'Works only if you are importing new category relations for product'}
addToParentCategoriesInPath: {type: 'switch', label: 'Add the product to each category in category patch?', desc: 'If no selected product will be added (visible) to last category in the path (depending on other matching options)'}
reverseCategoryPath: {type: 'switch', label: 'Reverse category path?'}
doNotAddToHomeCategory: {type: 'switch', label: 'Do not add product to home category'}
addToParentCategories: {type: 'switch', label: 'Add the product to the parent categories?', desc: 'The product will be added to all categories from the product default category up to the category defined below'}
parent_id: {type: 'text', label: 'ID of the parent category', value: '2', desc: '(must exists, default: 2, the lowest: 1) Categories from path will be added into category with this ID', required: true}
#manufacturer
id_manufacturer:
manufacturer_dont_import: {type: 'switch', label: 'Use matched field from this step only for skipping (step 4)'}
manufacturer:
manufacturer_dont_import: {type: 'switch', label: 'Use matched field from this step only for skipping (step 4)'}
#quantity
quantity:
type:
type: 'select'
label: 'What to do?'
required: true
options:
query:
- {k: '1', v: 'Set quantity in the shop'}
- {k: '2', v: 'Increase quantity in the shop'}
id: 'k'
name: 'v'
productoff_stock_checkbox: {type: 'switch', label: 'Disable product', desc: 'when quantity equal or lower than:'}
productoff_stock: {type: 'text'}
producton_stock_checkbox: {type: 'switch', label: 'Enable product', desc: 'when quantity equal or grater than:'}
producton_stock: {type: 'text'}
productskipp_quantity_el_checkbox: {type: 'switch', label: 'Skip product', desc: 'when quantity equal or lower than:'}
productskipp_quantity_el: {type: 'text'}
productskipp_quantity_eg_checkbox: {type: 'switch', label: 'Skip product', desc: 'when quantity grater than:'}
productskipp_quantity_eg: {type: 'text'}
product_qty_int: {type: 'switch', label: 'Value `8.00` will be readed as `800`', desc: 'Enable to read `8.00` as `8`'}
# advanced stock management
asm_title:
type: 'blank'
label: ''
desc: 'ADVANCED STOCK MANAGEMENT:'
asm_enabled:
type: 'switch'
value: 0
label: 'Enabled'
required: true
desc: 'Enable to use advanced stock management for this product'
asm_is_usable:
type: 'switch'
value: 1
label: 'Usable for sale?'
asm_warehouse_id:
type: 'text'
label: 'Warehouse id'
desc: 'Please select the warehouse that you will be adding products to.'
asm_unit_price:
type: 'text'
label: 'Unit price (tax excl.)'
desc: 'Unit purchase price or unit manufacturing cost for this product (tax excl.)'
asm_id_currency:
type: 'text'
label: 'Currency ID'
desc: 'ID of the currency associated to the product unit price.'
asm_label:
type: 'select'
label: 'Label'
desc: 'Label used in stock movements.'
options:
query:
- {k: '1', v: 'Increase'}
- {k: '5', v: 'Regulation following an inventory of stock'}
- {k: '8', v: 'Supply Order'}
id: 'k'
name: 'v'
#tags
tags:
tags_separator: {type: 'text', label: 'Tags separator', desc: 'Tags delimiter if in one field there are several', required: true}
#id
id_product:
skip_ids: {type: 'text', label: 'Products to skip', desc: 'Enter products IDs separated by comma, example: 1,5,7,12'}
#prices
price:
margin_prices: {type: 'text', value: 1, required: true, label: 'Prices overhead', desc: 'Net price from file * overhead = net price in store<br>Gross price from file * overhead - tax value = net price in store<br>Example for overhead 1.11: net price = net price + 11% * net price'}
productskipp_price_el_checkbox: {type: 'switch', label: 'Skip product when net price equal or lower than'}
productskipp_price_el: {type: 'text'}
productskipp_price_eg_checkbox: {type: 'switch', label: 'Skip product when net price greater than'}
productskipp_price_eg: {type: 'text'}
productskipp_netprice_l_than_shop: {type: 'switch', label: 'Skip product when net price in the file is lower than in the shop'}
productskipp_netprice_h_than_shop: {type: 'switch', label: 'Skip product when net price in the file is higher than in the shop'}
productskipp_netmarginprice_h_than_shop: {type: 'switch', label: 'Skip product when net price with overhead in the file is higher than in the shop'}
productskipp_netmarginprice_l_than_shop: {type: 'switch', label: 'Skip product when net price with overhead in the file is lower than in the shop'}
price_brutto:
margin_prices: {type: 'text', value: 1, required: true, label: 'Prices overhead', desc: 'Net price from file * overhead = net price in store<br>Gross price from file * overhead - tax value = net price in store<br>Example for overhead 1.11: net price = net price + 11% * net price'}
vat:
type: 'text'
label: 'Tax value in %'
desc: 'Required to import gross prices<br>This will not set tax rule for the product!'
required: true
productskipp_price_el_checkbox: {type: 'switch', label: 'Skip product when net price equal or lower than'}
productskipp_price_el: {type: 'text'}
productskipp_price_eg_checkbox: {type: 'switch', label: 'Skip product when net price greater than'}
productskipp_price_eg: {type: 'text'}
productskipp_grossprice_l_than_shop: {type: 'switch', label: 'Skip product when gross price in the file is lower than in the shop'}
productskipp_grossprice_h_than_shop: {type: 'switch', label: 'Skip product when gross price in the file is higher than in the shop'}
specific_price_promo:
remove_old_specific_prices:
type: 'switch'
value: '0'
label: 'Remove old specific prices?'
tax_included:
type: 'switch'
value: '0'
label: 'Tax included?'
as_price_impact:
type: 'switch'
value: '0'
label: 'Import as product price impact'
specific_price:
remove_old_specific_prices:
type: 'switch'
value: '0'
label: 'Remove old specific prices?'
tax_included:
type: 'switch'
value: '0'
label: 'Tax included?'
id_currency:
type: 'text'
label: 'Currency ID'
desc: Leave empty to select all
id_country:
type: 'text'
label: 'Country ID'
desc: Leave empty to select all
id_group:
type: 'text'
label: 'Group ID'
desc: Leave empty to select all
id_customer:
type: 'text'
label: 'Customer ID'
desc: Leave empty to select all
from:
type: 'text'
label: 'Available from'
class: datepicker
value: '0000-00-00 00:00:00'
desc: 'YYYY-MM-DD HH:MM:SS<br>Leave 0000-00-00 00:00:00 to set unlimited period'
to:
type: 'text'
label: 'Available to'
class: datepicker
value: '0000-00-00 00:00:00'
desc: 'YYYY-MM-DD HH:MM:SS<br>Leave 0000-00-00 00:00:00 to set unlimited period'
from_quantity:
type: 'text'
label: 'From quantity'
desc: Leave empty to select all
leave_bprice:
type: 'switch'
label: 'Leave base price'
value: false
reduction:
type: 'text'
label: 'Discount - value'
reduction_tax:
type: 'switch'
label: 'Discount - tax included?'
value: true
reduction_type:
type: 'select'
label: 'Discount - type'
value: "amount"
options:
query:
amount:
name: "Amount"
id: "amount"
customized:
name: "Percentage"
id: "percentage"
id: id
name: name
#features
feature_value:
feature_id: {type: 'text', label: 'Feature ID', desc: 'ID of the feature to which the value from the file will be imported'}
feature_name: {type: 'text', label: 'Feature name', desc: 'The name of the feature to which the value from the file will be imported. <br>Feature will be created if it does not exist'}
feature_value_type:
type: 'radio'
label: 'Value type'
value: "pre-defined"
values:
predefined:
label: "Pre-defined"
value: "pre-defined"
customized:
label: "Customized"
value: "customized"
desc: 'Filters on the product list require features to be set as pre-defined'
feature_id:
feature_value:
type: 'text'
label: 'Feature value'
desc: 'The value of the feature to be imported into the feature with the ID retrieved from the file'
feature_value_type:
type: 'radio'
label: 'Value type'
value: "pre-defined"
values:
predefined:
label: "Pre-defined"
value: "pre-defined"
customized:
label: "Customized"
value: "customized"
desc: 'Filters on the product list require features to be set as pre-defined'
#description
description:
insert_newline_tags: {type: 'switch', label: 'Insert newline tags', desc: '&lt;br&gt;', value: '1'}
description_short:
insert_newline_tags: {type: 'switch', label: 'Insert newline tags', desc: '&lt;br&gt;', value: '1'}
#combinations
combination_reference:
update_existing: {type: 'switch', label: 'Update combinations with exists', value: '1'}
#reference
reference:
skip_if_comb_exists: {type: 'switch', label: 'Skip if combination with this code exists in the shop', value: '0'}