Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 020196b

Browse files
authored
Merge pull request #175 from rain2o/feature/exclude-disabled-products
Adds config variable for excluding disabled products
2 parents 9eb5da6 + eb3f7a6 commit 020196b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config/default.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"orders": {
88
"useServerQueue": false
99
},
10+
"catalog": {
11+
"excludeDisabledProducts": false
12+
},
1013
"elasticsearch": {
1114
"host": "localhost",
1215
"port": 9200,

scripts/mage2vs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function getMagentoDefaultConfig(storeCode) {
2424
return {
2525
TIME_TO_EXIT: 2000,
2626
PRODUCTS_SPECIAL_PRICES: true,
27+
PRODUCTS_EXCLUDE_DISABLED: config.catalog.excludeDisabledProducts,
2728
MAGENTO_CONSUMER_KEY: apiConfig.consumerKey,
2829
MAGENTO_CONSUMER_SECRET: apiConfig.consumerSecret,
2930
MAGENTO_ACCESS_TOKEN: apiConfig.accessToken,

0 commit comments

Comments
 (0)