I'm new to SFCC and I have created an extremely basic controller in my custom cartridge.
'use strict';
var server = require('server');
var URLUtils = require('dw/web/URLUtils');
server.extend(module.superModule);
server.append('Show', function (req, res, next) {
var viewData = res.getViewData();
next();
});
module.exports = server.exports();
It actually does nothing, but when I check the page using the toolbox, it says the controller comes from my custom cartridge (namely, Product.js), whereas the template comes from the storefront base cartridge, in spite of the fact I have added the template I wanted to modify (namely, productDetails.isml).
I made modifications into this template in my cartridge, but the website does not take them into account.
Can someone tell me why ?