menu

SiteGenesis / Server-side JS / Source: app_storefront_controllers/cartridge/scripts/views/ProductView.js

'use strict';
/**
 * View to render product templates.
 * @module views/ProductView
 */
var View = require('./View');
/**
 * Helper function for rendering product functionality.
 * @class module:views/ProductView~ProductView
 * @extends module:views/View
 * @lends module:views/ProductView~ProductView.prototype
 */
var ProductView = View.extend(
    {
        /**
         * View for product functionality.
         * @constructs module:views/ProductView~ProductView
         * @param {Object} params The parameters to pass to the template.
         */
        init: function (params) {
            this._super(params);

            this.Product = params.product.object;

            return this;
        }

    });

module.exports = ProductView;

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.