Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
- Constant for Mailchimp subscription status - @KonstantinSoelch (#294)
- mage2vs import now has optional `--generate-unique-url-keys` parameter which defaults to `false` to enable/disable the url key generation with name and id for categories - @rain2o (#232)

### Fixed
- The `product.price_*` fields have been normalized with the backward compatibility support (see `config.tax.deprecatedPriceFieldsSupport` which is by default true) - @pkarw (#289)
Expand Down
8 changes: 6 additions & 2 deletions scripts/mage2vs.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ program
.option('--skip-products <skipProducts>', 'skip import of products', false)
.option('--skip-pages <skipPages>', 'skip import of cms pages', false)
.option('--skip-blocks <skipBlocks>', 'skip import of cms blocks', false)
.option('--generate-unique-url-keys <generateUniqueUrlKeys>', 'generate unique url keys for categories', false)
.action((cmd) => {
let magentoConfig = getMagentoDefaultConfig(cmd.storeCode)

Expand Down Expand Up @@ -169,7 +170,9 @@ program
if (cmd.skipBlocks) {
magentoConfig.SKIP_BLOCKS = true;
}


magentoConfig.GENERATE_UNIQUE_URL_KEYS = cmd.generateUniqueUrlKeys;

const env = Object.assign({}, magentoConfig, process.env) // use process env as well
console.log('=== The mage2vuestorefront full reindex is about to start. Using the following Magento2 config ===', magentoConfig)

Expand Down Expand Up @@ -209,7 +212,8 @@ program
'node_modules/mage2vuestorefront/src/cli.js',
'categories',
'--removeNonExistent=true',
'--extendedCategories=true'
'--extendedCategories=true',
`--generateUniqueUrlKeys=${magentoConfig.GENERATE_UNIQUE_URL_KEYS}`
], { env: env, shell: true })
}
}
Expand Down