without extending in the entry file how to display the item description from the view file.

without using the extend method we can create a data view and using the data view from the view files we can display the item description by using this method.

We will get the matrix parent and child item details using the code given below

initialize: function (options) {
var self = this;
this.options = options
this.pdp = this.options.container.getComponent(‘PDP’);
this.iteminfo = this.pdp.getItemInfo().item;
var childinfo = this.pdp.getSelectedMatrixChilds()[0];
}

Since we created a new view, the template file is used by our extension. So we need to change the parameter value based on the name we pass from our getContext.

getContext: function getContext()
{
return {
ItemDescription: this.parantItemDescription
};
}

Template file:

{{#if ItemDescription}}
<div class=”product-details-full-feature-content-full”>
<span class=”product-line-specific-value” itemprop=”sku”>
{{{ItemDescription}}}

</div>

{{/if}}

Leave a comment

Your email address will not be published. Required fields are marked *