Clearing shopping cart upon user logout using Javascript

Clearing shopping cart upon user  logout using Javascript...
How is it done? Anybody got a script handy?
Thanks!

You'd need to obtain the CartID cookie, then call the function ClearCart('cd00d0e5-1822-4440-8293-32b8f317e363',0); where "cd00d0e5-1822-4440-8293-32b8f317e363" is the CartID you obtained from the cookie. The function should reside in one of the eCommerce JS files.
Cheers,
-m

Similar Messages

  • How to get List of SharePoint Groups to which Current Users belongs using Javascript ?

    How to get List of SharePoint Groups to which Current Users belongs using JavaScript? Not JSOM

    Here is the code that worked for me:
    var userid= _spPageContextInfo.userId;
      var requestUri = _spPageContextInfo.webAbsoluteUrl + '/_api/web/CurrentUser/Groups?$select=Id,Title';
    alert(requestUri);
      var requestHeaders = { "accept" : "application/json;odata=verbose" };
      $.ajax({
        url : requestUri,
        contentType : "application/json;odata=verbose",
        headers : requestHeaders,
        success : onSuccess,
        error : onError
      function onSuccess(data, request){
    var s='';
     for (var i = 0; i < data.d.results.length; i++)
    s +=data.d.results[i].Title+'\n';
        alert(s);
      function onError(error) {
        alert("error");

  • Attach files to a Shopping Cart in SRM portal using a ABAP program.

    Hello.
    We need to attach files to a Shopping Cart using a ABAP program and see them in SRM portal.
    Currently we know how to attach files in the backend using the function Xxxxxxxxxx but with this function we can not see the attachment in the SRM portal.
    Do you know someway to attach files direclty in the front-end using a program?
    Maybe i have to attach first in the back-end and after that transfer to front-end?
    I have seen some thread but the solution provided is in the other way arround (transfer from front-end to backend) and then is not useful for my proble.
    Thanks in advance.
    Kr,
    Angel.

    Hello Angel,
    You can attach a file to SC ,and it is a standard functionality provided in SRM.
    While creating a Shopping cart,under Documents and attachements tab,there is an option to select a local file and attach it to a SC
    If you are looking at attaching the document in SRM and sending it to BE system.(R/3 system), then have a look at SAP note Note 1057932 - FAQ: Atachment transfer to backend, Required Configurations.
    The Following BADI’s will have to be implemented to allow the above functionality
    For transfer of attachments in PO , activate the BADI BBP_CREATE_PO_BACK. Set the values of the following parameters in the
    method BBP_CREATE_PO_BACK~Fill_PO_INTERFACE
    CV_ATTACH_TRANSFER_ACTIVE = 'X'
    CV_ATTACH_BE_STORAGE_CAT = 'DMS_C1_ST'
    CV_ATTACH_BE_DOC_TYPE = 'SRM'.
    For transfer of attachments in PR, activate the BADI
    BBP_CREATE_REQ_BACK. Set the values of the following parameters in the method BBP_CREATE_REQ_BACK~FILL_REQ_INTERFACE
    CV_ATTACH_TRANSFER_ACTIVE = 'X'
    CV_ATTACH_BE_STORAGE_CAT = 'DMS_C1_ST'
    CV_ATTACH_BE_DOC_TYPE = 'SRM'.
    Award points if useful.
    Thanks
    Arshad

  • Error in Shopping Cart Upload from Portal Using Excel

    Dear All ,
                      I am facing problem when i try to upload excel file for creating Shopping cart from Portal . For doing this i have created a transaction from SRM r/3 and using Transaction i view i published the tcode on portal . But when i try to upload a excel file using the transaction i am getting a Exception UPLOAD_OLE . For uploading excel we copied the Fm ALSM_EXCEL_TO_INTERNAL_TABLE . Its working fine in SRM R/3 environment.but facing issue on portal . Please help us out on this .
    Regards
    Shankar

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • User settings and mobileme account removed upon user logout/login

    On several occasions my touchpad settings and format settings (system preferences/international) had suddenly changed.(i.e. "tap to click", "drag" and "drag lock" all changed and so does the format from UK to USA). On these occasions I am also thrown out of my mobileme account and my idisk partitioning is removed. No other keychain setting seems to be affected. I wasn't sure what triggers this, and at first I thought it was due to a run down battery, which somehow changed the settings. However, I just noticed, that when logging out of my user account and back in, the settings are suddenly being changed.
    Does anybody have an idea what is going on? This is rather frustrating, having to re-sync my idisk all the time.

    You'll need to copy your /Home/Library folder. Make sure you back up first before doing the following. Log out of both your Work and Play accounts. Log in to a third account with administrator privileges. Assuming you are copying from the account called "work" to the account called "play", enter the following in Terminal:
    sudo rm -rf ~play/Library (this deletes Play's Library folder.)
    sudo cp -R ~work/Library ~play/Library (this copies Work's Library folder to Play's folder.)
    sudo chown -R play ~play/Library (this fixes permissions of Play's new Library folder.)

  • Shopping Cart using Coldfusion

    Hi, I am relatively new to Coldfusion and I am wondering how to create a shopping cart for a website using coldfusion. Thanks

    This is probably going to come across to you as unnecessarily snarky, but your request is analogous to "I am relatively new to architecture and engineering and I am wondering how to create a skyscraper". The short, glib answer is that you have to learn architecture and engineering first.
    You will need to learn the basics of the language, and you'll have to learn how to track and persist user-specific values using something like the Session or Client scopes. You will need to learn how to store user-specific and non-user-specific values within a relational database, and fetch them as needed.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • Shopping cart using Workflow??

    Hello Expert could anyone plz tell me why we need shopping cart ? i mean what is the necessity of it ? and how to implement shopping cart  with WORKFLOW ?
    Useful answer will be rewarded.
    Thanks
    A v I

    Hi,
       most of the Badi's that are related to business document will trigger when the approver take the decision.. if the error raise by the standard code.. approver must be seen in the SC screen.. if the error is raise by the check badi then you can debug the check badi in BBP_PD.. put the break point in DOC_CHECK badi and click the check message again in the bottom of the details screen..
    Saravanan

  • Shopping cart aproval using BRF

    Hi experts
    I have to configure a shopping cart approval that must use a Z table to find the approvers, so I have a procees schema the trigger a process level  that have a filter for responsible resolver that must go to a Z table where the approver will be find, so I created a filter called SUP_SC_DD and created an implementation in badi /SAPSRM/BD_WF_RESP_RESOLVER method GET_APPROVERS_BY_AREA_GUID , but it alwais have an error AN ECEPTION OCCURED, but no log is displayed.
    My doubt, is it the best method to use if a get my aprovers in a Z TABLE?
    How to implement the badi and the mentioned method?
    Thanks
    Javier

    Hi,
    Please refer a standard Badi '/SAPSRM/BD_WF_AGENTS_SC in SE19.. SAP has delivered Badi which will give you more details..
    Saravanan

  • Error during creation of shopping cart

    Hi All,
    I am creating a shopping cart on behalf of user. Initially, vendor was not coming up. Then i saw, in the user organisation str. pur grp is not maintained. I maintained the same and now the vendor list is coming up but when i select the vendor, the following error comes:
    System Error: Sources of Supply (SAPLBBP_SC_APP)  (Item  test-elizabeth )
    System Error: Sources ofSupply (SAPLBBP_SC_UI_ITS)  (Item  test-elizabeth )
    Please choose a vendor from the approved list  (Item  test-elizabeth )
    i checked for the user consistency, it is ok. then i checked for the contract of the vendor with the product category, it is also valid. the vendor is also not blocked. i dont understand why the error is coming up.
    Please help in this regard.
    Thanks in advance
    Nisha

    Hi Nisha,
    do you use vendor list?
    Please see the F4 help of the vendor list customizing:
    Define Sourcing via Vendor List Only
    Use
    In this activity, you can define that source of supply determination for shopping carts or limit shopping carts created by an employee is carried out exclusively via the vendor list. Otherwise, the system considers all available sources of supply.
    This Customizing setting does not affect purchase orders.
    In addition, a search help for sources of supply is provided for limit shopping carts. If you use this IMG activity to define that source of supply determination is carried out exclusively via the vendor list, only one search help is provided for the vendor list. In other cases, a general vendor search help is provided.
    Regards,
    Peter

  • Storage location from Shopping Cart is overwritten in PO

    Hi
    I am trying to convert a Shopping Cart to Purchase order using the sourcing application. However while doing that my Shopping Cart Storage location always gets overwritten by one particular Storage Location in PO. Even if i try and change the storage location to the correct one in PO, it again gets overwritten. This is causing problem during the Goods Receipt.
    I am using the SRM 5.0 version and recently the system got upgraded to Support Pack 9.
    Any help in this regard would be highly appreciated.
    regards
    manoj

    Hi Manoj,
    Please go through the following observations based on the information you have provided :
    1. Check the Extended Attributes tab for the user whether the concerned plant and storage location were maintained or not.
    2. Check whether that particular storage location is maintained for the concerned plant or not.
    3. Check for the same using different user and different plant storage location combination.
    Its difficult to say exactly what is the problem but for me it looks to be the storage location is not maintained for a particular plant thats why its taking the default storage location (generally the first one in alphabetical order)
    Please revert after checking the above observations for further help.
    Reward points for suitable answers.
    Rgds,
    Teja

  • PO greater than Shopping Cart Qty

    Friends,
    We are working on extended classic scenario where PO is created as follow-on document from shopping cart. User can create PO in sourcing cockpit using Process PO option. However here user has the option to change PO qty where system accepts PO qty greater than SC qty. We would like to restrict it.
    In R/3 MM we can control this via system message and restrict PO qty to exceed PR qty.
    How can we control this functionality in SRM?
    Regards,
    Sandeep Parab

    Hi. Try the BBP_DOC_CHECK_BADI.
    You should be able to check the quantities and issue an error if the quantity has been changed.
    Regards,
    Dave.

  • Validation in shopping cart

    Hello all,
    I have an requirement that i hav to put one validation while creating limit shopping cart.
    I'm using BADI BBP_DOC_CHECK_BADI for this.
    My issue is that after error is occured and user wants to correct that error. Again my code gets executed n and i'm getting same error again and again.
    Can someone help me in that how can i achieve this functionality.
    Thanks in advance.
    regards,
    Lokesh

    Hi Lokesh,
    I have work with the same requirement. what particular error message you've encountered?
    Regards,
    saixis

  • Max order value pr shopping cart

    Hello,
    Running ECS 5.0
    The business needs to set a value limit for a shopping cart pr user or role. If the total value for a shopping cart exceeds this value, we need an error message and not beeing able to proceed with the cart.
    How could this be set up?
    rgds
    GAR

    Hi
    Yes possible to do it through bbp_doc_check badi for bus2121.
    You can use the 1 step Spending limit approval Workflow.
    For more info,refer the foll link:
    http://help.sap.com/saphelp_srm40/helpdata/en/79/ca013a0c88bc7ce10000000a114084/content.htm
    <b>Also, Please go through the links below -></b>
    You have to use the BADi "BBP_DOC_CHECK_BADI" for this.For sample code,refer the foll links:
    Re: Budget analysis
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/bbp_doc_check_badi-CheckPurchasingDocument&
    Re: Disabling Fields in Carry out Sourcing
    Re: Indentifying 'amount' based approvers in an N-step dollar approval process
    http://help.sap.com/saphelp_srm50/helpdata/en/17/40a86c773d6c41801d78af1a34b90f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/2c/e68d406b305537e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/6b/eca441eea7ef0be10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/f7/a6a3415e34b05fe10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/8b/4fa9585db211d2b404006094b92d37/frameset.htm
    Assigning authorization role to position in PP02 (SRM 5.0) not working
    Limit minimum value of the shopping cart
    Re: How to validating total value in shopping cart
    Do let me know.
    Regards
    - Atul

  • Item-based Shopping Cart Approval

    Hi,
    I'm using Item-based approval shopping cart. I'm using the BADI BBP_WFL_APPROV_BADI for getting the approvers. I'm getting all the approvers in APPROVAL_TABLE and having ITEM_APPROVAL_TABLE also filled. I'm giving different branch index for different line items. As I described in those table, it is picking the first approver for particular line items and sending workitem to them. But once I execute from One user, the workitem disappears from other. And I'm not populating any details in ITEM_APPROVAL_OBJ.
    Is it needed to give the details in the table ITEM_APPROVAL_OBJ ????
    Can anyone tell me how to proceed with item level approval ??
    Regards,
    JMB

    You don't need directly update anything in the table, the function module BBP_WFL_DIN_ITEM_APPROVAL_GET populates this table. Take a look at the existing BADI implementation.
    Regards, IA

  • SRM Monitor Shopping Cart..?

    Hello Forum,
    Which role in the standard gives the access to Transaction Monitor Shopping Cart
    This should be used in portal
    I am using SRM 5.0
    Arshad

    suim suim tcode
    user->
    cross-system information
    ->
    roles
    ->
    by transaction bbp_mon_sc
    o/p you get all roles applicable as sanjeev said it will come
    it might helps in future.
    if the user is a purchaser ,
    centralised purchasing-> shop
    now you may get desired template like old purchase orders and templates.
    regards
    Muthu

Maybe you are looking for

  • Adobe exchange panel does not load in cc applications

    I cannot launch the Adobe Exchange Panel in Photoshop or Illustrator.  The option to launch this extension is not available in my menu.  In Photoshop "Extensions is grayed out".  In Illustrator it is not grayed out but it is simply not populated.  I

  • Report error:ORA-06502: PL/SQL: numeric or value error

    In a report region of an apex application I have 41 rows of data displayed, I want to provide subtotals split out by project, I have achieved this by using break formatting, however once all rows have been retrieved the above error is displayed and t

  • Installing Windows 7 without CD/DVD?

    So I downloaded the Windows 7 beta from Microsoft's website and tried to install it with Bootcamp. The problem is that it asks for Windows on a CD/DVD but I don't have any right now. After some googling I found out I could just mount the iso, but it

  • ODBC crash on Solaris

    I have a repeatable crash on Solaris Sparc 32 bit. I use a table created by CREATE TABLE "IAN"."PICDAR_MANIFEST" (     "OBJECT_NAME" VARCHAR2(64 BYTE),      "OBJECT_TYPE" VARCHAR2(10 BYTE),      "COUNT" NUMBER,      "FILE_NAME" VARCHAR2(32 BYTE),    

  • AQJMS Exception In B2B

    Hi all, We tried to send an message to the FTP server using B2B. We published the message and it was sucessful. When I looked in the server, the file was missing. We are facing AQJMS exception in the B2B.log file. Please find the below stack trace. P