Display Shopping Cart Quantity

matthew_magee1
Giga Guru

On our ESS page, I'd like to show the customer up front how many items (total) are in their shopping cart. Kind of like when you go to amazon, you see a number in the little shopping cart icon.

i see the sc_cart table holds the quantity per line item, but I'll need that total, based on my cart

Any help is greatly appreciated-

5 REPLIES 5

PeterWiles
Kilo Sage

You create a UI macro to count the results. Then display that on the portal.


PeterWiles
Kilo Sage

Sorry, I didn't finish writing that before it posted.
I meant you could create a UI macro and how it like you do the cart though you will need to know some Jelly to get it done.

Not sure how else.


matthew_magee1
Giga Guru

It looks like something already exists that I can modify/tailor to my needs. When I'm in the service catalog and have an item in my cart, I can click on Edit Cart and it pulls up all my cart contents with a total price. If I can find this page, I can probably get the UI Macro I need.

The URL is: /com.glideapp.servicecatalog_cart_view.do

Where can I find this page? Is it a page?


So com.glideapp.servicecatalog_cart_view.do is a UI page (under System UI > UI Pages) inside of that it looks like it calls "servicecatalog_cart_template" which is a UI Macro and may be the location of what you are looking for.

Hope that helps