Modify Self Service Cart item numbers to display from superscript to number

Technote (FAQ)


Question

In Self Service Center, shopping cart item numbers is displayed as superscript. How to modify it so it is displayed as number?

Cause

The reason cart number displayed as super script is the span id is pointing to the srm_cart_amount in the stylesheet used to render the UI.

Answer

Modify srmNavigator.html -
From:
<td>
<button id="${id}_shoppingCart_btn" dojoattachpoint="shoppingCart_btn" dojotype="dijit.form.Button"
baseClass="srm_button" showLabel="false" label="Shopping Cart"
baseClass="srm_button" iconClass="shoppingCart_btn"></button>
<span id="${id}_cart_amount" class="srm_cart_amount" > </span>
<label id="${id}_cart_label" dojoattachpoint="shoppingCart_text_btn"
dojoAttachEvent="onclick:_shoppingCart,onmouseover:_cartOnRollover,onmouseout:_cartOnRollout" class="srm_cart">${_uiStringTable.Cart} </label>
</td>

To:
<td>
<button id="${id}_shoppingCart_btn" dojoattachpoint="shoppingCart_btn" dojotype="dijit.form.Button"
baseClass="srm_button" showLabel="false" label="Shopping Cart"
baseClass="srm_button" iconClass="shoppingCart_btn"></button>
<label id="${id}_cart_label" dojoattachpoint="shoppingCart_text_btn"
dojoAttachEvent="onclick:_shoppingCart,onmouseover:_cartOnRollover,onmou
seout:_cartOnRollout" class="srm_cart">${_uiStringTable.Cart} </label>
<span>(</span>
<span id="${id}_cart_amount" class="csrm_cart_amount" > </span>
<span>)</span>
</td>

Rate this page:

(0 users)Average rating

Document information


More support for:

IBM SmartCloud Control Desk

Software version:

7.5

Operating system(s):

AIX, Linux, Windows

Reference #:

1615092

Modified date:

2014-11-26

Translate my page

Machine Translation

Content navigation