How to get Products from Shopping Cart(Basket) in ATG

I want get all products from shopping cart
can any one help on this requirement?
Thanks in Advance.

Hi ,
If you want directly JSP , use the droplet as suggested correctly by shaik,
If you want it in java code,
A good way is to make a Droplet ( global scoped ) and pass the current shopping cart to the droplet.
eg :
<dsp:droplet name="MyDroplet">
<dsp:param name="inOrder" bean="/atg/commerce/ShoppingCart.current"/>
OR
<dsp:param name="inOrder" bean="/atg/commerce/order/purchase/CartModifierFormHandler.order" />
<dsp:oparam name="output">
</dsp:oparam>
</dsp:droplet>
and in the droplet java file you can use it as :
CommerceItemContainer inOrder = (CommerceItemContainer) request.getObjectParameter("inOrder");
and you can use inOrder.getCommerceItems(); to get a list of commerce items from order.
You can directly get the order in your droplet ,but then you will have to make it request scoped , making global scoped droplets is good practice.
~Praveer

Similar Messages

  • Reservation not getting created from shopping cart for stores order.

    Hi experts,
    Reservation not getting created from shopping cart for stores order,process used is some custom BADI.Extended classic scenario is the procrss .
    Please help me
    Thanks in  advance.

    Hello,
    please check below wiki:
    Determination of the follow-on document type
    Regards.
    Laurent.

  • PO Custom Field not getting filled from Shopping Cart

    Hi Gurus,
    I am new to SRM. The requirement I had was to add a new field to the SC. I read several posts and articles on this but couldn't find the solution to it. I managed to do this modifying the corresponding structures in SRM and making the necessary changes in R/3 so the new filed can be seen in ME21/22/23N.
    I checked Andreas Milbredt document to achieve it as mentioned:
    Document: How to transfer custom fields from SRM to Backend.
    http://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/20b36c12-685f-2c10-4fb4-ba2e0b969c27
    After that, when I create a Shopping Cart, the value in the New field is not transferred to the Back end.
    I coded the following BADIs and User Exits:
    In SRM:
    BBP_CUF_BADI_2 (MODIFY_SCREEN) ->To enable or disable the field depending on conditions. Works fine.
    BBP_DOC_CHECK_BADI (BBP_DOC_CHECK) -> To do some checks. Works Fine
    BBP_CREATE_BE_PO_NEW (FILL_PO_INTERFACE1) ->Here I fill structures BAPI_TE_MEPOITEM and BAPI_TE_MEPOITEMX. I added another u2018Xu2019 to indicate the new field to BAPI_TE_MEPOITEMX. But I think I am not doing it right. This structure BAPI_TE_MEPOITEM/X, does the order of the fields correspond to the order of the fields in any of these 3 structures (which I am using)?
    INCL_EEW_PD_HISTORY_CSF
    INCL_EEW_PD_ITEM_CSF
    INCL_EEW_PD_ITEM_CSF_SC
    I also checked the following link:
    Map a custom SRM field to a standard field in R/3
    In R/3 I populated the Exits Andreau2019s mentions on his article. Am I missing anything else?
    Thanks & Regards,
    Ernesto.

    Hi Ernesto,
    You can find out how your BAPI structure is being populated (by generating the test data ) using FBGENDAT program and activating the BAPI_PO_CREATE1 (and you will need to set the parameter for the specified user id)... This will provide you ability to execute the BAPI offline and figure out what is happening...
    Note 517767 - Generate test data for function modules
    Things to look for, Is any of your custom fields quantity fields or integer?
    Check out the following OSS note
    Note 509898 - BAPI enhancement concept and Unicode
    Also check out the following SDN Thread,
    problem using  BAPI_BUS2001_CREATE to create project definition
    Check out a similar thread that we are discussing (for PR)
    Custom Fileds Data Was Not Getting Updated In BAPI_PR_CREATE

  • How to get the old shopping cart detail if I change the Business partner.

    Hi all ,
    Can any one help me in below describe query?
    Scenario:
    User was getting the error regarding business partner while shopping.
    So I repair the user from BBP_CHECK_USERS.
    Now definitly its business partner has changed.User can also shop.
    But the problem lies is he has lost his all the old shopping cart which was related to old business partner.
    Can any one tell me how to get those detail of the old shopping cart which was related to old business partner?

    Hi
    <b>Which SRM version are you using ?</b>
    <u>Please check out the links/pointers -></u>
    Moving workitems between SRM inboxes
    Re: How to re-instate the deleted Position of the user into Org structure.
    Re: Position Deleted for an User, created a new userid; Confirmation Issues
    Re: Need help to "access" deleted users's inbox & reassign work items
    Re: How to delete a user in the Organizational structure
    Re: Transfer of open POs or SCs?
    <b>Hope this will definitely help.</b>
    Do let me know.
    Regards
    - Atul

  • How do i add a shopping cart to iweb

    how do i add a shopping cart to iweb

    The most common way to get paid for selling goods online is PayPal. Once you have setup an account and added the buttons to your site, PayPal takes care of the cart and collecting the money.
    Here's an example of a website page set up for selling. The following pages illustrate how to create the buttons and give an example of how a shopping cart works using one of PayPal's partner digital delivery services.
    http://www.iwebformusicians.com/Internet-Music-Sell-Distribute/Website-Buy-Page. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Error in creating PO from shopping cart

    Hi,
    While creating PO from Shopping Cart in SRM, we are getting the error message "Net price must be grater than 0" and the PO is not getting generated.
    Is this issue is somewhere related to maintainance of pricing conditions? if yes, how can we maintain that?
    Regards,

    Hi,
    Are you creating PO directly from shopping cart or through PR.If through PR (Purcahse requisation) then chack the valution price in valution tab in PR (ME53N)
      PO directly from shopping cart then check the price in Basic data of the shopping cart.if price is there it should reflect in PO.Check your shopping cart free Zero value shopping cart.

  • How to get Production Order Quantity

    I have material number and plant. From this information how to get production order quantity that is displayed in the transaction MD04.
    Thanks,
    Vinay.

    Hi Vinay,
    Have you looked FM <b>MD_STOCK_REQUIREMENTS_LIST_API</b>?
    Hope this will help.
    Regards,
    Ferry ianto

  • How to get photos from camera or memory card into new macbook?

    how to get photos from camera or memory card into newly announced macbook?  thank you   joanlvh

    And to diversify the use of that port, you could get this specialized adapter:
    http://store.apple.com/us/product/MJ1K2AM/A/usb-c-digital-av-multiport-adapter
    The cost of admission is modest - at $79 - for what all that it does.

  • How do i switch to shopping cart

    How do I switch to shopping cart in itunes store?

    There isn't a shopping cart in the iTunes store, you can only buy items one-at-a-time. You can add items to your wish list, but again you can only buy items from that one-at-a-time.

  • Regarding Removal of filed from Shopping Cart Extented Search

    Dear All,
    We have a requirment where we need to remove a field from shopping Cart Extended Search. Field name called "Role" has to be removed.
    Could some one let us know,  how to  remove the field?  we observed that BADi  CUF is being not triggered to suppress this field. And also we would like to know what is the Field name or Sturucture we need to remove.
    Waiting for  your response.

    Hello Amarnath,
    >
    amarnath g wrote:
    > (...)
    > we are on SRM version 5 ( SRM_SERVER 5.5). Does this imply to this release as well? (...)
    I think so. But to be sure, have a look at ABAP code for concerned Dynpro PBO.
    >
    amarnath g wrote:
    > (...)
    And also I would like to know wheter can we add a custom field  to the search Criteria.....
    Yes, but you will have to manage it in search structure GS_SEARCH_FIELD.
    Regards.
    Laurent.

  • How to get photos from mac to iPhone 6? when i try it just comes up iCloud instead of my photos

    how to get photos from mac to iPhone 6? when i try it just comes up iCloud instead of my photos

    Make sure Settings > iCloud > Photos > iCloud Photo Library (Beta) = "Off"
    Then sync your iPhone using iTunes and make sure your sync settings for photos are set correctly in iTunes.

  • I got a new computer and don't know how to get music from ipod touch to itunes library

    I recently got a new computer and don't know how to get music from my ipod touch to show on my itunes library. 

    You need to transfer the iTunes folder from the old computer to the new one.
    iTunes: How to move your music to a new computer (Mac or Windows):
      http://support.apple.com/kb/HT4527

  • I have a new MacAir and don't know how to get info from my USB stick and my SD photo card.  Can anyone help me please?

    I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card.  Can anyone help, please?

    Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
    Matt

  • How to get data from a USB-UIRT device using Labview?

    How to get data from a USB-UIRT device using Labview?
    I'm trying to get data from a USB-UIRT device, is it posible with Labview?
    I really appreciate your help, 
    thanks

    You may want to contact the developer of the device for the API and DLL.
    http://65.36.202.170/phpBB2/viewforum.php?f=3

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

Maybe you are looking for