You are here:
comp-assets-products (template)
The comp-assets-products template renders the product assets.
Template Type
Containers
Code
HTML, CSS/SCSS
Image
Upgrade from Vlocity CME Winter '18 to Vlocity CME Summer '18
When upgrading from Salesforce Industries Communications, Media, and Energy Winter '18 to Salesforce Industries Communications, Media, and Energy Summer '18, you must make the following change to the HTML in the Card Designer.
First Change
In CME Winter '18, keep the following:
<li class=""slds-tabs_default__item slds-text-heading_label"" title=""Item One"" role=""presentation"" ng-class=""{'slds-active' : tabSelected === 'Assets'}"" ng-click=""tabSelected = 'Assets'; importedScope.changeCustomView(1);"">
In CME Summer '18, replace the HTML above with the following HTML:
<li class="slds-tabs_default__item slds-text-heading_label" title="Item One" role="presentation" ng-class="{'slds-active' : tabSelected === 'Assets'}" ng-click="tabSelected = 'Assets'; importedScope.changeCustomView(1, true);">
Second Change
In CME Winter '18, keep the following:
<li class="slds-tabs_default__item slds-text-heading_label" title="Item One" role="presentation" ng-class="{'slds-active' : tabSelected === 'Promotions'}" ng-click="tabSelected = 'Promotions'; importedScope.changeCustomView(0)" ng-show="$root.customViews.cpqCustomViews.length >= 1 && attrs.promotionMode === 'on'">
In CME Summer '18, replace the above HTML with the following HTML:
<li class="slds-tabs_default__item slds-text-heading_label" title="Item One" role="presentation" ng-class="{'slds-active' : tabSelected === 'Promotions'}" ng-click="tabSelected = 'Promotions'; importedScope.changeCustomView(0, true)" ng-show="$root.customViews.cpqCustomViews.length >= 1 && attrs.promotionMode === 'on'">
Third Change
In CME Winter '18, keep the following:
<li class="slds-dropdown__item" role="presentation" ng-repeat="customView in $root.customViews.cpqCustomViews" ng-click="importedScope.changeCustomView($index)">
In CME Summer '18, replace the above HTML with the following HTML:
<li class="slds-dropdown__item" role="presentation" ng-repeat="customView in $root.customViews.cpqCustomViews" ng-click="importedScope.changeCustomView($index, false)">
Fourth Change
In CME Winter '18, keep the following:
<button class="slds-button slds-button_neutral" ng-click="importedScope.assetChangeToQuote(attrs.accountId, attrs.assetIncludeType)" ng-disabled="!$root.vlocityAssets.enableChangeToCartButton">
In CME Summer '18, replace the above HTML with the following HTML:
<button class="slds-button slds-button_neutral" ng-click="importedScope.assetChangeToQuote(attrs.accountId, attrs.assetIncludeType)" ng-disabled="!importedScope.enableAssetButtons.changeToCartButton">
Fifth Change
In CME Winter '18, keep the following:
<button class="slds-button slds-button_neutral" ng-click="importedScope.assetChangeToOrder()" ng-disabled="!$root.vlocityAssets.enableChangeToCartButton">
In CME Summer '18, replace the above HTML with the following HTML:
<button class="slds-button slds-button_neutral" ng-click="importedScope.assetChangeToOrder()" ng-disabled="!importedScope.enableAssetButtons.changeToCartButton">
Sixth Change
In CME Winter '18, keep the following:
<button class="slds-button slds-button_neutral" ng-click="importedScope.assetMove()" ng-disabled="!$root.vlocityAssets.enableMoveButton">
In CME Summer '18, replace the above HTML with the following HTML:
<button class="slds-button slds-button_neutral" ng-click="importedScope.assetMove()" ng-disabled="!importedScope.enableAssetButtons.moveButton">

