Demandware业务经理:是否可以在目录列表视图中显示ATS?

时间:2017-08-07 22:12:34

标签: demandware

在Business Manger中的商家工具➤产品和目录➤目录下,网格视图当前显示可供出售(ATS)信息:

grid view shows ATS

但是,列表视图不会显示该信息:

list view does NOT show ATS

是否可以将业务经理配置为在列表视图中显示ATS列?

1 个答案:

答案 0 :(得分:0)

无法将BM配置为显示ATS列,因为它不是产品属性。但是,您可以在function findVoter(candidateName) { return new Promise(function(resolve, reject) { Voter.findOne({ 'name' : candidateName }, function(err,voter) { if(error) { reject(error); } else { resolve(voter); } }); }); } function addCandidateToElection(electionName, candidateName) { return findVoter(candidateName).then(function(voter) { return new Promise(function(resolve, reject) { Election.findOneAndUpdate( {'name': electionName }, {$push: { candidates: voter }}, {new: true}, function(err, election) { if (err) { reject(err); } else { resolve(!!election); } }); }); } function addCandidatesToElection(req, res) { let electionName = req.body.electionName; let candidates = req.body.candidates; let addedCandidatesSucessfully = true; let candidatePromiseArray = []; for(let i=0; i<candidates.length; i++) { candidatePromiseArray.push(addCandidateToElection(electionName, candidates[i])); } Promise.all(candidatePromiseArray) .then(function(results) { console.log(results); res.send('create election success'); }) .catch(function(error) { console.error(error); res.send('failed'); }); } 下的Product Preferences中添加其他产品属性。<​​/ p>