When the customer adds logo for an item and added to cart.when we move to the cart page we need to display the logo option and the file uploade in the item details


Created transaction Line field in netsuite to store the logo uploaded values
Navingation : customization>lists>transactionline field here we can create a transaction line field
After that we have to extended the corresponding view to get the values
_.extend(TransactionLineViewsOptionsSelectedView.prototype, {
getContext: _.wrap(TransactionLineViewsOptionsSelectedView.prototype.getContext, function (fn) {
var originalRet = fn.apply(this, _.toArray(arguments).slice(1));
var self = this;
var logouploaded = this.model.get('options').models;
if (logouploaded) {
var custcol_tag_files_name;
var custcol_tag_logo_uploaded;
_.each(logouploaded, function (element) {
if (element.get('cartOptionId') === "custcol_tag_files_name" && element.get('value')) {
custcol_tag_files_name = element.get('value').label;
self.custcol_tag_files_name = true;
}
if (element.get('cartOptionId') === "custcol_tag_logo_uploaded" && element.get('value')) {
custcol_tag_logo_uploaded = element.get('value').label.replace(/\s+/g, '');
self.custcol_tag_logo_uploaded = true;
}
});
originalRet.custcol_tag_files_name = custcol_tag_files_name;
originalRet.custcol_tag_logo_uploaded = custcol_tag_logo_uploaded;
};
return originalRet;
})
});
Template file
<div>
{{#if custcol_tag_logo_uploaded}}
{{#if custcol_tag_files_name}}
<p>
<span class="Logo-uploaded">Logo Uploaded:
<a href="{{custcol_tag_logo_uploaded}}" target="_blank"
class="trimmedUploaded">{{custcol_tag_files_name}}</a>
</span>
</p>
{{/if}}
{{/if}}
</div>
