| We can add a tracking number column in the purchase history page and when the billing is done corresponding the tracking number will be displayed for the billed item |
entry file
_.extend(RecordViewsActionableView.prototype, {
getContext: _.wrap(RecordViewsActionableView.prototype.getContext, function (fn) {
var original = fn.apply(this, _.toArray(arguments).slice(1));
console.log("this", this);
console.log("this", original);
var trackingNumbers =this.model.get('trackingNumbers')
if(trackingNumbers&&trackingNumbers.length!=0){
original.trackingNumbers=trackingNumbers.toString()
}
return original;
})
});
In tpl for displaying the heading as tracking no
<th class="order-history-list-recordviews-actionable-{{type}}-header">
<span>{{translate 'Tracking No'}}</span>
</th>
In tpl for display the value of the tracking number
<td class="recordviews-actionable-actions-1">
<p class="recordviews-actionable-value">{{trackingNumbers}}</p>
</td>
